{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/actionbox-cloud/json-schema/actionbox-cloud-run-create-schema.json",
  "title": "RunCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/actionbox-cloud-runs-api-openapi.yml#/components/schemas/RunCreate",
  "properties": {
    "external_id": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "External Id"
    },
    "agent_name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Agent Name"
    },
    "task_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Task Id"
    },
    "title": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Title"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running"
      ],
      "title": "Status",
      "default": "running"
    },
    "stage": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Stage"
    },
    "checkpoint": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Checkpoint"
    },
    "stall_after_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 2592000.0,
          "minimum": 60.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Stall After Seconds"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    }
  },
  "type": "object",
  "required": [
    "external_id",
    "agent_name",
    "title"
  ]
}