Update an identity's access to a specific Sync Map

POST /v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}

TODO: Resource-level docs

Update an identity's access to a specific Sync Map.

Path parameters

  • ServiceSid string Required

    The SID of the Sync Service with the Sync Map Permission resource to update. Can be the Service's sid value or default.

  • MapSid string Required

    The SID of the Sync Map with the Sync Map Permission resource to update. Can be the Sync Map resource's sid or its unique_name.

  • Identity string Required

    The application-defined string that uniquely identifies the User's Sync Map Permission resource to update.

Body

  • Manage boolean Required

    Whether the identity can delete the Sync Map. Default value is false.

  • Read boolean Required

    Whether the identity can read the Sync Map and its Items. Default value is false.

  • Write boolean Required

    Whether the identity can create, update, and delete Items in the Sync Map. Default value is false.

Responses

  • OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • identity string | null

      The identity of the user to whom the Sync Document Permission applies

    • manage boolean | null

      Manage access

    • map_sid string | null

      Sync Map SID

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^MP[0-9a-fA-F]{32}$.

    • read boolean | null

      Read access

    • service_sid string | null

      The SID of the Sync Service that the resource is associated with

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IS[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the Sync Map Permission resource

    • write boolean | null

      Write access

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
}