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
inactivestate. Minimum value for this timer is 1 minute. -
Default ISO8601 duration when conversation will be switched to
closedstate. 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 'DefaultChatServiceSid=ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DefaultMessagingServiceSid=MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DefaultInactiveTimer=PT1M&DefaultClosedTimer=PT10M'
{"DefaultChatServiceSid" => "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DefaultMessagingServiceSid" => "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "DefaultInactiveTimer" => "PT1M", "DefaultClosedTimer" => "PT10M"}
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_chat_service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"default_inactive_timer": "PT1M",
"default_closed_timer": "PT10M",
"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"
}
}