Atlas
Admin — Approval Workflows

Review approval request

Approve or deny a pending approval request.

POST
/api/v1/admin/approval/queue/:id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:3001/api/v1/admin/approval/queue/:id" \  -H "Content-Type: application/json" \  -d '{    "action": "approve"  }'
{
  "request": {
    "id": "string",
    "orgId": "string",
    "ruleId": "string",
    "ruleName": "string",
    "requesterId": "string",
    "requesterEmail": "string",
    "querySql": "string",
    "explanation": "string",
    "connectionId": "string",
    "tablesAccessed": [
      "string"
    ],
    "columnsAccessed": [
      "string"
    ],
    "status": "pending",
    "reviewerId": "string",
    "reviewerEmail": "string",
    "reviewComment": "string",
    "reviewedAt": "string",
    "createdAt": "string",
    "expiresAt": "string"
  }
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}