Approval

Denies a request by ID.

:::note This endpoint is executed according to the URL you received in the approval notification. :::

post/approval/{id}/deny

Request

  • Base URL
    https://api.nullplatform.com
  • URL
    https://api.nullplatform.com/approval/{id}/deny
  • Auth
    HTTP bearer

Path parameters

idinteger required

The ID of the approval.

Query parameters

tokenstring required

The authentication token provided in the approval notification.

Request body

messagestring

An optional message explaining the approver's decision.

detailsobject

Additional structured metadata related to the approver's decision.

Example request

{
  "reviewer": {
    "name": "Alex Manager",
    "email": "alex.mgr@crypto-inc.com",
    "nullplatform_user_id": null
  },
  "message": "Denied because it's outside of the deployment window.",
  "details": {
    "deployment_window": "Mon-Fri ; 9 AM to 5 PM"
  }
}

Response

The operation was successful.

successboolean required

Indicates whether the operation was successful.

Example response

{
  "success": true
}

Changes

    • breaking

      the response property became optional for the status

    • breaking

      the response property became optional for the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      media type application/json was changed to a more specific media type application/problem+json for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      response property message deprecated

    • info

      response property message deprecated

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status