ChatChannel
Update Channel
Update a specific Channel.
Authorization
accountSid_authToken AuthorizationBasic <token>
In: header
Path Parameters
ServiceSid*string
The unique SID identifier of the Service.
Match
^IS[0-9a-fA-F]{32}$Length
34 <= length <= 34Sid*string
A 34 character string that uniquely identifies this Channel.
Header Parameters
X-Twilio-Webhook-Enabled?ChannelWebhookEnabledType
The X-Twilio-Webhook-Enabled HTTP request header
Value in
- "true"
- "false"
Request Body
application/x-www-form-urlencoded
Type?ChannelChannelType
The visibility of the channel. Can be: public or private.
Value in
- "public"
- "private"
MessagingServiceSid?string
The unique ID of the Messaging Service this channel belongs to.
Match
^MG[0-9a-fA-F]{32}$Length
34 <= length <= 34Response Body
application/json
curl -X POST "https://example.com/v3/Services/stringstringstringstringstringstri/Channels/string" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'Type=private&MessagingServiceSid=MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'{ "sid": "CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "friendly_name", "unique_name": "unique_name", "attributes": "{ \"foo\": \"bar\" }", "type": "public", "date_created": "2015-12-16T22:18:37Z", "date_updated": "2015-12-16T22:18:38Z", "created_by": "username", "members_count": 0, "messages_count": 0, "url": "https://chat.twilio.com/v3/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels/CHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}