Update an identity's access to a specific Sync Document.
Sync document permissions
Update an identity's access to a specific Sync Document.
Path parameters
-
The SID of the Sync Service with the Document Permission resource to update.
-
The SID of the Sync Document with the Document Permission resource to update. Can be the Document resource's
sid
or itsunique_name
. -
The application-defined string that uniquely identifies the User's Document Permission resource to update.
POST
/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}
curl \
--request POST 'https://sync.twilio.com/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Read=true&Write=true&Manage=true'
Request example
{"Read"=>"true", "Write"=>"true", "Manage"=>"true"}
Response examples (200)
{
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents/ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions/identity",
"read": true,
"write": true,
"manage": true,
"identity": "identity",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"document_sid": "ETaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}