Hi there,
First of all, I apologize if I am not using the right place to discuss about my issue (did not find anything related to API issue in the vRealize Automation forum).
I am trying to create a workflow to reject/approve any destroy related requests. I am able to run a simple GET request but when it comes to a POST one, I receive a http 401 message.
I tried to run the curl command from a standalone linux station, our standalone vro instance and even from vra. Always the same result.
I first tried to use the VMware vRealize Automation API Explorer available on the vRA appliance to format my request but got a http 404.
vRealize Automation API documentation 7.4 seems to not be up to date. I had to use workitem-service instead of work-item-service in my request.
My request is the following :
curl -v -k -X POST --header 'Content-Type: application/json' --header 'Accept: text/html' -d "nope" https://VRA-FQDN/workitem-service/api/workitems/WORKITEMID/actions/com.vmware.csp.core.approval.action.reject
A GET on the same workitem runs without any problem.
Has somebody already faced this issue ?
Many thanks in advance