Update a specific client by client Id
put
/PASService/rest/services/v1/clients/{clientId}
Updates a client based on the specified client Id.
Request
Path Parameters
-
clientId(required): string(guid)
Client Id
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
204 Response
This operation updates a specific client by client Id successfully.
Examples
This example describes how to update 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 PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-L "http://server:port/PASService/rest/services/v1/clients/D28E06BF-B413-46FB-840F-73E6C2FEE112" \
-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:
{
"client": {
"dateOfBirth": "2020-01-06T00:00:00Z",
"dateOfDeath": "2080-01-06T00:00:00Z",
"updatedGmt": "2020-01-06T00:00:00Z",
"companyName": "BSA",
"email": "sa@mail.com",
"prefix": "04",
"sex": "M",
"suffix": "mr",
"legalResidenceCountryCode": "US",
"additionalPrefix": "Mr",
"additionalSuffix": "Jo",
"title": "John",
"maritalStatus": "00",
"birthCountryCode": "CA",
"citizenshipCountryCode": "CA",
"birthRegionCode": "CA",
"primaryPhone": "11212-124",
"textField1": "Shubhakankshi Bhukta",
"textField2": "Shubhakankshi",
"checkBox1": "A",
"checkBox2": "C",
"radio1": "True",
"radio2": "False",
"combo1": "C",
"combo2": "R",
"entityTypeCode": "CLIENT",
"date1": "2020-01-06T00:00:00Z",
"date2": "2020-01-06T00:00:00Z",
"addresses": [
],
"phones": [
],
"clientId": "695634AC-F8AF-4109-ABA7-E849D08C1049",
"firstName": "OIPA",
"lastName": "QA1",
"middleInitial": "Jo",
"taxId": "923846729",
"type": "02",
"taxIdType": "D",
"status": "Active",
"companyId": "05711222-7DB3-4EBD-A821-57A30A699B88"
}
}