JavaScript
Phone numbers
Update phone number
Updates a phone number’s details.
PATCH
JavaScript
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The ID of the phone number to update.
Example:
"pn_01jsjwe4d9fx3tpymgtg958d9w"
Body
application/json
Response
Updated phone number
A phone number that can be used to send and receive messages and calls
The unique identifier of the campaign this phone number is attached to, if any
Unique identifier for the phone number
A human-readable name for the phone number
The phone number in E.164 format
Pattern:
^\+[1-9]\d{6,14}$Example:
"+18015551234"
Whether the phone number is local, toll-free, or short code
Available options:
local, short_code, toll_free