{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-client-org-subscribed-events-request-schema.json",
  "title": "ClientOrgSubscribedEventsRequest",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-client-org-management-api-openapi.yml#/components/schemas/ClientOrgSubscribedEventsRequest",
  "type": "object",
  "properties": {
    "clientOrg": {
      "$ref": "#/$defs/ClientOrgDto",
      "description": "The name of the client organization"
    },
    "clientOrgSubscribedEvents": {
      "type": "array",
      "description": "List of client org events to subscribe to or unsubscribe from. \"eventName\" and \"disabled\" fields will be ignored.",
      "items": {
        "$ref": "#/$defs/ClientOrgSubscribedEventDto"
      }
    }
  },
  "required": [
    "clientOrg",
    "clientOrgSubscribedEvents"
  ],
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "ClientOrgSubscribedEventDto": {
      "type": "object",
      "properties": {
        "eventName": {
          "type": "string",
          "description": "Name of the event"
        },
        "eventType": {
          "type": "string",
          "description": "Type of the event"
        },
        "subscribed": {
          "type": "boolean",
          "description": "Event subscribed"
        },
        "disabled": {
          "type": "boolean",
          "description": "Event disabled"
        }
      },
      "required": [
        "eventType",
        "subscribed"
      ]
    }
  }
}