Update the global configuration of conversations on your account
The Configuration resource manages a set of account-level settings applicable to the Conversations API.
Update the global configuration of conversations on your account
Body
-
The SID of the default Conversation Service to use when creating a conversation.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^IS[0-9a-fA-F]{32}$
. -
The SID of the default Messaging Service to use when creating a conversation.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^MG[0-9a-fA-F]{32}$
. -
Default ISO8601 duration when conversation will be switched to
inactive
state. Minimum value for this timer is 1 minute. -
Default ISO8601 duration when conversation will be switched to
closed
state. Minimum value for this timer is 10 minutes.
curl \
--request POST 'https://conversations.twilio.com/v1/Configuration' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'DefaultClosedTimer=PT10M&DefaultInactiveTimer=PT1M&DefaultChatServiceSid=ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DefaultMessagingServiceSid=MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
{"DefaultClosedTimer"=>"PT10M", "DefaultInactiveTimer"=>"PT1M", "DefaultChatServiceSid"=>"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DefaultMessagingServiceSid"=>"MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{
"url": "https://conversations.twilio.com/v1/Configuration",
"links": {
"service": "https://conversations.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Configuration",
"webhooks": "https://conversations.twilio.com/v1/Configuration/Webhooks"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_closed_timer": "PT10M",
"default_inactive_timer": "PT1M",
"default_chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}