Partially update a specific client phone for a specific client by client Id and phone Id
patch
/PASService/rest/services/v1/clients/{clientId}/phones/{phoneId}
Partially 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(guid)
Phone Id
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
204 Response
successful operation
Examples
This example describes how to update a client phone partially for the fields given in request body for a specified client by client Id and phone Id.
Note
Below is the list of Fields that are not allowed for update using PATCH.
- phonenumberId
- phoneType
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": {
"callingCode": "1",
"phoneNumber": "203945459"
}
}