Update an identity's access to a specific Sync Map
TODO: Resource-level docs
Update an identity's access to a specific Sync Map.
Path parameters
-
The SID of the Sync Service with the Sync Map Permission resource to update. Can be the Service's
sid
value ordefault
. -
The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map resource's
sid
or itsunique_name
. -
The application-defined string that uniquely identifies the User's Sync Map Permission resource to update.
Body
-
Whether the identity can delete the Sync Map. Default value is
false
. -
Whether the identity can read the Sync Map and its Items. Default value is
false
. -
Whether the identity can create, update, and delete Items in the Sync Map. Default value is
false
.
POST /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
curl \
-X POST https://sync.twilio.com/v1/Services/{ServiceSid}/Maps/{MapSid}/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",
"identity": "string",
"manage": true,
"map_sid": "string",
"read": true,
"service_sid": "string",
"url": "https://example.com",
"write": true
}
Response examples (200)
{
"account_sid": "string",
"identity": "string",
"manage": true,
"map_sid": "string",
"read": true,
"service_sid": "string",
"url": "https://example.com",
"write": true
}