Update a specific User Conversation
A Service User Conversation resource represents a conversation of the user belonging to a specific conversation service.
Update a specific User Conversation.
Path parameters
-
The SID of the Conversation Service the Conversation resource is associated with.
-
The unique SID identifier of the User resource. This value can be either the
sid
or theidentity
of the User resource. -
The unique SID identifier of the Conversation. This value can be either the
sid
or theunique_name
of the Conversation resource.
Body
-
LastReadMessageIndex integer | null
The index of the last Message in the Conversation that the Participant has read.
-
LastReadTimestamp string(date-time)
The date of the last message read in conversation by the user, given in ISO 8601 format.
-
NotificationLevel string
The Notification Level of this User Conversation. One of
default
ormuted
.Values are
default
ormuted
.
curl \
-X POST https://conversations.twilio.com/v1/Services/{ChatServiceSid}/Users/{UserSid}/Conversations/{ConversationSid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'LastReadMessageIndex=42&LastReadTimestamp=2023-05-04T09%3A42%3A00%2B00%3A00&NotificationLevel=default'
{
"LastReadMessageIndex": 42,
"LastReadTimestamp": "2023-05-04T09:42:00+00:00",
"NotificationLevel": "default"
}
{
"LastReadMessageIndex": 42,
"LastReadTimestamp": "2024-05-04T09:42:00+00:00",
"NotificationLevel": "default"
}
{
"account_sid": "string",
"attributes": "string",
"chat_service_sid": "string",
"conversation_sid": "string",
"conversation_state": "inactive",
"created_by": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"last_read_message_index": 42,
"links": {},
"notification_level": "default",
"participant_sid": "string",
"unique_name": "string",
"unread_messages_count": 42,
"url": "https://example.com",
"user_sid": "string"
}
{
"account_sid": "string",
"attributes": "string",
"chat_service_sid": "string",
"conversation_sid": "string",
"conversation_state": "inactive",
"created_by": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"last_read_message_index": 42,
"links": {},
"notification_level": "default",
"participant_sid": "string",
"unique_name": "string",
"unread_messages_count": 42,
"url": "https://example.com",
"user_sid": "string"
}