Update an Extension for an Add-on installation.

POST /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}

Update an Extension for an Add-on installation.

Path parameters

  • InstalledAddOnSid string Required

    The SID of the InstalledAddOn resource with the extension to update.

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

  • Sid string Required

    The SID of the InstalledAddOn Extension resource to update.

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

application/x-www-form-urlencoded

Body

  • Enabled boolean Required

    Whether the Extension should be invoked.

Responses

  • 200 application/json

    OK

    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 InstalledAddOn Extension resource.

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

    • installed_add_on_sid string | null

      The SID of the InstalledAddOn resource to which this extension applies.

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

    • friendly_name string | null

      The string that you assigned to describe the resource.

    • product_name string | null

      The name of the Product this Extension is used within.

    • unique_name string | null

      An application-defined string that uniquely identifies the resource.

    • enabled boolean | null

      Whether the Extension will be invoked.

    • url string(uri) | null

      The absolute URL of the resource.

POST /marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}
curl \
 --request POST 'https://preview.twilio.com/marketplace/InstalledAddOns/{InstalledAddOnSid}/Extensions/{Sid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Enabled=false'
Request example
{"Enabled"=>false}
Response examples (200)
{
  "sid": "XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://preview.twilio.com/marketplace/InstalledAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions/XFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "enabled": false,
  "unique_name": "voice-incoming",
  "product_name": "Programmable Voice",
  "friendly_name": "Incoming Voice Call",
  "installed_add_on_sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}