{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-batches-patch-request-schema.json",
  "title": "BatchesPatchRequest",
  "description": "State of the batches to be updated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-batches-api-openapi.yml#/components/schemas/BatchesPatchRequest",
  "properties": {
    "patch": {
      "$ref": "#/$defs/BatchesPatchOperation"
    }
  },
  "type": "object",
  "required": [
    "patch"
  ],
  "$defs": {
    "BatchesPatchOperation": {
      "properties": {
        "op": {
          "$ref": "#/$defs/datasets_schema_OpValues"
        },
        "path": {
          "$ref": "#/$defs/BatchesPathValues"
        },
        "value": {
          "$ref": "#/$defs/BatchesPatchValues"
        }
      },
      "type": "object",
      "required": [
        "op",
        "path",
        "value"
      ],
      "title": "BatchesPatchOperation"
    },
    "BatchesPatchValues": {
      "properties": {
        "suspend": {
          "oneOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "List of batch ids to be suspended"
        },
        "restore": {
          "oneOf": [
            {
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "description": "List of batch ids to be restored"
        }
      },
      "type": "object",
      "required": [],
      "title": "BatchesPatchValues",
      "description": "Value to replace/add/remove the attribute"
    },
    "BatchesPathValues": {
      "type": "string",
      "enum": [
        "batches"
      ],
      "title": "BatchesPathValues",
      "description": "Path"
    },
    "datasets_schema_OpValues": {
      "type": "string",
      "enum": [
        "replace",
        "add",
        "remove",
        "command"
      ],
      "title": "OpValues",
      "description": "Operation"
    }
  }
}