Update client phones
put
/PASService/rest/services/clients/{clientId}/phones/{phoneId}
Updates a client phone based on the specified client Id and phone Id
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 -
phoneId: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?phones Id
Root Schema : schema
Type:
stringResponse
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to update a client phone based on the specified client Id and phone Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X PUT -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/clients/7EB775B5-E542-42E6-BEEF-52F58E160AA8/phones/714D7379-D203-4E31-908B-B2B828755061"
Example Request Body
The following shows an example of the request body in JSON format:
"{
"phone": {
"countryCode": "US",
"callingCode": "1",
"phoneNumber": "3025558787",
"extension": "43434",
"preferred": "Y",
"phoneType": "01",
"phoneId": "714D7379-D203-4E31-908B-B2B828755061",
"status": "01",
"type": "01"
}
}"