Update a specific Proxy Number.
Update a specific Proxy Number.
Path parameters
-
The SID of the parent Service of the PhoneNumber resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^KS[0-9a-fA-F]{32}$
. -
The Twilio-provided string that uniquely identifies the PhoneNumber resource to update.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^PN[0-9a-fA-F]{32}$
.
Body
-
Whether the phone number should be reserved and not be assigned to a participant using proxy pool logic. See Reserved Phone Numbers for more information.
POST
/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}
curl \
--request POST 'https://proxy.twilio.com/v1/Services/{ServiceSid}/PhoneNumbers/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'IsReserved=true'
Request example
{"IsReserved"=>true}
Response examples (200)
{
"sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://proxy.twilio.com/v1/Services/KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/PhoneNumbers/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"in_use": 0,
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"is_reserved": true,
"iso_country": "US",
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"capabilities": {
"sms_outbound": true,
"voice_inbound": false
},
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"phone_number": "12345",
"friendly_name": "Friendly Name"
}