Previous Next JavaScript must be enabled to correctly display this content

## Create client phones

post

/PASService/rest/services/v1/clients/{clientId}/phones

Creates single or multiple client phones.

### Request

Path Parameters

- clientId(required): string(guid)
  Client Id

Supported Media Types

- application/json

Request Body - application/json ()
Root Schema : schema
Type: `string`
Back to Top

### Response

#### 201 Response

This response code indicates that the operation has been completed successfully.
Back to Top

### Examples

This example describes how to create a single or multiple client phones.

Example cURL Command

Refer to the following cURL command to submit a request on the REST resource:

    curl -X POST \
         -H "Accept: application/json" \
         -H "Content-Type: application/json" \
         -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
         -L "http://server:port/PASService/rest/services/v1/clients/7EB775B5-E542-42E6-BEEF-52F58E160AA8/phones" \
         -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

    {
      "phones": [
        {
          "countryCode": "US",
          "callingCode": "1",
          "phoneNumber": "3025558787",
          "extension": "2323-2323",
          "preferred": "Y",
          "phoneType": "01",
          "phoneId": "51838C90-97CC-4B3C-A42F-78E02848C763",
          "status": "01",
          "type": "01"
        },
        {
          "countryCode": "US",
          "callingCode": "1",
          "phoneNumber": "8733236543",
          "extension": "8773",
          "preferred": "N",
          "phoneType": "03",
          "phoneId": "AAFA413E-6D0A-4B67-A3A6-4BE2E7E3E84A",
          "status": "01",
          "type": "01"
        }
      ]
    }

Example Response Body

The following shows an example of the response body in JSON format:

    {
        "phones": [
            "51838C90-97CC-4B3C-A42F-78E02848C763",
            "AAFA413E-6D0A-4B67-A3A6-4BE2E7E3E84A"
        ]
    }

Back to Top