Skip to main content
POST
/
organizations
/
{organizationId}
/
adminActions
/
{adminActionRequestId}
/
deny
Deny an admin action request
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/organizations/{organizationId}/adminActions/{adminActionRequestId}/deny \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "note": "<string>"
}
'
{
  "actionRequest": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "submittedById": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "pending",
    "actionType": "settings_change",
    "displayName": "<string>",
    "category": "<string>",
    "actionPayload": {},
    "requiredApprovals": 123,
    "currentApprovals": 123,
    "expiresAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "environmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "submittedBy": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "<string>",
      "name": "<string>"
    },
    "responses": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "actionRequestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "reviewerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "decision": "approved",
        "createdAt": "2023-11-07T05:31:56Z",
        "reviewer": {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "email": "<string>",
          "name": "<string>"
        },
        "note": "<string>"
      }
    ],
    "targetEntityType": "<string>",
    "targetEntityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "previousState": {},
    "resolvedAt": "2023-11-07T05:31:56Z"
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

ID of organization

Required string length: 36
Pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

adminActionRequestId
string<uuid>
required

Body

application/json

Request body for approving or denying an action request.

note
string

Optional note explaining the decision. Shown to the submitter.

Maximum string length: 1000

Response

Action request denied

Wrapper response for a single action request, returned by get/approve/deny endpoints.

actionRequest
object
required

An admin action that may require approval before execution. When approval mode is enabled, sensitive actions create a pending request. When disabled, actions are auto-approved with an audit record.

message
string

Human-readable message, e.g. "This action requires approval from another admin."