{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/airthings/json-schema/airthings-patch-webhook-request-schema.json",
  "title": "PatchWebhookRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/airthings-webhooks-api-openapi.yml#/components/schemas/PatchWebhookRequest",
  "type": "object",
  "properties": {
    "operations": {
      "items": {
        "$ref": "#/$defs/PatchLocation"
      },
      "type": "array"
    }
  },
  "required": [
    "operations"
  ],
  "$defs": {
    "PatchLocation": {
      "type": "object",
      "properties": {
        "op": {
          "$ref": "#/$defs/PatchWebhookAction"
        },
        "path": {
          "$ref": "#/$defs/PatchWebhookPath"
        },
        "value": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "items": {
                "type": "string",
                "format": "uuid"
              },
              "type": "array"
            }
          ]
        }
      },
      "required": [
        "op",
        "path"
      ]
    },
    "PatchWebhookAction": {
      "type": "string",
      "enum": [
        "ADD",
        "REMOVE"
      ]
    },
    "PatchWebhookPath": {
      "type": "string",
      "enum": [
        "locations"
      ]
    }
  }
}