{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/optimizely/main/json-schema/optimizely-batch-response-schema.json",
  "title": "BatchResponse",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optimizely-batch-api-openapi.yml#/components/schemas/BatchResponse",
  "type": "object",
  "properties": {
    "startedAt": {
      "type": "string"
    },
    "endedAt": {
      "type": "string"
    },
    "errorCount": {
      "type": "integer",
      "contentEncoding": "int32"
    },
    "response": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchResponseItem"
      },
      "description": ""
    }
  },
  "$defs": {
    "BatchResponseItem": {
      "title": "BatchResponseItem",
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/Status"
        },
        "requestID": {
          "type": "string"
        },
        "operationID": {
          "type": "string"
        },
        "method": {
          "$ref": "#/$defs/Method1"
        },
        "url": {
          "type": "string"
        },
        "body": {
          "oneOf": [
            {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            {
              "type": "object"
            }
          ]
        },
        "startedAt": {
          "type": "string"
        },
        "endedAt": {
          "type": "string"
        }
      }
    },
    "Method1": {
      "title": "Method1",
      "enum": [
        "GET",
        "POST"
      ],
      "type": "string"
    },
    "Status": {
      "title": "Status",
      "enum": [
        200,
        400
      ],
      "type": "integer"
    }
  }
}