Before You Begin
This 20-minute tutorial shows you how to make changes to a worker's employment information.
All employment changes are date effective updates or corrections and require an action code.
Add a Singular Resource to a Collection
Add a request to ##_WorkersCollection.
- Give the request the name Add Manager.
- Click Save to ##_WorkersCollection.
- Specify the method as POST.
Enter the url for the managers collection or {{Managers_href}} if you set global variables:
{{url}}/hcmRestApi/resources/11.13.18.05/workers/{id}/child/workRelationships/{id}/child/assignments/{id}/child/managers
Give the request the following headers:
Key Value REST-Framework-Version 4 Content-Type application/vnd.oracle.adf.resourceitem+json effective-Of RangeStartDate={{4DaysAhead}} Add the request body. None is selected by default, raw must be used to add content.
Value replacements will need to be made in the body for your manager assignment number.
Request Body:
{ "ManagerAssignmentNumber": "E955160008194454", "ManagerType": "LINE_MANAGER", "ActionCode": "MANAGER_CHANGE" }
Click Send.
- Click Save.
Update a Singular Resource
Add a request to ##_WorkersCollection.
- Give the request the name Update Work Location.
- Click Save to ##_WorkersCollection.
- Specify the method as POST.
Enter the url for the assignment item or {{Assignment_href}} if you set global variables:
{{url}}/hcmRestApi/resources/11.13.18.05/workers/{id}/child/workRelationships/{id}/child/assignments/{id}
Give the request the following headers:
Key Value REST-Framework-Version 4 Content-Type application/vnd.oracle.adf.resourceitem+json effective-Of RangeMode=UPDATE;RangeStartDate={{5DaysAhead}};RangeEndDate=4712-12-31 Add the request body. None is selected by default, raw must be used to add content.
Request Body:
{ "BusinessUnitName": "Vision Central", "LocationCode": "ComUSHQ", "ActionCode": "LOCATION_CHANGE" }
Click Send.
- Click Save.
Perform an Action on a Worker
Some of the commonly performed employment actions have been delivered as custom actions to simplify a multi-step process, or to perform the actions that can't be performed directly via the standard HTTP methods.
Actions have a different content type than resources (application/vnd.oracle.adf.action+json).
Add a request to ##_WorkersCollection.
- Give the request the name Add a Temporary Assignment.
- Click Save to ##_WorkersCollection.
- Specify the method as POST.
Enter the url for the assignment item or {{Assignment_href}} if you set global variables:
{{url}}/hcmRestApi/resources/11.13.18.05/workers/{id}/child/workRelationships/{id}/child/assignments/{id}
Give the request the following headers:
Key Value REST-Framework-Version 4 Content-Type application/vnd.oracle.adf.action+json Add the request body. None is selected by default, raw must be used to add content.
Request Body:
{ "actionCode":"TEMP_ASG" , "effectiveDate":"{{5DaysAhead}}" , "businessUnitName":"BusinessUnit2" }
Click Send.
- Click Save.
Want to Learn More?
- HR Integrations Forum
- REST API for Oracle HCM Cloud: Manage Workers Security
- REST API for Oracle HCM Cloud: Quick Start
- REST API for Oracle HCM Cloud: Manage Workers
- REST API for Oracle HCM Cloud: Workers
- Application Security Forum
- An Introduction to HCM Security in the Cloud
- Oracle University: Oracle HCM Cloud Security
- Idea Lab – HR Integration, Security, & Updates