{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cavuno-com/json-schema/cavuno-com-blog-posts-batch-request-schema.json",
  "title": "BlogPostsBatchRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cavuno-com-blog-posts-api-openapi.yml#/components/schemas/BlogPostsBatchRequest",
  "type": "object",
  "properties": {
    "operations": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "method": {
                "type": "string",
                "enum": [
                  "POST"
                ]
              },
              "body": {},
              "action": {
                "type": "string"
              },
              "resourceId": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "method"
            ]
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "method": {
                "type": "string",
                "enum": [
                  "PATCH"
                ]
              },
              "body": {},
              "resourceId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "id",
              "method",
              "resourceId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1
              },
              "method": {
                "type": "string",
                "enum": [
                  "DELETE"
                ]
              },
              "resourceId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "id",
              "method",
              "resourceId"
            ]
          }
        ]
      },
      "minItems": 1,
      "maxItems": 50,
      "description": "Array of post sub-operations to execute. Each runs independently and reports on the matching entry of the response `data` array. `id` values must be unique. Supported: POST (create), PATCH (update), DELETE, and POST with action `publish`/`unpublish`. Up to 50 entries."
    }
  },
  "required": [
    "operations"
  ],
  "additionalProperties": false
}