End an Assignment

Note:

You can't use this custom action to end a global temporary assignment. For more information about how to end a global temporary assignment, see Terminate a Work Relationship.

Alex's s temporary assignment has ended, and he needs to resume his regular assignment.

To end a temporary assignment:

  1. Retrieve (GET) the work relationship details and obtain the work relationship item link.
  2. Perform a POST operation on this URL by providing the action code and the effective date in the request body.

Example URL

Use this resource URL format.

POST

/hcmRestApi/resources/11.13.18.05/workers/{workersUniqID}/child/workRelationships/{PeriodOfServiceId}/child/assignments/{assignmentsUniqID}/action/endAssignment

Example Request

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

Provide the headers.

Content-Type : application/vnd.oracle.adf.action+json
REST-Framework-Version : 4
{
"effectiveDate":"2018-09-01",
"actionCode":"END_ASG"
}

Example Response

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

{
"result": "true"
}