Adds specified members to a file.
**Required scope:** `sharing.write`
**Endpoint format:** [RPC](https://docs.dropboxapi.com/dropbox-api/docs/technical-reference/request-response-formats#rpc-endpoints)
**Authentication:** [User](https://docs.dropboxapi.com/dropbox-api/docs/auth-types#user-authentication), [Dropbox-API-Select-Admin (Team Admin)](https://docs.dropboxapi.com/dropbox-api/docs/auth-types#admin-authentication-via-dropbox-api-select-admin)
This endpoint does not support apps with the app folder permission.
Request
This endpoint expects an object.
filestringRequiredformat: "((\/|id:).*|nspath:[0-9]+:.*)|ns:[0-9]+(/.*)?">=1 character
File to which to add members.
memberslist of objectsRequired
Members to add. Note that even an email address is given, this
may result in a user being directly added to the membership if that
email is the user's main account email.
access_levelobject or nullOptional
AccessLevel union object, describing what access level we want to give new members.
add_message_as_commentbooleanOptionalDefaults to false
If the custom message should be added as a comment on the file. Only meant for Paper files.
custom_messagestring or nullOptional
Message to send to added members in their invitation.
quietbooleanOptionalDefaults to false
Whether added members should be notified via email and device notifications of
their invitation.