{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-cancel-user-jobs-response-schema.json",
  "title": "CancelUserJobsResponse",
  "description": "\"Stop everything\" result, grouped by job so callers can show a breakdown.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-rollouts-api-openapi.yml#/components/schemas/CancelUserJobsResponse",
  "properties": {
    "status": {
      "type": "string",
      "title": "Status",
      "default": "accepted"
    },
    "jobs_cancelled": {
      "type": "integer",
      "title": "Jobs Cancelled"
    },
    "total_tasks_cancelled": {
      "type": "integer",
      "title": "Total Tasks Cancelled"
    },
    "job_details": {
      "items": {
        "$ref": "#/$defs/CancelUserJobsJobDetail"
      },
      "type": "array",
      "title": "Job Details"
    }
  },
  "type": "object",
  "required": [
    "jobs_cancelled",
    "total_tasks_cancelled",
    "job_details"
  ],
  "$defs": {
    "CancelUserJobsJobDetail": {
      "properties": {
        "job_id": {
          "type": "string",
          "format": "uuid",
          "title": "Job Id"
        },
        "cancelled": {
          "type": "integer",
          "title": "Cancelled"
        }
      },
      "type": "object",
      "required": [
        "job_id",
        "cancelled"
      ],
      "title": "CancelUserJobsJobDetail"
    }
  }
}