Update client
put
/PASService/rest/services/clients/{clientId}
Updates a client based on the specified client 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
Root Schema : schema
Type:
stringResponse
Supported Media Types
- application/json
Default Response
successful operation
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" -u username:password "server:port/PASService/rest/services/clients/D28E06BF-B413-46FB-840F-73E6C2FEE112"
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": "D28E06BF-B413-46FB-840F-73E6C2FEE112",
"firstName": "OIPA",
"lastName": "QA1",
"middleInitial": "Jo",
"taxId": "923846729",
"type": "02",
"taxIdType": "D",
"status": "Active",
"companyId": "05711222-7DB3-4EBD-A821-57A30A699B88"
}
}"