API7 Docs
API7 GatewayAPI7 Enterprise Admin APIsAccept an approval request

Accept an approval request

POST /api/approvals/{approval_id}/accept

POST /api/approvals/{approval_id}/accept

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/accept"

Successful operation.

{
  "value": {}
}
Complete operation details and schema variants

POST /api/approvals/{approval_id}/accept

Accept an approval request

Approve a specific workflow request and apply the corresponding portal-side change, such as granting an API product subscription or accepting a developer sign-up. This operation advances the approval lifecycle to an accepted state.

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}/accept'