Modifying Configuration for flex.twilio.com
The Configuration Object detailed below is not directly accessible when using flex.twilio.com. However, all of the same values can be set as ui_attributes
using Flex's Configuration REST API.
When POST-ing configuration values to ui_attributes
, a full JSON object must be provided. This means you should:
GET
the existing configuration- Modify the JSON to add/update/remove your desired properties
POST
the result as the new configuration
Make any updates to the updated configuration. For example, you can set the ui_attributes
property to the value {"logLevel": "debug"}
. Once you've made your changes, POST the new object as your configuration
ui_attributes
is loaded even for self-hosted deployments of Flex. Any conflicting properties provided in an appConfig
configuration object are given precedence when Flex loads.
Note: When you POST the new object, you might get an error like the below:
{
"code": 45004,
"message": "You are not allowed to modify property for [flex_service_instance_sid, runtime_domain, taskrouter_workspace_sid, service_version, taskrouter_offline_activity_sid, status].",
"more_info": "https://www.twilio.com/docs/errors/45004",
"status": 400
}
This error indicates that these fields are protected and can't be updated through the API. To successfully POST the updates, please remove these fields from the POST body
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.