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 \
-X POST https://sync.twilio.com/v1/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'Manage=true&Read=true&Write=true'
Request example
{
"Manage": true,
"Read": true,
"Write": true
}
Request examples
{
"Manage": true,
"Read": true,
"Write": true
}
Response examples (200)
{
"account_sid": "string",
"document_sid": "string",
"identity": "string",
"manage": true,
"read": true,
"service_sid": "string",
"url": "https://example.com",
"write": true
}
Response examples (200)
{
"account_sid": "string",
"document_sid": "string",
"identity": "string",
"manage": true,
"read": true,
"service_sid": "string",
"url": "https://example.com",
"write": true
}