Deployments

Execute a deployment operation (deploy, mark_complete, take_screenshot)

Changed on
post/projects/{project_id}/deployments/{deployment_id}/operations

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

project_idinteger required
deployment_idstring required

Request body

operationstring required

Response

Operation accepted. take_screenshot returns status: pending with success: null; poll the operation status for completed (with screenshot_location) or failed (with the reason)

executed_atstring date-time required
messagestring required
operationstring required
status'pending' | 'completed' | 'failed' required

pending while background work (a screenshot capture) runs, then completed or failed. Poll GET …/operations/{operation_type} for the outcome.

successboolean nullable

The outcome, final only once status is terminal: null while the operation is pending, true when it completed, false when it failed. Read status first; a null here is not a failure.

Example response

{
  "data": {
    "screenshot": {
      "captured_at": "2026-10-10T01:25:34.793514Z"
    }
  },
  "executed_at": "2025-10-12T12:15:47.609192Z"
}

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    2 more changes in this revision