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
sid
or theaddress
of the configuration
Body
-
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}$
. -
AutoCreation.Enabled boolean
Enable/Disable auto-creating conversations for messages to this address
-
AutoCreation.StudioFlowSid string
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}$
. -
AutoCreation.StudioRetryCount integer
For type
studio
, number of times to retry the webhook request -
AutoCreation.Type string
Type of Auto Creation. Value can be one of
webhook
,studio
ordefault
.Values are
webhook
,studio
, ordefault
. -
AutoCreation.WebhookFilters array[string]
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
-
AutoCreation.WebhookMethod string
For type
webhook
, the HTTP method to be used when sending a webhook request.Values are
GET
orPOST
. -
AutoCreation.WebhookUrl string
For type
webhook
, the url for the webhook request. -
FriendlyName string
The human-readable name of this configuration, limited to 256 characters. Optional.
curl \
-X POST https://conversations.twilio.com/v1/Configuration/Addresses/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'AutoCreation.ConversationServiceSid=string&AutoCreation.Enabled=true&AutoCreation.StudioFlowSid=string&AutoCreation.StudioRetryCount=42&AutoCreation.Type=webhook&AutoCreation.WebhookFilters=string&AutoCreation.WebhookMethod=GET&AutoCreation.WebhookUrl=string&FriendlyName=string'
{
"AutoCreation.ConversationServiceSid": "string",
"AutoCreation.Enabled": true,
"AutoCreation.StudioFlowSid": "string",
"AutoCreation.StudioRetryCount": 42,
"AutoCreation.Type": "webhook",
"AutoCreation.WebhookFilters": [
"string"
],
"AutoCreation.WebhookMethod": "GET",
"AutoCreation.WebhookUrl": "string",
"FriendlyName": "string"
}
{
"AutoCreation.ConversationServiceSid": "string",
"AutoCreation.Enabled": true,
"AutoCreation.StudioFlowSid": "string",
"AutoCreation.StudioRetryCount": 42,
"AutoCreation.Type": "webhook",
"AutoCreation.WebhookFilters": [
"string"
],
"AutoCreation.WebhookMethod": "GET",
"AutoCreation.WebhookUrl": "string",
"FriendlyName": "string"
}
{
"account_sid": "string",
"address": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"sid": "string",
"type": "string",
"url": "https://example.com"
}
{
"account_sid": "string",
"address": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"sid": "string",
"type": "string",
"url": "https://example.com"
}