Discussions

Ask a Question
Back to All

Get Leave ID

Hi Guys,

I am writing some intergration between humanity and a 3rd party tool (namely peoplehr) to keep users holidays in sync across the two platforms.

I can use the leaves endpoint to create a holiday and thats fine I now want to approve the holiday. I am attempting to get the ID I just created by querying data: id inside the json response however when a put request is made I simply receive a 400 and a resource not found.

Do I have to manually specify the ID upon creation? Is there anyway to auto approve a request which has been made from the API?

for sake of compleness the leave ID in question is 5119323