Assign an Add-on installation to the Number specified

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json

TODO: Resource-level docs

Assign an Add-on installation to the Number specified.

Path parameters

  • AccountSid string Required

    The SID of the Account that will create the resource.

  • ResourceSid string Required

    The SID of the Phone Number to assign the Add-on.

Body

  • InstalledAddOnSid string Required

    The SID that identifies the Add-on installation.

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

Responses

  • Created

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

      The SID of the Account that created the resource

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

    • A JSON string that represents the current configuration

    • date_created string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was created

    • date_updated string(date-time-rfc-2822) | null

      The RFC 2822 date and time in GMT that the resource was last updated

    • description string | null

      A short description of the Add-on functionality

    • friendly_name string | null

      The string that you assigned to describe the resource

    • resource_sid string | null

      The SID of the Phone Number that installed this Add-on

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

    • sid string | null

      The unique string that identifies the resource

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

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • unique_name string | null

      An application-defined string that uniquely identifies the resource

    • uri string(uri) | null

      The URI of the resource, relative to https://api.twilio.com

POST /2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'InstalledAddOnSid=string'
Request example
{
  "InstalledAddOnSid": "string"
}
Request examples
{
  "InstalledAddOnSid": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "description": "string",
  "friendly_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "subresource_uris": {},
  "unique_name": "string",
  "uri": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "description": "string",
  "friendly_name": "string",
  "resource_sid": "string",
  "sid": "string",
  "subresource_uris": {},
  "unique_name": "string",
  "uri": "https://example.com"
}