...
Create one or more phone numbers for an existing client. Note that this takes an array of phone numbers even if only creating one.
Info |
---|
Starting 3/23/2015 You can send number as area_code and number e.g. {:area_code => "212", :number => "5551212" }. the old way {number => "(212) 555 1212"} is still supported, but will be depreciated in the new api release. |
Parameters
Name | Description | Type | Presence | Location | Limitations | |
---|---|---|---|---|---|---|
client_id | The ID of the specific Client | Integer | Required | URI | ||
label | A label to associate with this phone number | String | Optional | Body | 20 characters max | |
| The country calling code | String | Optional | Body | ||
area_code | The area code | String | Optional | Body | 4 characters | |
number | The phone number | String | Required | Body | ||
extension | Specific extension | String | Optional | Body | ||
is_primary | Indicates if this is the primary phone number for this Client/ | Boolean | Optional | Body |
...
Examples
Request | Response | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
POST /v9/clients/168019/phone_numbers | ||||||||||||||||||||
Create a single phone number.
|
| |||||||||||||||||||
Create multiple phone numbers for the same client in a single request.
|
|
...