Develop > Application Programming Interface > Legacy APIs > User API > Delete multiple approval requests

Delete multiple approval requests

Details

URI /user/multipleApprovals/delete
Method POST
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. See Get userIdentifier for the steps required to get the userIdentifier value.

Returns 200 - Ok (Indicates the REST call executed without error. See XML return content for whether all specified approval requests were deleted.)  
401 - Not authorized
404 - Object not found
500 - Server exception

An approval request can only be deleted if its state is APPROVED or DENIED. 

Example

The following URL was sent:

https://<host>:<port>/csa/rest/user/multipleApprovals/delete ?userIdentifier=90d965c0379fd06601379fd192b30ee6

The following XML was sent in the request:


<ApprovalProcessList>
    <approvalProcess>
        <id>90e72e713a94e0ab013aae76618e0e39</id>
        <catalogItem>
            <catalog>
                <id>90d965c0379fd06601379fd1936a0f05</id>
            </catalog>
        </catalogItem>
    </approvalProcess>
    <approvalProcess>
        <id>90e2a4133a75430b013a7a1328560377</id>
        <catalogItem>
            <catalog>
                <id>90d965c0379fd06601379fd1936a0f05</id>
            </catalog>
        </catalogItem>
    </approvalProcess>
</ApprovalProcessList>

The following XML was returned in the response. The count value indicates the number of approval requests successfully deleted. An ApprovalProcess element is included for each deleted approval request.


<ApprovalProcessList>
    <count>2</count>
    <limit>0</limit>
    <ApprovalProcess>
        <id>90e72e713a94e0ab013aae76618e0e39</id>
        ...
    </ApprovalProcess>
    <ApprovalProcess>
        <id>90e2a4133a75430b013a7a1328560377</id>
        ...
    </ApprovalProcess>
</ServiceSubscriptionList>