{
  "openapi": "3.0.0",
  "info": {
    "title": "VisitReport Inventory Data API",
    "version": "1",
    "description": "Create inventory data lists for VisitReport events and upload, update, or review their contacts."
  },
  "servers": [
    {
      "url": "https://backend.snapaddy.com/questionnaire"
    }
  ],
  "tags": [
    {
      "name": "Global lists",
      "description": "Lists shared across events. Address them by list ID."
    },
    {
      "name": "Event-specific lists",
      "description": "Lists that belong to one event. Address them by event ID."
    }
  ],
  "paths": {
    "/global-inventory-data/v1": {
      "post": {
        "operationId": "GlobalInventoryDataController_createGlobalContactList",
        "summary": "Create a global list",
        "description": "Create an empty inventory data list that several events can share. Use the returned `listId` to activate the list for an event and to upload contacts. Requires an organization administrator, Event Manager, or Event Curator account.",
        "tags": [
          "Global lists"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "Name of the new list.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateGlobalContactListRequestDto"
              },
              "example": {
                "listName": "Spring Expo visitors"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetGlobalContactListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. `listName` is missing or longer than 255 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Use an organization administrator, Event Manager, or Event Curator account to create global lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/global-inventory-data/v1/activate": {
      "post": {
        "operationId": "GlobalInventoryDataController_activateGlobalContactList",
        "summary": "Activate a global list for an event",
        "description": "Make a global list the event’s inventory data. This replaces the list the event used before. Requires an organization administrator, Event Manager, or Event Curator account with dashboard access to the event.",
        "tags": [
          "Global lists"
        ],
        "parameters": [],
        "requestBody": {
          "required": true,
          "description": "The list and the event to connect.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateGlobalContactListRequestDto"
              },
              "example": {
                "contactListId": "ExampleList00001",
                "questionnaireId": "ExampleEvent0001"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The event now uses the list. The response has no body."
          },
          "400": {
            "description": "The request is invalid. An ID is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot read the list or cannot edit the event in the dashboard.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`UNKNOWN_QUESTIONNAIRE_ID`: the event does not exist. `NO_GLOBAL_LIST`: the global list does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/global-inventory-data/v1/{contactListId}/contacts": {
      "get": {
        "operationId": "GlobalInventoryDataController_getInventoryDataContacts",
        "summary": "List contacts in a global list",
        "description": "Search, sort, and page through the contacts of a global list. Any account in the organization that owns the list can read it.",
        "tags": [
          "Global lists"
        ],
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "description": "Global list ID: the `listId` returned by Create a global list, or the last segment of the list’s dashboard URL.",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            }
          },
          {
            "name": "searchTerm",
            "required": false,
            "in": "query",
            "description": "Filter contacts by email, organization, street, street2, website, city, country, position, first name, last name, or the `searchTerm` custom field.",
            "schema": {
              "type": "string",
              "example": "Morgan"
            }
          },
          {
            "name": "field",
            "required": false,
            "in": "query",
            "description": "Contact field to sort by.",
            "schema": {
              "type": "string",
              "default": "CONTACT_CREATED_AT",
              "enum": [
                "CONTACT_CITY",
                "CONTACT_COUNTRY",
                "CONTACT_CREATED_AT",
                "CONTACT_CREATED_BY_USER_ID",
                "CONTACT_CUSTOM_FIELDS",
                "CONTACT_EMAIL",
                "CONTACT_FAX",
                "CONTACT_FIRST_NAME",
                "CONTACT_GENDER",
                "CONTACT_LAST_NAME",
                "CONTACT_LINKEDIN",
                "CONTACT_MOBILE",
                "CONTACT_NOTE",
                "CONTACT_ORGANIZATION",
                "CONTACT_PHONE",
                "CONTACT_PO_BOX",
                "CONTACT_POSITION",
                "CONTACT_STATE",
                "CONTACT_STREET",
                "CONTACT_STREET2",
                "CONTACT_TITLE",
                "CONTACT_UPDATED",
                "CONTACT_VAT",
                "CONTACT_WEBSITE",
                "CONTACT_ZIP"
              ]
            }
          },
          {
            "name": "sortDirection",
            "required": false,
            "in": "query",
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "default": "DESC",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of contacts to return. Default 50, maximum 1,000.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Number of contacts to skip. Default 0.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "getCount",
            "required": false,
            "in": "query",
            "description": "Set to `true` to include `count`, the number of contacts that match `searchTerm`.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of contacts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInventoryDataContactsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. An ID or query parameter is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot read this list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`NO_GLOBAL_LIST`: the global list does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/global-inventory-data/v1/{contactListId}/contacts/create/batch": {
      "post": {
        "operationId": "GlobalInventoryDataController_batchCreateInventoryDataContacts",
        "summary": "Upload contacts to a global list",
        "description": "Add 1–5,000 contacts in one request. Every event that uses the list sees them. Each upload creates new contacts, even when an email address is already in the list. Save the returned `contactIds` to update contacts later. Requires an organization administrator, Event Manager, or Event Curator account.",
        "tags": [
          "Global lists"
        ],
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "description": "Global list ID: the `listId` returned by Create a global list, or the last segment of the list’s dashboard URL.",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Contacts to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchCreateGlobalContactListItemRequestDto"
              },
              "example": {
                "contacts": [
                  {
                    "firstName": "Alex",
                    "lastName": "Morgan",
                    "email": "alex@example.com",
                    "organization": "Example Industries"
                  },
                  {
                    "firstName": "Sam",
                    "lastName": "Rivera",
                    "email": "sam@example.org",
                    "city": "Hamburg"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "IDs of the created contacts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchCreateGlobalContactListItemResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. `contacts` is empty, has more than 5,000 entries, or contains an invalid field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Use an organization administrator, Event Manager, or Event Curator account to edit global lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`NO_GLOBAL_LIST`: the global list does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/global-inventory-data/v1/{contactListId}/contacts/update/{contactId}": {
      "patch": {
        "operationId": "GlobalInventoryDataController_updateInventoryDataContact",
        "summary": "Update a contact in a global list",
        "description": "Change fields of one contact. Only the fields you send change; send `null` to clear one. `customFields` replaces the stored custom fields as a whole, so include every key you want to keep, including `qrCodeId`. Requires an organization administrator, Event Manager, or Event Curator account.",
        "tags": [
          "Global lists"
        ],
        "parameters": [
          {
            "name": "contactListId",
            "required": true,
            "in": "path",
            "description": "Global list ID: the `listId` returned by Create a global list, or the last segment of the list’s dashboard URL.",
            "schema": {
              "type": "string",
              "example": "ExampleList00001"
            }
          },
          {
            "name": "contactId",
            "required": true,
            "in": "path",
            "description": "Contact ID from the `contactIds` returned when the contact was uploaded.",
            "schema": {
              "type": "string",
              "example": "ExampleContact01"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Fields to change.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInventoryDataContactItemRequestDto"
              },
              "example": {
                "city": "Berlin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated contact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryDataContactResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. An ID or field is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Use an organization administrator, Event Manager, or Event Curator account to edit global lists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`NO_GLOBAL_LIST`: the global list does not exist or the contact is not in it. `CONTACT_NOT_FOUND`: the contact is not in the list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/inventory-data/v1/{eventId}/list": {
      "get": {
        "operationId": "InventoryDataController_getInventoryDataListOfEvent",
        "summary": "Get an event’s list",
        "description": "Return the inventory data list the event uses. If `isGlobal` is `true`, manage its contacts with the global list operations and the `contactListId`. Any account with access to the event can read it.",
        "tags": [
          "Event-specific lists"
        ],
        "parameters": [
          {
            "name": "eventId",
            "required": true,
            "in": "path",
            "description": "VisitReport event ID returned by Find events.",
            "schema": {
              "type": "string",
              "example": "ExampleEvent0001"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The event’s list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInventoryDataListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "A path ID is invalid (`INVALID_ID`).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access this event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`UNKNOWN_QUESTIONNAIRE_ID`: the event does not exist. `NO_INVENTORY_DATA`: the event has no list yet. Create one or activate a global list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/inventory-data/v1/{eventId}/list/create": {
      "post": {
        "operationId": "InventoryDataController_createInventoryDataContactList",
        "summary": "Create an event-specific list",
        "description": "Create an empty list and assign it to the event. If the event already uses a list, the new list replaces it. Requires an organization administrator, Event Manager, or Event Curator account with access to the event.",
        "tags": [
          "Event-specific lists"
        ],
        "parameters": [
          {
            "name": "eventId",
            "required": true,
            "in": "path",
            "description": "VisitReport event ID returned by Find events.",
            "schema": {
              "type": "string",
              "example": "ExampleEvent0001"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Name of the new list.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInventoryDataContactListRequestDto"
              },
              "example": {
                "listName": "Spring Expo visitors"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInventoryDataListResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. The event ID is invalid, or `listName` is missing or longer than 255 characters.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Use an organization administrator, Event Manager, or Event Curator account with access to this event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`UNKNOWN_QUESTIONNAIRE_ID`: the event does not exist.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/inventory-data/v1/{eventId}/contacts": {
      "get": {
        "operationId": "InventoryDataController_getInventoryDataContacts",
        "summary": "List an event’s contacts",
        "description": "Search, sort, and page through the contacts of the list the event uses, whether event-specific or global. Any account with access to the event can read them.",
        "tags": [
          "Event-specific lists"
        ],
        "parameters": [
          {
            "name": "eventId",
            "required": true,
            "in": "path",
            "description": "VisitReport event ID returned by Find events.",
            "schema": {
              "type": "string",
              "example": "ExampleEvent0001"
            }
          },
          {
            "name": "searchTerm",
            "required": false,
            "in": "query",
            "description": "Filter contacts by email, organization, street, street2, website, city, country, position, first name, last name, or the `searchTerm` custom field.",
            "schema": {
              "type": "string",
              "example": "Morgan"
            }
          },
          {
            "name": "field",
            "required": false,
            "in": "query",
            "description": "Contact field to sort by.",
            "schema": {
              "type": "string",
              "default": "CONTACT_CREATED_AT",
              "enum": [
                "CONTACT_CITY",
                "CONTACT_COUNTRY",
                "CONTACT_CREATED_AT",
                "CONTACT_CREATED_BY_USER_ID",
                "CONTACT_CUSTOM_FIELDS",
                "CONTACT_EMAIL",
                "CONTACT_FAX",
                "CONTACT_FIRST_NAME",
                "CONTACT_GENDER",
                "CONTACT_LAST_NAME",
                "CONTACT_LINKEDIN",
                "CONTACT_MOBILE",
                "CONTACT_NOTE",
                "CONTACT_ORGANIZATION",
                "CONTACT_PHONE",
                "CONTACT_PO_BOX",
                "CONTACT_POSITION",
                "CONTACT_STATE",
                "CONTACT_STREET",
                "CONTACT_STREET2",
                "CONTACT_TITLE",
                "CONTACT_UPDATED",
                "CONTACT_VAT",
                "CONTACT_WEBSITE",
                "CONTACT_ZIP"
              ]
            }
          },
          {
            "name": "sortDirection",
            "required": false,
            "in": "query",
            "description": "Sort direction.",
            "schema": {
              "type": "string",
              "default": "DESC",
              "enum": [
                "ASC",
                "DESC"
              ]
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Number of contacts to return. Default 50, maximum 1,000.",
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 1000
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Number of contacts to skip. Default 0.",
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            }
          },
          {
            "name": "getCount",
            "required": false,
            "in": "query",
            "description": "Set to `true` to include `count`, the number of contacts that match `searchTerm`.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of contacts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetInventoryDataContactsResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. The event ID or a query parameter is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "The account cannot access this event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`UNKNOWN_QUESTIONNAIRE_ID`: the event does not exist. `NO_INVENTORY_DATA`: the event has no list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/inventory-data/v1/{eventId}/contacts/create/batch": {
      "post": {
        "operationId": "InventoryDataController_batchCreateInventoryContactItem",
        "summary": "Upload contacts to an event",
        "description": "Add 1–5,000 contacts to the event’s event-specific list in one request. Each upload creates new contacts, even when an email address is already in the list. Save the returned `contactIds` to update contacts later. Requires an organization administrator, Event Manager, or Event Curator account with access to the event.",
        "tags": [
          "Event-specific lists"
        ],
        "parameters": [
          {
            "name": "eventId",
            "required": true,
            "in": "path",
            "description": "VisitReport event ID returned by Find events.",
            "schema": {
              "type": "string",
              "example": "ExampleEvent0001"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Contacts to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchCreateContactListItemRequestDto"
              },
              "example": {
                "contacts": [
                  {
                    "firstName": "Alex",
                    "lastName": "Morgan",
                    "email": "alex@example.com",
                    "organization": "Example Industries"
                  },
                  {
                    "firstName": "Sam",
                    "lastName": "Rivera",
                    "email": "sam@example.org",
                    "city": "Hamburg"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "IDs of the created contacts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchCreateContactListItemResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. `contacts` is empty, has more than 5,000 entries, or contains an invalid field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Use an organization administrator, Event Manager, or Event Curator account with access to this event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`UNKNOWN_QUESTIONNAIRE_ID`: the event does not exist. `NO_INVENTORY_DATA`: the event has no list. Create one first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "409": {
            "description": "`GLOBAL_LIST_NOT_ALLOWED`: the event uses a global list. Upload to that list’s ID instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/inventory-data/v1/{eventId}/contacts/update/{contactId}": {
      "patch": {
        "operationId": "InventoryDataController_updateInventoryDataContact",
        "summary": "Update a contact in an event’s list",
        "description": "Change fields of one contact in the event’s event-specific list. Only the fields you send change; send `null` to clear one. `customFields` replaces the stored custom fields as a whole, so include every key you want to keep, including `qrCodeId`. Requires an organization administrator, Event Manager, or Event Curator account with access to the event.",
        "tags": [
          "Event-specific lists"
        ],
        "parameters": [
          {
            "name": "eventId",
            "required": true,
            "in": "path",
            "description": "VisitReport event ID returned by Find events.",
            "schema": {
              "type": "string",
              "example": "ExampleEvent0001"
            }
          },
          {
            "name": "contactId",
            "required": true,
            "in": "path",
            "description": "Contact ID from the `contactIds` returned when the contact was uploaded.",
            "schema": {
              "type": "string",
              "example": "ExampleContact01"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Fields to change.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInventoryDataContactItemRequestDto"
              },
              "example": {
                "city": "Berlin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated contact.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InventoryDataContactResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid. An ID or field is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Use an organization administrator, Event Manager, or Event Curator account with access to this event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "`UNKNOWN_QUESTIONNAIRE_ID`: the event does not exist. `NO_INVENTORY_DATA`: the event has no list. `CONTACT_NOT_FOUND`: the contact is not in the event’s list.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "409": {
            "description": "`GLOBAL_LIST_NOT_ALLOWED`: the event uses a global list. Update the contact through that list’s ID instead.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Use a [personal API token](/authentication/#personal-api-token)."
      }
    },
    "schemas": {
      "CreateGlobalContactListRequestDto": {
        "type": "object",
        "properties": {
          "listName": {
            "type": "string",
            "maxLength": 255,
            "description": "Name of the list.",
            "example": "Spring Expo visitors"
          }
        },
        "required": [
          "listName"
        ],
        "title": "Create Global List Request"
      },
      "CreateInventoryDataContactListRequestDto": {
        "type": "object",
        "properties": {
          "listName": {
            "type": "string",
            "maxLength": 255,
            "description": "Name of the list.",
            "example": "Spring Expo visitors"
          }
        },
        "required": [
          "listName"
        ],
        "title": "Create Event-specific List Request"
      },
      "ActivateGlobalContactListRequestDto": {
        "type": "object",
        "properties": {
          "contactListId": {
            "type": "string",
            "description": "Global list ID (`listId`).",
            "example": "ExampleList00001"
          },
          "questionnaireId": {
            "type": "string",
            "description": "VisitReport event ID.",
            "example": "ExampleEvent0001"
          }
        },
        "required": [
          "contactListId",
          "questionnaireId"
        ],
        "title": "Activate Global List Request"
      },
      "UsedInQuestionnaireDataDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Event ID.",
            "example": "ExampleEvent0001"
          },
          "titles": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Event titles keyed by language code.",
            "example": {
              "en": "Spring Expo 2027",
              "de": "Frühjahrsmesse 2027"
            }
          },
          "defaultLanguage": {
            "type": "string",
            "description": "Language code of the event’s default language.",
            "example": "en"
          }
        },
        "required": [
          "id",
          "titles",
          "defaultLanguage"
        ],
        "title": "Event Using the List"
      },
      "GetGlobalContactListResponseDto": {
        "type": "object",
        "properties": {
          "listId": {
            "type": "string",
            "description": "Global list ID. Use it as `contactListId`.",
            "example": "ExampleList00001"
          },
          "listName": {
            "type": "string",
            "description": "Name of the list.",
            "example": "Spring Expo visitors"
          },
          "usedIn": {
            "type": "array",
            "description": "Events that use the list.",
            "items": {
              "$ref": "#/components/schemas/UsedInQuestionnaireDataDto"
            }
          },
          "contactCount": {
            "type": "integer",
            "description": "Number of contacts in the list.",
            "example": 0
          },
          "lastUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the list or its contacts last changed.",
            "example": "2027-03-01T09:00:00.000Z"
          },
          "creatorId": {
            "type": "string",
            "description": "ID of the user who created the list.",
            "example": "ExampleUser00001"
          }
        },
        "required": [
          "listId",
          "listName",
          "usedIn",
          "contactCount",
          "lastUpdatedAt",
          "creatorId"
        ],
        "title": "Global List"
      },
      "GetInventoryDataListResponseDto": {
        "type": "object",
        "properties": {
          "contactListId": {
            "type": "string",
            "description": "List ID. For a global list, use it as `contactListId` in the global list operations.",
            "example": "ExampleList00001"
          },
          "organizationId": {
            "type": "string",
            "description": "ID of the organization that owns the list.",
            "example": "ExampleOrga00001"
          },
          "name": {
            "type": "string",
            "description": "Name of the list.",
            "example": "Spring Expo visitors"
          },
          "isGlobal": {
            "type": "boolean",
            "description": "`true` for a global list shared across events, `false` for an event-specific list.",
            "example": false
          },
          "isMain": {
            "type": "boolean",
            "description": "Whether the list is a main contact list.",
            "example": false
          },
          "isShared": {
            "type": "boolean",
            "description": "Whether the list is a shared contact list.",
            "example": false
          },
          "isVisible": {
            "type": "boolean",
            "description": "Whether the list is visible.",
            "example": false
          },
          "client": {
            "type": "string",
            "description": "Origin label of the list. Lists created by these operations return `inventory-data`.",
            "example": "inventory-data"
          },
          "settings": {
            "type": "object",
            "description": "List settings.",
            "example": {}
          }
        },
        "required": [
          "contactListId",
          "name",
          "isMain",
          "isShared",
          "isVisible",
          "isGlobal"
        ],
        "title": "Inventory Data List"
      },
      "CreateInventoryDataContactItemRequestDto": {
        "type": "object",
        "description": "Contact fields. All fields are optional.",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "First name.",
            "example": "Alex"
          },
          "lastName": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Last name.",
            "example": "Morgan"
          },
          "email": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Email address.",
            "example": "alex@example.com"
          },
          "organization": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Company the contact works for.",
            "example": "Example Industries"
          },
          "position": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Job position.",
            "example": "Head of Purchasing"
          },
          "title": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Professional or academic title.",
            "example": "Dr."
          },
          "phone": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Phone number.",
            "example": "+49 30 1234567"
          },
          "mobile": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Mobile number."
          },
          "fax": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Fax number."
          },
          "street": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Street address.",
            "example": "Example Street 1"
          },
          "street2": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Second address line."
          },
          "poBox": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "PO box."
          },
          "zip": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Postal code.",
            "example": "10115"
          },
          "city": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "City.",
            "example": "Berlin"
          },
          "state": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "State or province."
          },
          "country": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Country.",
            "example": "Germany"
          },
          "website": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "Website URL.",
            "example": "https://example.com"
          },
          "linkedin": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "LinkedIn profile URL."
          },
          "vat": {
            "type": "string",
            "nullable": true,
            "maxLength": 255,
            "description": "VAT number of the contact’s company."
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "Free-text note about the contact."
          },
          "gender": {
            "type": "integer",
            "nullable": true,
            "enum": [
              -1,
              0,
              1
            ],
            "description": "Gender: `-1` unknown, `0` male, `1` female. Defaults to `-1` on upload."
          },
          "customFields": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true,
            "description": "Additional fields as key-value pairs. If you omit `qrCodeId` on upload, a generated value is added.",
            "example": {
              "crmId": "CRM-1001",
              "segment": "Partner"
            }
          }
        },
        "title": "Contact Fields"
      },
      "BatchCreateGlobalContactListItemRequestDto": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5000,
            "description": "Contacts to create, 1–5,000 per request.",
            "items": {
              "$ref": "#/components/schemas/CreateInventoryDataContactItemRequestDto"
            }
          }
        },
        "required": [
          "contacts"
        ],
        "title": "Upload Contacts to Global List Request"
      },
      "BatchCreateGlobalContactListItemResponseDto": {
        "type": "object",
        "properties": {
          "contactIds": {
            "type": "array",
            "description": "IDs of the created contacts.",
            "items": {
              "type": "string"
            },
            "example": [
              "ExampleContact01",
              "ExampleContact02"
            ]
          }
        },
        "required": [
          "contactIds"
        ],
        "title": "Uploaded Contact IDs"
      },
      "BatchCreateContactListItemRequestDto": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5000,
            "description": "Contacts to create, 1–5,000 per request.",
            "items": {
              "$ref": "#/components/schemas/CreateInventoryDataContactItemRequestDto"
            }
          }
        },
        "required": [
          "contacts"
        ],
        "title": "Upload Contacts to Event Request"
      },
      "BatchCreateContactListItemResponseDto": {
        "type": "object",
        "properties": {
          "contactIds": {
            "type": "array",
            "description": "IDs of the created contacts.",
            "items": {
              "type": "string"
            },
            "example": [
              "ExampleContact01",
              "ExampleContact02"
            ]
          }
        },
        "required": [
          "contactIds"
        ],
        "title": "Uploaded Contact IDs"
      },
      "InventoryDataContactResponseDto": {
        "type": "object",
        "description": "An inventory data contact. Empty fields are omitted.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Contact ID.",
            "example": "ExampleContact01"
          },
          "firstName": {
            "type": "string",
            "description": "First name.",
            "example": "Alex"
          },
          "lastName": {
            "type": "string",
            "description": "Last name.",
            "example": "Morgan"
          },
          "email": {
            "type": "string",
            "description": "Email address.",
            "example": "alex@example.com"
          },
          "organization": {
            "type": "string",
            "description": "Company the contact works for.",
            "example": "Example Industries"
          },
          "position": {
            "type": "string",
            "description": "Job position.",
            "example": "Head of Purchasing"
          },
          "title": {
            "type": "string",
            "description": "Professional or academic title.",
            "example": "Dr."
          },
          "phone": {
            "type": "string",
            "description": "Phone number.",
            "example": "+49 30 1234567"
          },
          "mobile": {
            "type": "string",
            "description": "Mobile number."
          },
          "fax": {
            "type": "string",
            "description": "Fax number."
          },
          "street": {
            "type": "string",
            "description": "Street address.",
            "example": "Example Street 1"
          },
          "street2": {
            "type": "string",
            "description": "Second address line."
          },
          "poBox": {
            "type": "string",
            "description": "PO box."
          },
          "zip": {
            "type": "string",
            "description": "Postal code.",
            "example": "10115"
          },
          "city": {
            "type": "string",
            "description": "City.",
            "example": "Berlin"
          },
          "state": {
            "type": "string",
            "description": "State or province."
          },
          "country": {
            "type": "string",
            "description": "Country.",
            "example": "Germany"
          },
          "website": {
            "type": "string",
            "description": "Website URL.",
            "example": "https://example.com"
          },
          "linkedin": {
            "type": "string",
            "description": "LinkedIn profile URL."
          },
          "vat": {
            "type": "string",
            "description": "VAT number of the contact’s company."
          },
          "note": {
            "type": "string",
            "description": "Free-text note about the contact."
          },
          "gender": {
            "type": "integer",
            "enum": [
              -1,
              0,
              1
            ],
            "description": "Gender: `-1` unknown, `0` male, `1` female.",
            "example": -1
          },
          "customFields": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Additional fields as key-value pairs, including the contact’s `qrCodeId`.",
            "example": {
              "crmId": "CRM-1001",
              "qrCodeId": "11111111-1111-4111-8111-111111111111"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the contact was created.",
            "example": "2027-03-01T09:00:00.000Z"
          },
          "createdByUserId": {
            "type": "string",
            "description": "ID of the user who created the contact.",
            "example": "ExampleUser00001"
          },
          "updated": {
            "type": "string",
            "format": "date-time",
            "description": "When the contact was last updated.",
            "example": "2027-03-02T14:30:00.000Z"
          }
        },
        "required": [
          "id",
          "createdAt",
          "gender"
        ],
        "title": "Inventory Data Contact"
      },
      "GetInventoryDataContactsResponseDto": {
        "type": "object",
        "properties": {
          "contacts": {
            "type": "array",
            "description": "Contacts on this page.",
            "items": {
              "$ref": "#/components/schemas/InventoryDataContactResponseDto"
            }
          },
          "count": {
            "type": "integer",
            "description": "Number of contacts that match `searchTerm`. Present only when `getCount` is `true`.",
            "example": 2
          }
        },
        "required": [
          "contacts"
        ],
        "title": "Contact Page"
      },
      "ErrorArrayDto": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "description": "Holds one or more errors that occurred.",
            "items": {
              "$ref": "#/components/schemas/ErrorDto"
            }
          }
        },
        "required": [
          "errors"
        ],
        "title": "Error Array"
      },
      "ErrorDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short, technical ID of the occurred error"
          },
          "message": {
            "type": "string",
            "description": "A longer, more detailed error cause explanation"
          }
        },
        "required": [
          "id",
          "message"
        ],
        "title": "Error"
      }
    }
  }
}
