Update a specific client phone for a specific client by client Id and phone Id
put
/PASService/rest/services/v1/clients/{clientId}/phones/{phoneId}
Updates a client phone based on the specified client Id and phone Id.
Request
Path Parameters
-
clientId(required): string(guid)
Client Id
-
phoneId(required): string
Phone Id
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
201 Response
This operation updates a specific client phone for a specific client by client Id and phone Id successfully.
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" \
-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:
{
"phone": {
"countryCode": "US",
"callingCode": "1",
"phoneNumber": "3025558787",
"extension": "43434",
"preferred": "Y",
"phoneType": "01",
"phoneId": "51838C90-97CC-4B3C-A42F-78E02848C763",
"status": "01",
"type": "01"
}
}