Update a specific group customer by groupCustomerId
put
/PASService/rest/services/v1/groupCustomers/{groupCustomerId}
Updates a single group customer based on the specified groupCustomerId.
Request
Path Parameters
-
groupCustomerId(required): string(guid)
groupCustomerId
Supported Media Types
- application/json
Root Schema : schema
Type:
stringResponse
204 Response
This operation updates a specific groupCustomer based on the specific groupCustomer Id successfully.
Examples
This example describes how to update a single group customer based on the specified group customer 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/groupCustomers/C19DCECD-31F3-4196-8374-7F27E3948918" \
-d '{"Use this placeholder to plug-in the example request body given below"} Example Request Body
The following shows an example of the response body in JSON format:
{
"groupCustomer": {
"dateOfBirth": null,
"dateOfDeath": null,
"updatedGmt": null,
"companyName": "Updated_Group_Customer",
"email": "duplicate@email.com",
"prefix": null,
"sex": null,
"suffix": null,
"legalResidenceCountryCode": "CA",
"additionalPrefix": null,
"additionalSuffix": null,
"title": null,
"maritalStatus": null,
"birthCountryCode": null,
"citizenshipCountryCode": null,
"birthRegionCode": null,
"primaryPhone": null,
"textField1": null,
"textField2": null,
"checkBox1": null,
"checkBox2": null,
"radio1": null,
"radio2": null,
"combo1": null,
"combo2": null,
"entityTypeCode": "GROUPCUST",
"date1": null,
"date2": null,
"addresses": null,
"customerNumber": "GC170026",
"primaryEnrollmentRelationship": "Employment",
"enrollmentClassGroup": "02",
"allowedForCopy": "Yes",
"hierarchyRelationship": "Employment",
"clientId": "0B7EADAE-8267-4860-B629-898DA8847507",
"firstName": null,
"lastName": null,
"middleInitial": null,
"taxId": "709831231",
"type": "20",
"taxIdType": null,
"status": null,
"companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9",
"groupCustomerId": "1E905978-366E-4718-9EEE-7A1E41782557",
"CancellationReason": {
"textValue": "04",
"optionText": "Reason 1"
},
"CancellationDate": null,
"IndustryCode": {
"textValue": "327910",
"optionText": "Abrasive Product Manufacturing - 327910"
},
"TaxIDSource": {
"textValue": "00",
"optionText": "Application"
},
"Corporation": {
"textValue": "00",
"optionText": "No"
},
"AlternateFederalEmployerIDNumber": null,
"SitusState": {
"textValue": "01",
"optionText": "AL"
},
"OriginalEffectiveDate": "2015-08-04T00:00:00Z",
"CustomerStatus": {
"textValue": "01",
"optionText": "Incomplete"
},
"ChangeEffectiveDate": "2015-08-04T00:00:00Z",
"ReinstatementDate": null,
"CustomerLegalName": "Duplicate_Grp_Cust",
"CancellationReasonDescription": null
}
}