Body
-
ConsumptionReportInterval integer
-
DefaultChannelCreatorRoleSid string
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
. -
DefaultChannelRoleSid string
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
. -
DefaultServiceRoleSid string
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^RL[0-9a-fA-F]{32}$
. -
FriendlyName string
-
Limits.ChannelMembers integer
-
Limits.UserChannels integer
-
Media.CompatibilityMessage string
-
Notifications.LogEnabled boolean
-
Notifications.NewMessage.Enabled boolean
-
PostWebhookRetryCount integer
-
PostWebhookUrl string(uri)
-
PreWebhookRetryCount integer
-
PreWebhookUrl string(uri)
-
ReachabilityEnabled boolean
-
ReadStatusEnabled boolean
-
TypingIndicatorTimeout integer
-
WebhookFilters array[string]
-
WebhookMethod string(http-method)
Values are
HEAD
,GET
,POST
,PATCH
,PUT
, orDELETE
.
POST /v2/Services/{Sid}
curl \
-X POST https://ip-messaging.twilio.com/v2/Services/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'ConsumptionReportInterval=42&DefaultChannelCreatorRoleSid=string&DefaultChannelRoleSid=string&DefaultServiceRoleSid=string&FriendlyName=string&Limits.ChannelMembers=42&Limits.UserChannels=42&Media.CompatibilityMessage=string&Notifications.AddedToChannel.Enabled=true&Notifications.AddedToChannel.Sound=string&Notifications.AddedToChannel.Template=string&Notifications.InvitedToChannel.Enabled=true&Notifications.InvitedToChannel.Sound=string&Notifications.InvitedToChannel.Template=string&Notifications.LogEnabled=true&Notifications.NewMessage.BadgeCountEnabled=true&Notifications.NewMessage.Enabled=true&Notifications.NewMessage.Sound=string&Notifications.NewMessage.Template=string&Notifications.RemovedFromChannel.Enabled=true&Notifications.RemovedFromChannel.Sound=string&Notifications.RemovedFromChannel.Template=string&PostWebhookRetryCount=42&PostWebhookUrl=https%3A%2F%2Fexample.com&PreWebhookRetryCount=42&PreWebhookUrl=https%3A%2F%2Fexample.com&ReachabilityEnabled=true&ReadStatusEnabled=true&TypingIndicatorTimeout=42&WebhookFilters=string&WebhookMethod=HEAD'
Request example
{
"ConsumptionReportInterval": 42,
"DefaultChannelCreatorRoleSid": "string",
"DefaultChannelRoleSid": "string",
"DefaultServiceRoleSid": "string",
"FriendlyName": "string",
"Limits.ChannelMembers": 42,
"Limits.UserChannels": 42,
"Media.CompatibilityMessage": "string",
"Notifications.AddedToChannel.Enabled": true,
"Notifications.AddedToChannel.Sound": "string",
"Notifications.AddedToChannel.Template": "string",
"Notifications.InvitedToChannel.Enabled": true,
"Notifications.InvitedToChannel.Sound": "string",
"Notifications.InvitedToChannel.Template": "string",
"Notifications.LogEnabled": true,
"Notifications.NewMessage.BadgeCountEnabled": true,
"Notifications.NewMessage.Enabled": true,
"Notifications.NewMessage.Sound": "string",
"Notifications.NewMessage.Template": "string",
"Notifications.RemovedFromChannel.Enabled": true,
"Notifications.RemovedFromChannel.Sound": "string",
"Notifications.RemovedFromChannel.Template": "string",
"PostWebhookRetryCount": 42,
"PostWebhookUrl": "https://example.com",
"PreWebhookRetryCount": 42,
"PreWebhookUrl": "https://example.com",
"ReachabilityEnabled": true,
"ReadStatusEnabled": true,
"TypingIndicatorTimeout": 42,
"WebhookFilters": [
"string"
],
"WebhookMethod": "HEAD"
}
Request examples
{
"ConsumptionReportInterval": 42,
"DefaultChannelCreatorRoleSid": "string",
"DefaultChannelRoleSid": "string",
"DefaultServiceRoleSid": "string",
"FriendlyName": "string",
"Limits.ChannelMembers": 42,
"Limits.UserChannels": 42,
"Media.CompatibilityMessage": "string",
"Notifications.AddedToChannel.Enabled": true,
"Notifications.AddedToChannel.Sound": "string",
"Notifications.AddedToChannel.Template": "string",
"Notifications.InvitedToChannel.Enabled": true,
"Notifications.InvitedToChannel.Sound": "string",
"Notifications.InvitedToChannel.Template": "string",
"Notifications.LogEnabled": true,
"Notifications.NewMessage.BadgeCountEnabled": true,
"Notifications.NewMessage.Enabled": true,
"Notifications.NewMessage.Sound": "string",
"Notifications.NewMessage.Template": "string",
"Notifications.RemovedFromChannel.Enabled": true,
"Notifications.RemovedFromChannel.Sound": "string",
"Notifications.RemovedFromChannel.Template": "string",
"PostWebhookRetryCount": 42,
"PostWebhookUrl": "https://example.com",
"PreWebhookRetryCount": 42,
"PreWebhookUrl": "https://example.com",
"ReachabilityEnabled": true,
"ReadStatusEnabled": true,
"TypingIndicatorTimeout": 42,
"WebhookFilters": [
"string"
],
"WebhookMethod": "HEAD"
}
Response examples (200)
{
"account_sid": "string",
"consumption_report_interval": 42,
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"default_channel_creator_role_sid": "string",
"default_channel_role_sid": "string",
"default_service_role_sid": "string",
"friendly_name": "string",
"links": {},
"post_webhook_retry_count": 42,
"post_webhook_url": "string",
"pre_webhook_retry_count": 42,
"pre_webhook_url": "string",
"reachability_enabled": true,
"read_status_enabled": true,
"sid": "string",
"typing_indicator_timeout": 42,
"url": "https://example.com",
"webhook_filters": [
"string"
],
"webhook_method": "string"
}
Response examples (200)
{
"account_sid": "string",
"consumption_report_interval": 42,
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"default_channel_creator_role_sid": "string",
"default_channel_role_sid": "string",
"default_service_role_sid": "string",
"friendly_name": "string",
"links": {},
"post_webhook_retry_count": 42,
"post_webhook_url": "string",
"pre_webhook_retry_count": 42,
"pre_webhook_url": "string",
"reachability_enabled": true,
"read_status_enabled": true,
"sid": "string",
"typing_indicator_timeout": 42,
"url": "https://example.com",
"webhook_filters": [
"string"
],
"webhook_method": "string"
}