Get phones for a specific client
get
/PASService/rest/services/clients/{id}/phones
Gets a list of phones for a client based on the specified client Id
Request
Path Parameters
-
id: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?Client Id
Query Parameters
-
expand(optional): string
codes
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to get a list of phones for a client based on the specified client Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/clients/E374F857-9A81-45F5-9A11-8186E04863BA/phones"
Example Response Body
The following shows an example of the response body in JSON format:
"{
"count": 1,
"phones": [
{
"links": [
{
"href": "http://server:port/PASService/rest/services/clients/E374F857-9A81-45F5-9A11-8186E04863BA/phones/8BFA7382-DD6F-40F3-BC40-53239A5317ED",
"rel": "self",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=PhoneType&codeValue=02",
"rel": "codes/phoneType",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://server:port/PASService/rest/services/codes?codeName=PhoneStatus&codeValue=01",
"rel": "codes/status",
"mediaType": "application/json",
"method": "GET"
}
],
"countryCode": "US",
"callingCode": "1",
"phoneNumber": "5474456677",
"preferred": "Y",
"phoneType": "02",
"phoneId": "8BFA7382-DD6F-40F3-BC40-53239A5317ED",
"status": "01",
"type": "01"
}
]
}
"