Assign an Add-on installation to the Number specified.
Assign an Add-on installation to the Number specified.
Path parameters
-
The SID of the Account that will create the resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
The SID of the Phone Number to assign the Add-on.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^PN[0-9a-fA-F]{32}$
.
POST
/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/{ResourceSid}/AssignedAddOns.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'InstalledAddOnSid=XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Request example
{"InstalledAddOnSid"=>"XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
Response examples (201)
{
"sid": "XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AssignedAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "Automatic Transcription and Keyword Extract...",
"unique_name": "voicebase_high_accuracy_transcription",
"date_created": "Thu, 07 Apr 2016 23:52:28 +0000",
"date_updated": "Thu, 07 Apr 2016 23:52:28 +0000",
"resource_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"configuration": {
"bad_words": true
},
"friendly_name": "VoiceBase High Accuracy Transcription",
"subresource_uris": {
"extensions": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/IncomingPhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/AssignedAddOns/XEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Extensions.json"
}
}