{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/edgaze-ai/json-schema/edgaze-ai-cancel-run-response-schema.json",
  "title": "CancelRunResponse",
  "description": "Response body for POST /runs/{id}/cancel.",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/edgaze-ai-openapi.json#/components/schemas/CancelRunResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "minLength": 1,
      "format": "uuid"
    },
    "status": {
      "description": "Status after the cancel request. `cancelled` once the run is torn down; a terminal status is returned unchanged when the run had already finished.",
      "$ref": "#/$defs/PublicRunStatus"
    },
    "cancelRequested": {
      "type": "boolean",
      "description": "True when this call initiated the cancellation, false when the run was already in a terminal state and nothing changed."
    }
  },
  "required": [
    "id",
    "status",
    "cancelRequested"
  ],
  "additionalProperties": false,
  "$defs": {
    "PublicRunStatus": {
      "type": "string",
      "enum": [
        "pending",
        "running",
        "suspended",
        "completed",
        "failed",
        "cancelled"
      ],
      "description": "Canonical run status exposed by the public API."
    }
  }
}