Reject an approval request
POST /api/approvals/{approval_id}/reject
POST /api/approvals/{approval_id}/rejectInteractive request editor loads with JavaScript.
In: header
Path Parameters
Approval ID.
^[a-zA-Z0-9-_.]+$1 <= length <= 256Response Body
application/json
application/json
curl -X POST "$API_BASE_URL/api/approvals/bd58fce2-b6cc-4d2d-a53c-6ce11b19c101/reject"Successful operation.
{
"value": {}
}Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.
{
"value": {},
"error_msg": "error message"
}Complete operation details and schema variants
POST /api/approvals/{approval_id}/reject
Reject an approval request
Reject a specific workflow approval request so the requested action is not applied. Use this endpoint to explicitly deny subscription or registration requests that do not meet review criteria.
Required IAM Permission: For event type api_product_subscription: Action portal:ApproveAPIProductSubscription, Resource arn:api7:portal:portal/%s/apiproduct/%s; for event type developer_registration: Action portal:ApproveDeveloperSignUp, Resource arn:api7:portal:portal/%s/developer/*
Parameters
approval_id(path, string, required): Approval ID.
Responses
200: Successful operation.value(object, optional): The specific resource.400: Bad Request — The request was malformed or contained invalid parameters. Check the error_msg field for details.value(object, optional): The specific resource.error_msg(string, optional): The error message.
cURL
curl -X POST '$API_BASE_URL/api/approvals/{approval_id}/reject'