{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mammoth-io/json-schema/mammoth-io-connection-patch-request-schema.json",
  "title": "ConnectionPatchRequest",
  "description": "Subscription detail which needs to be updated",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mammoth-io-connections-api-openapi.yml#/components/schemas/ConnectionPatchRequest",
  "properties": {
    "patch": {
      "items": {
        "$ref": "#/$defs/ConnectionPatchOp"
      },
      "type": "array",
      "description": "List of patch operations"
    }
  },
  "type": "object",
  "required": [
    "patch"
  ],
  "$defs": {
    "ConnectionPatchOp": {
      "properties": {
        "op": {
          "type": "string",
          "const": "replace",
          "description": "Operation"
        },
        "path": {
          "type": "string",
          "const": "connection",
          "description": "Path"
        },
        "value": {
          "type": "object",
          "description": "Patch value"
        }
      },
      "type": "object",
      "required": [
        "op",
        "path",
        "value"
      ],
      "title": "ConnectionPatchOp"
    }
  }
}