Develop > Application Programming Interface > Legacy APIs > Catalog API > Update approval decision using an external approval system

Update approval decision using an external approval system

Details

URI /catalog/<calalog_id>/approval/<approval_id>
Use Catalog API to get the catalog ID and List approvals in the catalog to get the approval ID.
Method PUT
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. This user should be a consumer user who has the necessary permissions for the data you want to work with. See Get userIdentifier for the steps required to get the userIdentifier value.

Body ApprovalProcess instance required in request body.
Returns 200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception

Examples

The following URL was sent to approve a subscription request:

https://<host>:<port>/csa/rest/catalog/90540a9734f502880134f502c82e0011/ approval/65920b6356n204770943t567ss2r1503 ?userIdentifier=90d9667ss5f46a930135f35b327e00a0

The following XML was sent in the request:


<ApprovalProcess>
    <approvalResult>
        <name>APPROVED</name>
    </approvalResult>
</ApprovalProcess>

The following URL was sent to reject a subscription request:

https://<host>:<port>/csa/rest/catalog/

The following XML was sent in the request:


<ApprovalProcess>
    <approvalResult>
        <name>REJECTED</name>
    </approvalResult>
    <approvalComment>comment</approvalComment>
</ApprovalProcess>