ConversationsUser

Update Service User

POST
/v1/Services/{ChatServiceSid}/Users/{Sid}

Update an existing conversation user in your service

Authorization

accountSid_authToken
AuthorizationBasic <token>

In: header

Path Parameters

ChatServiceSid*string

The SID of the Conversation Service the User resource is associated with.

Match^IS[0-9a-fA-F]{32}$
Length34 <= length <= 34
Sid*string

The SID of the User resource to update. This value can be either the sid or the identity of the User resource to update.

Header Parameters

X-Twilio-Webhook-Enabled?ServiceUserWebhookEnabledType

The X-Twilio-Webhook-Enabled HTTP request header

Value in

  • "true"
  • "false"

Request Body

application/x-www-form-urlencoded

FriendlyName?string

The string that you assigned to describe the resource.

Attributes?string

The JSON Object string that stores application-specific data. If attributes have not been set, {} is returned.

RoleSid?string

The SID of a service-level Role to assign to the user.

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

Response Body

application/json

curl -X POST "https://example.com/v1/Services/stringstringstringstringstringstri/Users/string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'FriendlyName=new+name&Attributes=%7B+%22duty%22%3A+%22tech%22%2C+%22team%22%3A+%22internals%22+%7D&RoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
{  "sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "identity": "admin",  "friendly_name": "new name",  "attributes": "{ \"duty\": \"tech\", \"team\": \"internals\" }",  "is_online": true,  "is_notifiable": null,  "date_created": "2019-12-16T22:18:37Z",  "date_updated": "2019-12-16T22:18:38Z",  "url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "links": {    "user_conversations": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations"  }}