API7 Docs
API7 GatewayAPI7 Enterprise Admin APIsReject an approval request

Reject an approval request

POST /api/approvals/{approval_id}/reject

POST /api/approvals/{approval_id}/reject

Interactive request editor loads with JavaScript.

Authorization

X-API-KEY<token>

In: header

Path Parameters

approval_id*string

Approval ID.

Match^[a-zA-Z0-9-_.]+$
Length1 <= length <= 256

Response Body

application/json

application/json

curl -X POST "$API_BASE_URL/api/approvals/bd58fce2-b6cc-4d2d-a53c-6ce11b19c101/reject"

Successful operation.

{
  "value": {}
}
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'