Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name
Description
Type
Presence
LocationLimitations
client_idThe ID of the specific ClientIntegerRequiredURI
labelA label to associate with this phone numberStringOptionalBody20 characters max
country_code
The country calling codeStringOptionalBody
area_codeThe area codeStringOptionalBody4 characters

numberThe phone number, should include area codeStringRequiredBody
extensionSpecific extensionStringOptionalBody
is_primaryIndicates if this is the primary phone number for this Client/BooleanOptionalBody

...

RequestResponse
POST /v9/clients/168019/phone_numbers

Create a single phone number.

Code Block
languagejs
themeRDark
linenumberstrue
{
  "phone_numbers": [
    {
      "label": "home",
      "country_code": "+1",
      "area_code": "541",
      "number": "504-555-0123",
      "extension": null,
      "is_primary": false
    }
  ]
}




Code Block
languageruby
themeConfluence
{
  "current_page": 1,
  "per_page": 100,
  "total_entries": 1,
  "phone_numbers": [
    {
      "id": 294655,
      "url": "/clients/168019/phone_numbers/294655",
      "country_code": "1",
      "area_code": null,
      "raw_number": "5550123",
      "number": "541-555-0123",
      "extension": null,
      "label": "home",
      "updated_at": "2017-12-15T00:12:21Z"
    }
  ]
}


Create multiple phone numbers for the same client in a single request.

Code Block
languagejs
themeRDark
linenumberstrue
{
  "phone_numbers": [
    {
      "label": "home",
      "country_code": "+1",
      "
area_code
number": "541
", "number": "
-555-0123",
      "extension": null,
      "is_primary": false
    },
    {
      "label": "work",
      "country_code": "+1",
      "
area_code
number": "541
", "number": "
-555-0987",
      "extension": 5,
      "is_primary": false
    },
    {
      "label": "cell",
      "country_code": "+1",
      "
area_code
number": "541
", "number": "
-555-0573",
      "extension": null,
      "is_primary": true
    }
  ]
}




Code Block
languagejs
themeConfluence
linenumberstrue
{
  "current_page": 1,
  "per_page": 100,
  "total_entries": 3,
  "phone_numbers": [
    {
      "id": 294655,
      "url": "/clients/168019/phone_numbers/294655",
      "country_code": "1",
      "area_code": null,
      "raw_number": "5550123",
      "number": "541-555-0123",
      "extension": null,
      "label": "home",
      "updated_at": "2017-12-15T00:12:21Z"
    },
    {
      "id": 294656,
      "url": "/clients/168019/phone_numbers/294656",
      "country_code": "1",
      "area_code": null,
      "raw_number": "5550987",
      "number": "541-555-0987",
      "extension": "5",
      "label": "work",
      "updated_at": "2017-12-15T00:12:21Z"
    },
    {
      "id": 294657,
      "url": "/clients/168019/phone_numbers/294657",
      "country_code": "1",
      "area_code": null,
      "raw_number": "5550573",
      "number": "541-555-0573",
      "extension": null,
      "label": "cell",
      "updated_at": "2017-12-15T00:12:21Z"
    }
  ]
}


...