We are trying to suspend a workers assignment and then reactive them in Oracle HCM using REST API: /hcmRestApi/resources/11.13.18.05/workers/{PersonId}/child/workRelationships/{PeriodOfServiceId}
{
"ActionCode" : "SUSP_ASSIGN",
"AssignmentStatusTypeCode" : "SUSPEND_NO_PROCESS",
"AssignmentStatusType" : "SUSPENDED"
}
When we do this in the UI, the AssignmentStatusType is showing "SUSPENDED" when we do a GET on the employee. However, when we do this using the API, the GET returns an "ACTIVE" for the AssignmentStatusType.
We are seeing an error: You must enter a valid value for the Assignment Status field (PER-1530231)
We are not sure what we may be doing wrong.