ConversationsUser Conversation

Update Service User Conversation

POST
/v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid}

Update a specific User Conversation.

Authorization

accountSid_authToken
AuthorizationBasic <token>

In: header

Path Parameters

ChatServiceSid*string

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

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

The unique SID identifier of the User resource. This value can be either the sid or the identity of the User resource.

ConversationSid*string

The unique SID identifier of the Conversation. This value can be either the sid or the unique_name of the Conversation resource.

Request Body

application/x-www-form-urlencoded

NotificationLevel?ServiceUserConversationNotificationLevel

The Notification Level of this User Conversation. One of default or muted.

Value in

  • "default"
  • "muted"
LastReadTimestamp?string

The date of the last message read in conversation by the user, given in ISO 8601 format.

Formatdate-time
LastReadMessageIndex?|

The index of the last Message in the Conversation that the Participant has read.

Response Body

application/json

curl -X POST "https://example.com/v1/Services/stringstringstringstringstringstri/Users/string/Conversations/string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'NotificationLevel=default&LastReadTimestamp=2015-07-30T20%3A00%3A00Z&LastReadMessageIndex=100'
{  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "conversation_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "unread_messages_count": 100,  "last_read_message_index": 100,  "participant_sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "user_sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "friendly_name": "friendly_name",  "conversation_state": "inactive",  "timers": {    "date_inactive": "2015-12-16T22:19:38Z",    "date_closed": "2015-12-16T22:28:38Z"  },  "attributes": "{}",  "date_created": "2015-07-30T20:00:00Z",  "date_updated": "2015-07-30T20:00:00Z",  "created_by": "created_by",  "notification_level": "default",  "unique_name": "unique_name",  "url": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",  "links": {    "participant": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",    "conversation": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conversations/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"  }}