Update an identity's access to a specific Sync Map.
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.
POST
/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
curl \
--request POST 'https://sync.twilio.com/v1/Services/{ServiceSid}/Maps/{MapSid}/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/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions/identity",
"read": true,
"write": true,
"manage": true,
"map_sid": "MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"identity": "identity",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}