Path parameters
-
Minimum length is
34, maximum length is34. Format should match the following pattern:^IS[0-9a-fA-F]{32}$.
Body
-
Minimum length is
34, maximum length is34. Format should match the following pattern:^RL[0-9a-fA-F]{32}$. -
Minimum length is
34, maximum length is34. Format should match the following pattern:^RL[0-9a-fA-F]{32}$. -
Minimum length is
34, maximum length is34. Format should match the following pattern:^RL[0-9a-fA-F]{32}$. -
Values are
GETorPOST.
POST
/v2/Services/{Sid}
curl \
--request POST 'https://ip-messaging.twilio.com/v2/Services/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'ConsumptionReportInterval=100&DefaultChannelCreatorRoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DefaultChannelRoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DefaultServiceRoleSid=RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&FriendlyName=friendly_name&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.NewMessage.Enabled=false&Notifications.NewMessage.Template=notifications.new_message.template&Notifications.NewMessage.BadgeCountEnabled=true&Notifications.RemovedFromChannel.Enabled=false&Notifications.RemovedFromChannel.Template=notifications.removed_from_channel.template&Notifications.LogEnabled=true&Limits.ChannelMembers=600&Limits.UserChannels=500&PostWebhookUrl=post_webhook_url&PreWebhookUrl=pre_webhook_url&PreWebhookRetryCount=2&PostWebhookRetryCount=3&ReachabilityEnabled=false&ReadStatusEnabled=false&TypingIndicatorTimeout=100&WebhookFilters=webhook_filters&WebhookMethod=webhook_method&Media.CompatibilityMessage=new+media+compatibility+message'
Request example
{"ConsumptionReportInterval" => 100, "DefaultChannelCreatorRoleSid" => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DefaultChannelRoleSid" => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DefaultServiceRoleSid" => "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "FriendlyName" => "friendly_name", "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.NewMessage.Enabled" => false, "Notifications.NewMessage.Template" => "notifications.new_message.template", "Notifications.NewMessage.BadgeCountEnabled" => true, "Notifications.RemovedFromChannel.Enabled" => false, "Notifications.RemovedFromChannel.Template" => "notifications.removed_from_channel.template", "Notifications.LogEnabled" => true, "Limits.ChannelMembers" => 600, "Limits.UserChannels" => 500, "PostWebhookUrl" => "post_webhook_url", "PreWebhookUrl" => "pre_webhook_url", "PreWebhookRetryCount" => 2, "PostWebhookRetryCount" => 3, "ReachabilityEnabled" => false, "ReadStatusEnabled" => false, "TypingIndicatorTimeout" => 100, "WebhookFilters" => ["webhook_filters"], "WebhookMethod" => "webhook_method", "Media.CompatibilityMessage" => "new media compatibility message"}
Response examples (200)
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"consumption_report_interval": 100,
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"default_channel_creator_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_channel_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_service_role_sid": "RLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"friendly_name": "friendly_name",
"limits": {
"channel_members": 500,
"user_channels": 600
},
"links": {
"channels": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Channels",
"users": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users",
"roles": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Roles",
"bindings": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings"
},
"notifications": {
"log_enabled": true,
"added_to_channel": {
"enabled": false,
"template": "notifications.added_to_channel.template"
},
"invited_to_channel": {
"enabled": false,
"template": "notifications.invited_to_channel.template"
},
"new_message": {
"enabled": false,
"template": "notifications.new_message.template",
"badge_count_enabled": true
},
"removed_from_channel": {
"enabled": false,
"template": "notifications.removed_from_channel.template"
}
},
"post_webhook_url": "post_webhook_url",
"pre_webhook_url": "pre_webhook_url",
"pre_webhook_retry_count": 2,
"post_webhook_retry_count": 3,
"reachability_enabled": false,
"read_status_enabled": false,
"sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"typing_indicator_timeout": 100,
"url": "https://ip-messaging.twilio.com/v2/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"webhook_filters": [
"webhook_filters"
],
"webhook_method": "webhook_method",
"media": {
"size_limit_mb": 150,
"compatibility_message": "new media compatibility message"
}
}