Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 536.4K On-Premises Infrastructure
- 138.3K Analytics Software
- 38.6K Application Development Software
- 5.8K Cloud Platform
- 109.5K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
How to terminate an employee / worker API

Hi,
I am working in Boomi. I need to submit a request to terminate an employee. I found that, but I keep getting an error.
So, I submit a POST with this API: hcmRestApi/resources/11.13.18.05/workers/00020000000EACED0005770847j768404AACED00057372000D6A6176612E73716C2E446174651j6767j65j7650E6A6176612E7574696C2E44617465686A81j7650007870770800000178A9A0F00078/child/workRelationships/3000000657657649/action/terminate
But the best result I got - was the error: The specified operation is not supported for the invoked HTTP method. Please check the URL and the headers.
So, what am I doing wrong?
Thank you,
Lenny
Answers
-
Have you found the resolution? Am facing the same issue.
-
Hi @Abdullah Munaz ,
Yes, I got it to work.
1.
Execute a GET:
hcmRestApi/resources/11.13.18.05/emps?q=PersonNumber=0011111
It gives you the workersUniqID
2.
Then get the workersUniqID from there and run a GET:
hcmRestApi/resources/11.13.18.05/workers/00020000000EACED0005754686865885580000004AACED00sometextandnumbers0E6A96796E757sometextandnumbers000078754677576576577654C0078/child/workRelationships
It's going to give you the PeriodOfServiceId
3.
JSON Body:
{
"actionCode": "RESIGNATION",
"terminationDate": "2021-03-18"
}
Path:
hcmRestApi/resources/11.13.18.05/workers/00020000000EACED0005754686865885580000004AACED00sometextandnumbers0E6A96796E757sometextandnumbers000078754677576576577654C0078/child/workRelationships/300000006565656656/action/terminate
Content-Type: application/vnd.oracle.adf.action+json
Connection: keep-alive
-
It gives me now forbidden error
-
Are you working in Boomi?
Did you try that in the Postman?
-
In Postman.
-
Did you get all the IDs that I mentioned and built the URL?
hcmRestApi/resources/11.13.18.05/workers/00020000000EACsometextandnumbers0E6A96796E757sometextandnumbers0000787C0078/child/workRelationships/300000656/action/terminate
-
yes. Gives me forbidden exception.
-
I don't know... Can you send a few screens, maybe I will see something?
-
Hi @Abdullah Munaz ,
Did you figure it out?
-
Hello I did all the steps but when I got to step 3 I gave this error