Create plugin configuration

POST /v1/PluginService/Configurations

Headers

  • Flex-Metadata string

    The Flex-Metadata HTTP request header

application/x-www-form-urlencoded

Body

  • Name string Required

    The Flex Plugin Configuration's name.

  • Plugins array

    A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version.

  • Description string

    The Flex Plugin Configuration's description.

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • sid string | null

      The unique string that we created to identify the Flex Plugin Configuration resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FJ[0-9a-fA-F]{32}$.

    • account_sid string | null

      The SID of the Account that created the Flex Plugin Configuration resource and owns this resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • name string | null

      The name of this Flex Plugin Configuration.

    • description string | null

      The description of the Flex Plugin Configuration resource.

    • archived boolean | null

      Whether the Flex Plugin Configuration is archived. The default value is false.

    • date_created string(date-time) | null

      The date and time in GMT when the Flex Plugin Configuration was created specified in ISO 8601 format.

    • url string(uri) | null

      The absolute URL of the Flex Plugin Configuration resource.

POST /v1/PluginService/Configurations
curl \
 --request POST 'https://flex-api.twilio.com/v1/PluginService/Configurations' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --header "Flex-Metadata: string" \
 --data 'Name=some+name&Plugins=%7B%22plugin_version%22%3A+%22FVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%22%2C+%22phase%22%3A+3%7D&Description=description'
Request example
{"Name"=>"some name", "Plugins"=>["{\"plugin_version\": \"FVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"phase\": 3}"], "Description"=>"description"}
Response examples (201)
{
  "sid": "FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "name": "some name",
  "links": {
    "plugins": "https://flex-api.twilio.com/v1/PluginService/Configurations/FJaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Plugins"
  },
  "archived": false,
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "description": "description",
  "date_created": "2020-01-10T20:00:00Z"
}