Users joined to specific channels
Path parameters
-
The SID of the Service to update the Member resource in.
Minimum length is
34, maximum length is34. Format should match the following pattern:^IS[0-9a-fA-F]{32}$. -
The SID of the Channel the Member resource to update belongs to. This value can be the Channel resource's
sidorunique_name. -
The SID of the Member resource to update. This value can be either the Member's
sidor itsidentityvalue.
Body
-
Minimum length is
34, maximum length is34. Format should match the following pattern:^RL[0-9a-fA-F]{32}$. -
The date, specified in ISO 8601 format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. Note that this parameter should only be used when a Member is being recreated from a backup/separate source.
-
The date, specified in ISO 8601 format, to assign to the resource as the date it was last updated.
-
A valid JSON string that contains application-specific data.
curl \
--request POST 'https://chat.twilio.com/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Members/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "X-Twilio-Webhook-Enabled: true" \
--data 'RoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Attributes=%7B%7D&DateCreated=2016-03-24T21%3A05%3A50Z&DateUpdated=2016-03-24T21%3A05%3A51Z&LastConsumedMessageIndex=20&LastConsumptionTimestamp=2016-03-24T21%3A05%3A52Z'
{"RoleSid" => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "Attributes" => "{}", "DateCreated" => "2016-03-24T21:05:50Z", "DateUpdated" => "2016-03-24T21:05:51Z", "LastConsumedMessageIndex" => 20, "LastConsumptionTimestamp" => "2016-03-24T21:05:52Z"}
{
"sid": "MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/MBaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"identity": "jing",
"role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"attributes": "{}",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channel_sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:51Z",
"last_consumption_timestamp": "2016-03-24T21:05:52Z",
"last_consumed_message_index": 20
}