Path parameters
-
The SID of the Service resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IS[0-9a-fA-F]{32}$
.
Body
-
A descriptive string that you create to describe the resource.
-
The service role assigned to users when they are added to the service. See the Role resource for more info about roles.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
. -
The channel role assigned to users when they are added to a channel. See the Role resource for more info about roles.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
. -
The channel role assigned to a channel creator when they join a new channel. See the Role resource for more info about roles.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
. -
Whether to enable the Message Consumption Horizon feature. The default is
true
. -
Whether to enable the Reachability Indicator for this Service instance. The default is
false
. -
How long in seconds after a
started typing
event until clients should assume that user is no longer typing, even if noended typing
message was received. The default is 5 seconds. -
DEPRECATED. The interval in seconds between consumption reports submission batches from client endpoints.
-
Whether to send a notification when a new message is added to a channel. The default is
false
. -
The template to use to create the notification text displayed when a new message is added to a channel and
notifications.new_message.enabled
istrue
. -
The name of the sound to play when a new message is added to a channel and
notifications.new_message.enabled
istrue
. -
Whether the new message badge is enabled. The default is
false
. -
Whether to send a notification when a member is added to a channel. The default is
false
. -
The template to use to create the notification text displayed when a member is added to a channel and
notifications.added_to_channel.enabled
istrue
. -
The name of the sound to play when a member is added to a channel and
notifications.added_to_channel.enabled
istrue
. -
Whether to send a notification to a user when they are removed from a channel. The default is
false
. -
The template to use to create the notification text displayed to a user when they are removed from a channel and
notifications.removed_from_channel.enabled
istrue
. -
The name of the sound to play to a user when they are removed from a channel and
notifications.removed_from_channel.enabled
istrue
. -
Whether to send a notification when a user is invited to a channel. The default is
false
. -
The template to use to create the notification text displayed when a user is invited to a channel and
notifications.invited_to_channel.enabled
istrue
. -
The name of the sound to play when a user is invited to a channel and
notifications.invited_to_channel.enabled
istrue
. -
The URL for pre-event webhooks, which are called by using the
webhook_method
. See Webhook Events for more details. -
The URL for post-event webhooks, which are called by using the
webhook_method
. See Webhook Events for more details. -
The HTTP method to use for calls to the
pre_webhook_url
andpost_webhook_url
webhooks. Can be:POST
orGET
and the default isPOST
. See Webhook Events for more details.Values are
GET
orPOST
. -
The list of webhook events that are enabled for this Service instance. See Webhook Events for more details.
-
The maximum number of Members that can be added to Channels within this Service. Can be up to 1,000.
-
The maximum number of Channels Users can be a Member of within this Service. Can be up to 1,000.
-
The message to send when a media message has no text. Can be used as placeholder message.
-
The number of times to retry a call to the
pre_webhook_url
if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. Default retry count is 0 times, which means the call won't be retried. -
The number of times to retry a call to the
post_webhook_url
if the request times out (after 5 seconds) or it receives a 429, 503, or 504 HTTP response. The default is 0, which means the call won't be retried. -
Whether to log notifications. The default is
false
.
curl \
--request POST 'https://chat.twilio.com/v2/Services/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=friendly_name&PreWebhookUrl=pre_webhook_url&WebhookMethod=webhook_method&PostWebhookUrl=post_webhook_url&WebhookFilters=webhook_filters&ReadStatusEnabled=false&Limits.UserChannels=500&ReachabilityEnabled=false&PreWebhookRetryCount=2&DefaultChannelRoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DefaultServiceRoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Limits.ChannelMembers=600&PostWebhookRetryCount=3&TypingIndicatorTimeout=100&Notifications.LogEnabled=true&ConsumptionReportInterval=100&Media.CompatibilityMessage=new+media+compatibility+message&DefaultChannelCreatorRoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Notifications.NewMessage.Enabled=false&Notifications.NewMessage.Template=notifications.new_message.template&Notifications.AddedToChannel.Enabled=false&Notifications.AddedToChannel.Template=notifications.added_to_channel.template&Notifications.InvitedToChannel.Enabled=false&Notifications.InvitedToChannel.Template=notifications.invited_to_channel.template&Notifications.RemovedFromChannel.Enabled=false&Notifications.RemovedFromChannel.Template=notifications.removed_from_channel.template&Notifications.NewMessage.BadgeCountEnabled=true'
{"FriendlyName"=>"friendly_name", "PreWebhookUrl"=>"pre_webhook_url", "WebhookMethod"=>"webhook_method", "PostWebhookUrl"=>"post_webhook_url", "WebhookFilters"=>["webhook_filters"], "ReadStatusEnabled"=>false, "Limits.UserChannels"=>500, "ReachabilityEnabled"=>false, "PreWebhookRetryCount"=>2, "DefaultChannelRoleSid"=>"RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DefaultServiceRoleSid"=>"RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "Limits.ChannelMembers"=>600, "PostWebhookRetryCount"=>3, "TypingIndicatorTimeout"=>100, "Notifications.LogEnabled"=>true, "ConsumptionReportInterval"=>100, "Media.CompatibilityMessage"=>"new media compatibility message", "DefaultChannelCreatorRoleSid"=>"RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "Notifications.NewMessage.Enabled"=>false, "Notifications.NewMessage.Template"=>"notifications.new_message.template", "Notifications.AddedToChannel.Enabled"=>false, "Notifications.AddedToChannel.Template"=>"notifications.added_to_channel.template", "Notifications.InvitedToChannel.Enabled"=>false, "Notifications.InvitedToChannel.Template"=>"notifications.invited_to_channel.template", "Notifications.RemovedFromChannel.Enabled"=>false, "Notifications.RemovedFromChannel.Template"=>"notifications.removed_from_channel.template", "Notifications.NewMessage.BadgeCountEnabled"=>true}
{
"sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"roles": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles",
"users": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users",
"bindings": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings",
"channels": "https://chat.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels"
},
"media": {
"size_limit_mb": 150,
"compatibility_message": "new media compatibility message"
},
"limits": {
"user_channels": 600,
"channel_members": 500
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"friendly_name": "friendly_name",
"notifications": {
"log_enabled": true,
"new_message": {
"enabled": false,
"template": "notifications.new_message.template",
"badge_count_enabled": true
},
"added_to_channel": {
"enabled": false,
"template": "notifications.added_to_channel.template"
},
"invited_to_channel": {
"enabled": false,
"template": "notifications.invited_to_channel.template"
},
"removed_from_channel": {
"enabled": false,
"template": "notifications.removed_from_channel.template"
}
},
"webhook_method": "webhook_method",
"pre_webhook_url": "pre_webhook_url",
"webhook_filters": [
"webhook_filters"
],
"post_webhook_url": "post_webhook_url",
"read_status_enabled": false,
"reachability_enabled": false,
"pre_webhook_retry_count": 2,
"default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"post_webhook_retry_count": 3,
"typing_indicator_timeout": 100,
"consumption_report_interval": 100,
"default_channel_creator_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}