Accept an approval request
POST /api/approvals/{approval_id}/accept
POST /api/approvals/{approval_id}/acceptInteractive request editor loads with JavaScript.
Authorization
BearerAuth AuthorizationBearer <token>
In: header
Path Parameters
approval_id*string
Approval ID.
Match
^[a-zA-Z0-9-_.]+$Length
1 <= length <= 256Request 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.
Bad request.
{
"status": 400,
"message": "error message"
}Unauthorized.
{
"status": 401,
"message": "unauthorized"
}Resource not found.
{
"status": 404,
"message": "resource not found"
}Internal server error.
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 toPOST /api/approvals/{approval_id}/accept, response 400 above.404: Resource not found. Response fields (application/json): identical toPOST /api/approvals/{approval_id}/accept, response 400 above.500: Internal server error.
cURL
curl -X POST '$API_BASE_URL/api/approvals/{approval_id}/accept'