Add a Worker Email
Alex Robinson has been hired as an employee at Vision Corporation and needs to have his work email added to his contact information.
To add a worker email:
- Retrieve (GET) the worker record and obtain the email collection link.
- Perform a POST operation on this URL by providing the work email in the request body.
Example URL
Use this resource URL format.
POST
/hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/emails
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
{
"EmailType": "W1",
"EmailAddress": "test01@example.com",
"PrimaryFlag":true
}
Example Response
Here's an example of the response body in JSON format.
{
"EmailAddressId": 300100180035208,
"EmailType": "W1",
"EmailAddress": "test01@example.com",
"FromDate": "2019-06-10",
"ToDate": null,
"CreatedBy": "HCM_INTEGRATION_SPEC",
"CreationDate": "2019-06-10T19:50:33+00:00",
"LastUpdatedBy": "HCM_INTEGRATION_SPEC",
"LastUpdateDate": "2019-06-10T19:50:33.133+00:00",
"PrimaryFlag": true,
"links": [...]
}