{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-client-org-exclusion-list-request-schema.json",
  "title": "ClientOrgExclusionListRequest",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-commodity-api-openapi.yml#/components/schemas/ClientOrgExclusionListRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/ClientOrgExclusionListRequestDto"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ClientOrgExclusionListRequestDto": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "exclusionType": {
          "type": "string",
          "description": "Type of exclusions that are being added",
          "enum": [
            "SKU",
            "Brand",
            "Category"
          ]
        },
        "exclusions": {
          "type": "array",
          "description": "Item to be excluded from commerce availability",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    }
  }
}