HPE Morpheus Enterprise Software
1856657 Members
8377 Online
104113 Solutions
New Discussion

Re: Approval API

 
SOLVED
Go to solution
AungKT
Regular Advisor

Approval API

Hello,

When I call https:///api/approvals/, I got the approval Id. However, I got the error messages “Id not found” when I execute the approval action with a specific approval Id. ( https:///api/approval-items/14/approve).

{"success":false,"msg":"Approval item not found with id }.

Any suggestion, please? Morpheus is v6.0.0

Regards,
Aung

2 REPLIES 2
AungKT
Regular Advisor

Re: Approval API

Thank you @ctaylor. Got it.

Thanks,
Aung

cdtaylor
Trusted Contributor
Solution

Re: Approval API

Approval item ID is distinct to the Approval ID. If you use the Get Approval API (https://apidocs.morpheusdata.com/reference/getapprovals) it will retrieve the Approval Items, and you can obtain the approval item ID for use in the approve API.