{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-batch-request-schema.json",
  "title": "BatchRequest",
  "description": "Request body for POST /tasks/batch-ops.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-batch-operations-api-openapi.yml#/components/schemas/BatchRequest",
  "properties": {
    "action": {
      "$ref": "#/$defs/BatchAction"
    },
    "ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Ids"
    },
    "priority": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Priority"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tags"
    }
  },
  "type": "object",
  "required": [
    "action",
    "ids"
  ],
  "$defs": {
    "BatchAction": {
      "type": "string",
      "enum": [
        "cancel",
        "retry",
        "reprioritize",
        "tag"
      ],
      "title": "BatchAction",
      "description": "Supported batch operation types."
    }
  }
}