Update a Worker Name

Jane Davidson recently got married and she'll be changing her last name to Smith. Her name needs to be updated to reflect this change.

To update the name:

  1. Retrieve (GET) the worker details and obtain the name item link.
  2. Perform a PATCH operation on this URL by providing the new name in the request body.

Example URL

Use this resource URL format.

POST

/hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/names/{PersonNameId}

Example Request

Here's an example of the request body in JSON format.

Provide the headers.

Content-Type : application/vnd.oracle.adf.resourceitem+json
REST-Framework-Version : 4
effective-Of : RangeMode=UPDATE;RangeStartDate=2019-06-10;RangeEndDate=4712-12-31
{
"LastName": "Smith"
}
{
"PersonNameId": 300100180005734,
"EffectiveStartDate": "2019-06-10",
"EffectiveEndDate": "4712-12-31",
"LegislationCode": "US",
"LastName": "Smith",
"FirstName": "Jane",
"Title": null,
"PreNameAdjunct": null,
"Suffix": null,
"MiddleNames": "MN",
"Honors": null,
"KnownAs": null,
"PreviousLastName": null,
"DisplayName": "Jane Smith",
"OrderName": "Smith Jane",
"ListName": "Smith, Jane",
"FullName": "Smith, Jane MN",
"NameLanguage": "US",
"CreatedBy": "HCM_INTEGRATION_SPEC",
"CreationDate": "2019-06-07T15:52:00.069+00:00",
"LastUpdatedBy": "HCM_INTEGRATION_SPEC",
"LastUpdateDate": "2019-06-10T20:27:18.449+00:00",
"LocalPersonNameId": 300100180005735,
"LocalEffectiveStartDate": "2019-06-10",
"LocalEffectiveEndDate": "4712-12-31",
"LocalLegislationCode": "US",
"LocalLastName": "Smith",
"LocalFirstName": "Jane",
"LocalTitle": null,
"LocalPreNameAdjunct": null,
"LocalSuffix": null,
"LocalMiddleNames": "MN",
"LocalHonors": null,
"LocalKnownAs": null,
"LocalPreviousLastName": null,
"LocalDisplayName": "Jane Smith",
"LocalOrderName": "Smith Jane",
"LocalListName": "Smith, Jane",
"LocalFullName": "Smith Jane",
"LocalNameLanguage": "US",
"LocalCreatedBy": "HCM_INTEGRATION_SPEC",
"LocalCreationDate": "2019-06-07T15:52:00.069+00:00",
"LocalLastUpdatedBy": "HCM_INTEGRATION_SPEC",
"LocalLastUpdateDate": "2019-06-10T20:27:18.450+00:00",
"links": [...]

}