Update an existing address configuration
Address Configuration resource manages the configurations related to a unique address within Conversations
Update an existing address configuration
Path parameters
-
The SID of the Address Configuration resource. This value can be either the
sidor theaddressof the configuration
Body
-
The human-readable name of this configuration, limited to 256 characters. Optional.
-
Enable/Disable auto-creating conversations for messages to this address
-
Values are
webhook,studio, ordefault. -
Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
Minimum length is
34, maximum length is34. Format should match the following pattern:^IS[0-9a-fA-F]{32}$. -
For type
webhook, the url for the webhook request. -
Values are
getorpost. -
The list of events, firing webhook event for this Conversation. Values can be any of the following:
onMessageAdded,onMessageUpdated,onMessageRemoved,onConversationUpdated,onConversationStateUpdated,onConversationRemoved,onParticipantAdded,onParticipantUpdated,onParticipantRemoved,onDeliveryUpdated -
For type
studio, the studio flow SID where the webhook should be sent to.Minimum length is
34, maximum length is34. Format should match the following pattern:^FW[0-9a-fA-F]{32}$. -
For type
studio, number of times to retry the webhook request
curl \
--request POST 'https://conversations.twilio.com/v1/Configuration/Addresses/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'FriendlyName=My+Test+Configuration+Updated&AutoCreation.Type=studio&AutoCreation.Enabled=false&AutoCreation.StudioFlowSid=FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&AutoCreation.StudioRetryCount=3'
{"FriendlyName" => "My Test Configuration Updated", "AutoCreation.Type" => "studio", "AutoCreation.Enabled" => false, "AutoCreation.StudioFlowSid" => "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "AutoCreation.StudioRetryCount" => 3}
{
"sid": "IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://conversations.twilio.com/v1/Configuration/Addresses/IGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"type": "sms",
"address": "+37256123457",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2016-03-24T21:05:50Z",
"date_updated": "2016-03-24T21:05:51Z",
"auto_creation": {
"type": "studio",
"enabled": false,
"studio_flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"studio_retry_count": 3,
"conversation_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"friendly_name": "My Test Configuration Updated",
"address_country": "CA"
}