Hi all,
I'm trying to use the MyLeaveRequest API through Postman, but I'm getting a 401 error
https://docs.microsoft.com/en-us/dynamics365/human-resources/hr-developer-api-myleaverequests-submit
I have been following the official documentation, and I have actually added permissions to the app (identifier f9be0c49-aa22-4ec6-911a-c5da515226ff) without success.
This is the call:
curl --location --request POST 'https://{cluster}.hr.talent.dynamics.com/namespaces/{namespace_guid}//data/MyLeaveRequests(RequestId='\''AUD-000099'\'', LeaveType='\''Vacaciones Test'\'', LeaveDate=2022-10-20T12:00:00Z, dataAreaId='\''AUD'\'')/Microsoft.Dynamics.DataEntities.submit?cross-company=true' \
--header 'Authorization: Bearer {token}
--header 'Content-Type: application/json'
The response is just a 401 with no body.
I have seen that there are entries in this forum with the same problem but without a solution
Any help is welcome