API7 Docs
API7 GatewayAPI7 Enterprise Developer Portal 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

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

approval_id*string

Approval ID.

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

Request Body

application/json

Response Body

application/json

application/json

application/json

curl -X POST "$API_BASE_URL/api/approvals/bd58fce2-b6cc-4d2d-a53c-6ce11b19c101/accept" \  -H "Content-Type: application/json" \  -d '{}'

The operation was successful.

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.

Parameters

  • approval_id (path, string, required): Approval ID.

Request body

Content type: application/json

  • metadata (string, optional): Opaque JSON string stored on the approval. The developer portal uses it to carry the acting platform admin's identity.

Responses

  • 200: The operation was successful.
  • 400: Bad request.
  • status (integer, required): The HTTP status code of the error response.
  • message (string, required): The error message.
  • 401: Unauthorized. Response fields (application/json): identical to POST /api/approvals/{approval_id}/accept, response 400 above.
  • 404: Resource not found. Response fields (application/json): identical to POST /api/approvals/{approval_id}/accept, response 400 above.
  • 500: Internal server error.

cURL

curl -X POST '$API_BASE_URL/api/approvals/{approval_id}/accept'