Approval

Approve a request

Changed on

Approves a request using its ID.

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

post/approval/{id}/approve

Request

  • Base URL
    https://api.nullplatform.com
  • URL
    https://api.nullplatform.com/approval/{id}/approve
  • 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": "Approved due to emergency deployment requirements.",
  "details": {}
}

Response

The operation was successful.

successboolean

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