Get Started with Redwood for Oracle Cloud HCM Begin Now
Worker API to get the worker's latest active assignment
Content
One of our vendor is using the Worker API to get the worker's active assignment.
The Worker API is working fine, but the vendor is having issues retrieving the worker child resources through API. They have to excute 2-3 API Calls to retrieve the active assignments. Is there any alternate endpoint to use to pull both the parent and child resource together?
Currently, this is how they pull the worker info -
1. Make an API call to: https://****.fa.us2.oraclecloud.com:443/hcmRestApi/resources/11.13.18.05/workers/?q=PersonNumber=123 just to get the array of links. Then would need to step through the links array and check the value of “name”, if the value of name equals "workRelationships" then get the “href” link, and make a subsequent call to that API endpoint.
Tagged:
1