Work Relationships REST Endpoints

Workers/Work Relationships
The workRelationships resource is a child of the workers resource. It provides all the work relationships of a worker as of the specified date. By default, the current date is retained.
Add a temporary assignment
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/addTemporaryAssignment
Cancel a work relationship
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/cancelWorkRelationship
Change the legal employer or create a temporary assignment
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/changeLegalEmployer
Change the primary flag of a work relationship
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/changePrimaryFlag
Change the start date of a work relationship
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/changeStartDate
Correct a worker termination
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/correctTermination
Create a worker work relationship
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships
Get a worker work relationship
Method: get
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}
Get all worker work relationships
Method: get
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships
Reverse a worker termination
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/reverseTermination
Terminate a worker
Method: post
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/action/terminate
Update a worker work relationship
Method: patch
Path: /hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}