Update user channel
TODO: Resource-level docs
Body
-
LastConsumedMessageIndex integer | null
-
LastConsumptionTimestamp string(date-time)
-
NotificationLevel string
Values are
default
ormuted
.
POST /v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid}
curl \
-X POST https://ip-messaging.twilio.com/v2/Services/{ServiceSid}/Users/{UserSid}/Channels/{ChannelSid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'LastConsumedMessageIndex=42&LastConsumptionTimestamp=2023-05-04T09%3A42%3A00%2B00%3A00&NotificationLevel=default'
Request example
{
"LastConsumedMessageIndex": 42,
"LastConsumptionTimestamp": "2023-05-04T09:42:00+00:00",
"NotificationLevel": "default"
}
Request examples
{
"LastConsumedMessageIndex": 42,
"LastConsumptionTimestamp": "2024-05-04T09:42:00+00:00",
"NotificationLevel": "default"
}
Response examples (200)
{
"account_sid": "string",
"channel_sid": "string",
"last_consumed_message_index": 42,
"links": {},
"member_sid": "string",
"notification_level": "default",
"service_sid": "string",
"status": "joined",
"unread_messages_count": 42,
"url": "https://example.com",
"user_sid": "string"
}
Response examples (200)
{
"account_sid": "string",
"channel_sid": "string",
"last_consumed_message_index": 42,
"links": {},
"member_sid": "string",
"notification_level": "default",
"service_sid": "string",
"status": "joined",
"unread_messages_count": 42,
"url": "https://example.com",
"user_sid": "string"
}