Develop > Application Programming Interface > Legacy APIs > Catalog API > Update approval decision using CSA approval process

Update approval decision using CSA approval process

Details

URI /catalog/<calalog_id>/approval/<approval_id>/approver
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/approver ?userIdentifier=90d9667ss5f46a930135f35b327e00a0

The following XML was sent in the request:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Approver>
    <person>
        <userName>approver0@hp.com</userName>
        <organization>
            <name>CONSUMER</name>
        </organization>
    </person>
    <approverResult>
        <name>APPROVED</name>
    </approverResult>
</Approver>

The following URL was sent to reject a subscription request:

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

The following XML was sent in the request:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Approver>
    <person>
        <userName>approver0@hp.com</userName>
        <organization>
            <name>CONSUMER</name>
        </organization>
    </person>
    <approverResult>
        <name>REJECTED</name>
    </approverResult>
    <approvalComment>comment</approvalComment>
</Approver>