Create client phones
post
/PASService/rest/services/clients/{clientId}/phones
Creates single or multiple client phones
Request
Supported Media Types
- application/json
Path Parameters
-
clientId: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
Client Id
Root Schema : schema
Type:
string
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to create a single or multiple client phones.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X POST -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/clients/7EB775B5-E542-42E6-BEEF-52F58E160AA8/phones"
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": [ "EA8B3C28-6950-407A-84DB-211AA99B0A2C", "838265F8-B62F-4EDA-A5F5-644C8D5B35A7" ] } "