ConversationsRole

Update Role

POST
/v1/Roles/{Sid}

Update an existing user role in your account's default service

Authorization

accountSid_authToken
AuthorizationBasic <token>

In: header

Path Parameters

Sid*string

The SID of the Role resource to update.

Match^RL[0-9a-fA-F]{32}$
Length34 <= length <= 34

Request Body

application/x-www-form-urlencoded

Permission*array<string>

A permission that you grant to the role. Only one permission can be granted per parameter. To assign more than one permission, repeat this parameter for each permission value. Note that the update action replaces all previously assigned permissions with those defined in the update action. To remove a permission, do not include it in the subsequent update action. The values for this parameter depend on the role's type.

Response Body

application/json

curl -X POST "https://example.com/v1/Roles/stringstringstringstringstringstri" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'Permission=sendMessage'
{  "sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "friendly_name": "Conversation Role",  "type": "conversation",  "permissions": [    "sendMessage",    "leaveConversation",    "editOwnMessage",    "deleteOwnMessage"  ],  "date_created": "2016-03-03T19:47:15Z",  "date_updated": "2016-03-03T19:47:15Z",  "url": "https://conversations.twilio.com/v1/Roles/RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}