Correct a Worker Phone
Alex's mobile phone number was entered incorrectly when he was hired. A correction needs to be made to this record.
To correct the worker phone:
- Retrieve (GET) the worker record and obtain the phone item link.
- Perform a PATCH operation on this URL by providing the correct phone number in the request body.
Example URL
Use this resource URL format.
PATCH
/hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/phones/{phonesUniqID}
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
{
"PhoneNumber":"4444444"
}
Example Response
Here's an example of the response body in JSON format.
{
"PhoneId": 300100180005738,
"PhoneType": "W1",
"LegislationCode": "US",
"CountryCodeNumber": "1",
"AreaCode": "510",
"PhoneNumber": "444-4444",
"Extension": null,
"FromDate": "2019-06-02",
"ToDate": null,
"CreatedBy": "HCM_INTEGRATION_SPEC",
"CreationDate": "2019-06-07T15:52:00.171+00:00",
"LastUpdatedBy": "HCM_INTEGRATION_SPEC",
"LastUpdateDate": "2019-06-10T19:55:15+00:00",
"PrimaryFlag": false,
"links": [...]
}