{
  "openapi": "3.0.0",
  "info": {
    "title": "VisitReport Meetings API",
    "version": "1",
    "description": "Read event booking rules, check resources, and manage appointments."
  },
  "servers": [
    {
      "url": "https://backend.snapaddy.com/questionnaire"
    }
  ],
  "paths": {
    "/v1/{questionnaireId}/meeting-supply": {
      "get": {
        "operationId": "SupplyController_getMeetingSupplyByQuestionnaireId",
        "summary": "Get booking rules for an event",
        "description": "Returns meeting supply of the event provided by the questionnaireId.",
        "parameters": [
          {
            "name": "questionnaireId",
            "required": true,
            "in": "path",
            "description": "VisitReport event ID returned by Find events.",
            "schema": {
              "type": "string",
              "example": "ExampleEvent0001"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Meeting supply of the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingSupplyResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the requested `questionnaireId` does not exit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/{meetingSupplyId}/meeting-resources": {
      "get": {
        "operationId": "ResourceController_getMeetingResources",
        "summary": "List meeting resources",
        "description": "Page through the resources associated with an event’s booking configuration.",
        "parameters": [
          {
            "name": "meetingSupplyId",
            "required": true,
            "in": "path",
            "description": "Booking configuration ID returned by Get booking rules for an event.",
            "schema": {
              "type": "string",
              "example": "11111111-1111-4111-8111-111111111111"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be fetched at once.\n    - Default: 50.\n    - Maximum:  1000. ",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be skipped, defaults to 0.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of resources of the event.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MeetingResourceResponseDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the meeting supply whose resources are requested does not exit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/meeting-resource": {
      "post": {
        "operationId": "ResourceController_createMeetingResource",
        "summary": "Create a meeting resource",
        "description": "Creates a meeting resource.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "The created meeting resource.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingResourceResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "'In case of invalid data.",
            "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": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the requested `supply id` does not exit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "409": {
            "description": "In case the meeting resource cannot be created due to a conflict, e.g. because the resource name is already used in this event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Contents of the meeting resource to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMeetingResourceDto"
              },
              "example": {
                "meetingSupplyId": "11111111-1111-4111-8111-111111111111",
                "resourceName": "Meeting room A"
              }
            }
          }
        }
      }
    },
    "/v1/{meetingSupplyId}/meeting-resource-availability": {
      "post": {
        "operationId": "ResourceController_getMeetingResourceAvailability",
        "summary": "Check resource availability",
        "description": "Returns the availability of all meeting resources of the event specified by the meetingSupplyId.",
        "parameters": [
          {
            "name": "meetingSupplyId",
            "required": true,
            "in": "path",
            "description": "Booking configuration ID returned by Get booking rules for an event.",
            "schema": {
              "type": "string",
              "example": "11111111-1111-4111-8111-111111111111"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Array of resource availability states.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PostMeetingResourceAvailabilityResponseDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "In case the meeting supply whose resources are requested does not exit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Timeslot for which the availability is checked.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PostMeetingResourceAvailabilityRequestDto"
              },
              "example": {
                "start": "2027-04-22T09:00:00Z",
                "end": "2027-04-22T09:30:00Z"
              }
            }
          }
        }
      }
    },
    "/v1/meeting-demand": {
      "post": {
        "operationId": "DemandController_createMeetingDemand",
        "summary": "Book a meeting",
        "description": "Creates a meeting demand regarding a meeting supply. This is where the actual booking of a meeting happens. This includes generating appointments for each host and also blocking the corresponding time-resource-tuple.",
        "parameters": [],
        "responses": {
          "201": {
            "description": "The created meeting demand and possibly existing warnings.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingDemandResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "In case of invalid or unprocessable data, e.g. if the meeting date does not match the availability of the meeting supply.",
            "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": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "409": {
            "description": "In case the meeting demand cannot be created due to conflicts, e.g. a resource is already booked at this time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Contents of the meeting demand to create.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMeetingDemandDto"
              },
              "example": {
                "meetingSupplyId": "11111111-1111-4111-8111-111111111111",
                "meetingName": "Partner introduction",
                "meetingDate": {
                  "dateStart": "2027-04-22T09:00:00Z",
                  "dateEnd": "2027-04-22T09:30:00Z"
                },
                "hostIds": [
                  "ExampleUser00001"
                ],
                "numberAttendees": 2,
                "sendMail": false
              }
            }
          }
        }
      }
    },
    "/v1/{meetingSupplyId}/meeting-demands": {
      "get": {
        "operationId": "DemandController_getMeetingDemandsOfEvent",
        "summary": "List meetings",
        "description": "List bookings for an event’s booking configuration. Use from and to to narrow the date range and limit and offset to page.",
        "parameters": [
          {
            "name": "meetingSupplyId",
            "required": true,
            "in": "path",
            "description": "Booking configuration ID returned by Get booking rules for an event.",
            "schema": {
              "type": "string",
              "example": "11111111-1111-4111-8111-111111111111"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be fetched at once.\n    - Default: 50.\n    - Maximum:  1000. ",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be skipped, defaults to 0.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number"
            }
          },
          {
            "name": "from",
            "required": false,
            "in": "query",
            "description": "Minimum date the requested demands should start. ISO-8601.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "required": false,
            "in": "query",
            "description": "Sort direction of the demands according to their start date. If set to DESC the newest demands of the returned ones will be first. Allowed values are ASC,DESC.",
            "schema": {
              "default": "DESC",
              "type": "string"
            }
          },
          {
            "name": "to",
            "required": false,
            "in": "query",
            "description": "Maximum date the requested demands should end. ISO-8601.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of the meeting demands of the meeting supply.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MeetingDemandResponseDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The requested record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/{meetingSupplyId}/meeting-demands/user/{userId}": {
      "get": {
        "operationId": "DemandController_getMeetingDemandsForUser",
        "summary": "List meetings for a host",
        "description": "List bookings for a single host at the event. Use from and to to narrow the date range and limit and offset to page.",
        "parameters": [
          {
            "name": "meetingSupplyId",
            "required": true,
            "in": "path",
            "description": "Booking configuration ID returned by Get booking rules for an event.",
            "schema": {
              "type": "string",
              "example": "11111111-1111-4111-8111-111111111111"
            }
          },
          {
            "name": "userId",
            "required": true,
            "in": "path",
            "description": "Unique identifier of the user to query demands for.",
            "schema": {
              "type": "string",
              "example": "ExampleUser00001"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be fetched at once.\n    - Default: 50.\n    - Maximum:  1000. ",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be skipped, defaults to 0.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number"
            }
          },
          {
            "name": "from",
            "required": false,
            "in": "query",
            "description": "Minimum date the requested demands should start. ISO-8601.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "required": false,
            "in": "query",
            "description": "Sort direction of the demands according to their start date. If set to DESC the newest demands of the returned ones will be first. Allowed values are ASC,DESC.",
            "schema": {
              "default": "DESC",
              "type": "string"
            }
          },
          {
            "name": "to",
            "required": false,
            "in": "query",
            "description": "Maximum date the requested demands should end. ISO-8601.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Array of the meeting demands of the event.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MeetingDemandResponseDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The requested record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/meeting-demands/resources": {
      "get": {
        "operationId": "DemandController_getMeetingDemandsByResources",
        "summary": "List meetings for rooms or equipment",
        "description": "List bookings for the supplied resources. Use resource IDs from the same booking configuration.",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be fetched at once.\n    - Default: 50.\n    - Maximum:  1000. ",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 50,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": false,
            "in": "query",
            "description": "Amount of items that should be skipped, defaults to 0.",
            "schema": {
              "minimum": 0,
              "default": 0,
              "type": "number"
            }
          },
          {
            "name": "from",
            "required": false,
            "in": "query",
            "description": "Minimum date the requested demands should start. ISO-8601.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "required": false,
            "in": "query",
            "description": "Sort direction of the demands according to their start date. If set to DESC the newest demands of the returned ones will be first. Allowed values are ASC,DESC.",
            "schema": {
              "default": "DESC",
              "type": "string"
            }
          },
          {
            "name": "to",
            "required": false,
            "in": "query",
            "description": "Maximum date the requested demands should end. ISO-8601.",
            "schema": {
              "format": "date-time",
              "type": "string"
            }
          },
          {
            "name": "resourceIds",
            "required": true,
            "in": "query",
            "description": "Comma-separated resource IDs from the same event booking configuration.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              },
              "example": [
                "33333333-3333-4333-8333-333333333333"
              ]
            },
            "explode": false
          }
        ],
        "responses": {
          "200": {
            "description": "Array of the meeting demands of the event.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MeetingDemandResponseDto"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "The requested record was not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/meeting-demand/{appointmentId}": {
      "get": {
        "operationId": "DemandController_getMeetingDemandById",
        "summary": "Get a meeting",
        "description": "Returns meeting demand specified by its id.",
        "parameters": [
          {
            "name": "appointmentId",
            "required": true,
            "in": "path",
            "description": "Booking ID returned as appointmentId when creating or listing meetings.",
            "schema": {
              "type": "string",
              "example": "22222222-2222-4222-8222-222222222222"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The details of the meeting demand.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingDemandResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "No appointment was found for this appointmentId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      },
      "patch": {
        "operationId": "DemandController_updateMeetingDemandById",
        "summary": "Update a meeting",
        "description": "Updates a meeting demand and informs all involved parties if necessary.",
        "parameters": [
          {
            "name": "appointmentId",
            "required": true,
            "in": "path",
            "description": "Booking ID returned as appointmentId when creating or listing meetings.",
            "schema": {
              "type": "string",
              "example": "22222222-2222-4222-8222-222222222222"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The details of the updated meeting demand.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MeetingDemandResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "In case of invalid or unprocessable data, e.g. if the meeting date does not match the availability of the meeting supply.",
            "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": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "No appointment was found for this appointmentId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "409": {
            "description": "In case the meeting demand cannot be updated due to conflicts, e.g. a resource is already booked at the new time.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Contents of the meeting demand to be updated.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMeetingDemandDto"
              },
              "example": {
                "meetingName": "Partner introduction and demo"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "DemandController_deleteMeetingDemandById",
        "summary": "Cancel a meeting",
        "description": "Deletes a meeting demand and informs all involved parties if necessary.",
        "parameters": [
          {
            "name": "appointmentId",
            "required": true,
            "in": "path",
            "description": "Booking ID returned as appointmentId when creating or listing meetings.",
            "schema": {
              "type": "string",
              "example": "22222222-2222-4222-8222-222222222222"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Meeting demand successfully deleted."
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "Your account lacks access to this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "No appointment was found for this appointmentId.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "422": {
            "description": "The request cannot be processed. Check the input and whether the required feature is enabled for the event.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "MeetingSupplyResponseDto": {
        "type": "object",
        "properties": {
          "meetingSupplyId": {
            "type": "string",
            "description": "ID of this event’s booking configuration. Use it to find available resources or book a meeting."
          },
          "questionnaireId": {
            "type": "string",
            "description": "ID of the questionnaire/event which will be using this meeting supply"
          },
          "timezone": {
            "type": "string",
            "description": "Timezone of the place the event will take place.",
            "deprecated": true
          },
          "alwaysBookable": {
            "type": "boolean",
            "description": "Whether users can submit booking requests at any time. Meeting times are controlled separately by availability.",
            "default": false
          },
          "requireResources": {
            "type": "boolean",
            "description": "Whether a booking must include a resource from this event.",
            "default": false
          },
          "alwaysAvailable": {
            "type": "boolean",
            "description": "Boolean indicating if meetings can be booked at any time and day.",
            "default": false
          },
          "hostAccess": {
            "type": "boolean",
            "description": "Boolean indicating if all users who can see the event can book meetings for themselves.",
            "default": false
          },
          "coordinatorAccess": {
            "type": "boolean",
            "description": "Boolean indicating if all users who can see the event can book meetings for other users.",
            "default": false
          },
          "bookableStart": {
            "type": "string",
            "description": "Day from which on the meeting supply will be bookable. Including the given date.",
            "format": "yyyy-mm-dd",
            "nullable": true
          },
          "bookableEnd": {
            "type": "string",
            "description": "Day until which the meeting supply will be bookable. Including the given date.",
            "format": "yyyy-mm-dd",
            "nullable": true
          },
          "availableStartDay": {
            "type": "string",
            "description": "Day from which on the supply will be available at the trade fair. Including the given date.",
            "format": "yyyy-mm-dd",
            "nullable": true
          },
          "availableEndDay": {
            "type": "string",
            "description": "Day until which the supply will be available at the trade fair. Including the given date.",
            "format": "yyyy-mm-dd",
            "nullable": true
          },
          "availableStartTime": {
            "type": "string",
            "description": "Starting time of the interval. Formatted as `hh:mm`.",
            "format": "time",
            "nullable": true
          },
          "availableEndTime": {
            "type": "string",
            "description": "Ending time of the interval (not included). Formatted as `hh:mm`",
            "format": "time",
            "nullable": true
          },
          "hostIds": {
            "description": "Unique identifiers of snapADDY-user who can book a meeting for the event for themselves.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coordinatorIds": {
            "description": "Unique identifiers of available snapADDY-user that can be chosen to coordinate meetings (= book for others) for the events.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hostGroupIds": {
            "description": "Unique identifiers of user groups whose users should be hosts for this event.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "coordinatorGroupIds": {
            "description": "Unique identifiers of user groups whose users should be coordinators for this event.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "meetingSupplyId",
          "questionnaireId",
          "timezone",
          "alwaysBookable",
          "requireResources",
          "alwaysAvailable",
          "hostAccess",
          "coordinatorAccess",
          "availableStartTime",
          "availableEndTime",
          "hostIds",
          "coordinatorIds",
          "hostGroupIds",
          "coordinatorGroupIds"
        ],
        "title": "Event booking rules"
      },
      "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"
      },
      "MeetingResourceResponseDto": {
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "description": "Unique identifier of the meeting resource."
          },
          "createdBy": {
            "type": "string",
            "description": "Unique identifier snapaddy user who created this resource."
          },
          "resourceName": {
            "type": "string",
            "description": "Name of the meeting resource. This must be unique for this event."
          },
          "meetingSupplyId": {
            "type": "string",
            "description": "ID of the meeting supply which offers the meeting resource."
          },
          "personMax": {
            "type": "number",
            "description": "Number of persons that are allowed in this resource at most."
          },
          "internalInformation": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and some information on the resource in the according value field. This is internal and will only be visible for hosts and organizers of the meeting. Can contain the description in different languages."
          },
          "publicInformation": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and some information on the resource in the according value field. This is public and will be visible for everybody attending the meeting. Can contain the description in different languages."
          }
        },
        "required": [
          "resourceId",
          "createdBy",
          "resourceName",
          "meetingSupplyId"
        ],
        "title": "Bookable resource"
      },
      "CreateMeetingResourceDto": {
        "type": "object",
        "properties": {
          "resourceName": {
            "type": "string",
            "description": "Name of the meeting resource. This must be unique for this event."
          },
          "meetingSupplyId": {
            "type": "string",
            "description": "ID of the meeting supply which offers the meeting resource."
          },
          "personMax": {
            "type": "number",
            "description": "Number of persons that are allowed in this resource at most."
          },
          "internalInformation": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and some information on the resource in the according value field. This is internal and will only be visible for hosts and organizers of the meeting. Can contain the description in different languages."
          },
          "publicInformation": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and some information on the resource in the according value field. This is public and will be visible for everybody attending the meeting. Can contain the description in different languages."
          }
        },
        "required": [
          "resourceName",
          "meetingSupplyId"
        ],
        "title": "Create Meeting Resource"
      },
      "PostMeetingResourceAvailabilityResponseDto": {
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "description": "ID of the resource.",
            "nullable": false
          },
          "availability": {
            "description": "Availability of the resource.",
            "nullable": false,
            "allOf": [
              {
                "$ref": "#/components/schemas/MeetingResourceAvailabilityState"
              }
            ]
          }
        },
        "required": [
          "resourceId",
          "availability"
        ],
        "title": "Post Meeting Resource Availability Response"
      },
      "MeetingResourceAvailabilityState": {
        "type": "string",
        "enum": [
          "AVAILABLE",
          "UNAVAILABLE"
        ],
        "description": "Availability of the resource."
      },
      "PostMeetingResourceAvailabilityRequestDto": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "Timestamp when the meeting should start. ISO-8601.",
            "nullable": false
          },
          "end": {
            "type": "string",
            "description": "Timestamp when the meeting should end. ISO-8601.",
            "nullable": false
          }
        },
        "required": [
          "start",
          "end"
        ],
        "title": "Post Meeting Resource Availability Request"
      },
      "MeetingDemandResponseDto": {
        "type": "object",
        "properties": {
          "resourceIds": {
            "description": "List of unique identifiers of the meeting resources that should be booked. Every meeting demand can only have one resource which is a location.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "internalHints": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and the notification in the suiting language as values. Internal hints that are not to be displayed to the attendees."
          },
          "additionalNotes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and the notification in the suiting language as values. Notes from the requesting attendees."
          },
          "appointmentId": {
            "type": "string",
            "description": "Booking ID. Use it to retrieve, change, or cancel this appointment."
          },
          "meetingSupplyId": {
            "type": "string",
            "description": "Unique identifier of the meeting supply that should be booked."
          },
          "meetingDate": {
            "description": "Date and time the meeting should take place.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MeetingDateDto"
              }
            ]
          },
          "timezone": {
            "type": "string",
            "description": "Name of the timezone the meeting is taking place in. Usually the timezone set for the event to which the meeting belongs.",
            "deprecated": true
          },
          "meetingName": {
            "type": "string",
            "description": "Name of the meeting. In case of `isReadOnly`, this detail will be always replaced by '(Blocked)'"
          },
          "hostIds": {
            "description": "List of unique identifiers of the hosts that are demanded for the meeting. A host must be a snapADDY user.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "numberAttendees": {
            "type": "number",
            "description": "Number of attendees of the meeting."
          },
          "warnings": {
            "description": "Array of Warnings in case of a conflict, that is not hard restricted, but the user should be informed about.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MeetingConflictArrayDto"
              }
            ]
          },
          "isReadOnly": {
            "type": "boolean",
            "description": "Determines if the requesting user is allowed to modify the given demand."
          },
          "contacts": {
            "type": "array",
            "description": "Contacts that are attached to this meeting.",
            "items": {
              "$ref": "#/components/schemas/MeetingParticipantResponseDto"
            }
          },
          "externalId": {
            "type": "string",
            "description": "Custom ID that was set when the meeting demand was created."
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "description": "Date and time the meeting demand was created.",
            "nullable": false
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Date and time the meeting demand was last updated.",
            "nullable": false
          }
        },
        "required": [
          "appointmentId",
          "meetingSupplyId",
          "meetingDate",
          "timezone",
          "hostIds",
          "numberAttendees",
          "isReadOnly",
          "createdAt",
          "updatedAt"
        ],
        "title": "Meeting booking"
      },
      "MeetingDateDto": {
        "type": "object",
        "properties": {
          "dateStart": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the meeting should start. ISO-8601."
          },
          "dateEnd": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the meeting should end. ISO-8601."
          }
        },
        "required": [
          "dateStart",
          "dateEnd"
        ],
        "title": "Meeting Date"
      },
      "MeetingConflictArrayDto": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "description": "Array containing meeting conflicts.",
            "items": {
              "$ref": "#/components/schemas/MeetingConflictResponseDto"
            }
          }
        },
        "required": [
          "errors"
        ],
        "title": "Meeting Conflict Array"
      },
      "MeetingConflictResponseDto": {
        "type": "object",
        "properties": {
          "affectedId": {
            "type": "string",
            "description": "Encoded unique identifier or uuid of the appointment whose conflicts should be resolved."
          },
          "conflicts": {
            "type": "array",
            "description": "Array of conflict codes and their resolving actions related to the object, specified through the \"affectedId\".",
            "items": {
              "$ref": "#/components/schemas/MeetingConflictDto"
            }
          }
        },
        "required": [
          "affectedId",
          "conflicts"
        ],
        "title": "Meeting Conflict Response"
      },
      "MeetingConflictDto": {
        "type": "object",
        "properties": {
          "actionToResolve": {
            "type": "string",
            "description": "Action that can be used to resolve conflict.",
            "enum": [
              "CREATE_RESOURCE",
              "DELETE",
              "UPDATE",
              "UPDATE_OR_DELETE"
            ]
          },
          "conflictCode": {
            "type": "string",
            "description": "Shows conflict code.",
            "enum": [
              "SUPPLY_NO_RESOURCES_EXIST",
              "SUPPLY_UNAVAILABLE",
              "APPOINTMENT_OF_SUPPLY_EXISTS",
              "RESOURCE_OF_SUPPLY_EXISTS",
              "RESOURCE_ALREADY_BOOKED",
              "HOST_ALREADY_BOOKED"
            ]
          }
        },
        "required": [
          "actionToResolve",
          "conflictCode"
        ],
        "title": "Meeting Conflict"
      },
      "MeetingParticipantResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique ID"
          },
          "city": {
            "type": "string",
            "description": "Name of the city in which the contact lives in"
          },
          "companySize": {
            "type": "string",
            "description": "The company size of the contact"
          },
          "country": {
            "type": "string",
            "description": "Country where the contact lives in"
          },
          "createdByUserId": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Email address"
          },
          "fax": {
            "type": "string",
            "description": "Phone number (Fax)"
          },
          "firstName": {
            "type": "string",
            "description": "The contact's first name"
          },
          "gender": {
            "type": "number",
            "description": "Maybe the gender. Possible values: -1=Unknown, 0=Male, 1=Female",
            "enum": [
              -1,
              0,
              1
            ],
            "default": -1
          },
          "lastName": {
            "type": "string",
            "description": "The contact's last name"
          },
          "mobile": {
            "type": "string",
            "description": "Phone number (mobile)"
          },
          "note": {
            "type": "string",
            "description": "Notes about the contact"
          },
          "organization": {
            "type": "string",
            "description": "Name of the company for which the contact works for"
          },
          "phone": {
            "type": "string",
            "description": "Phone number"
          },
          "position": {
            "type": "string",
            "description": "Job position"
          },
          "startDate": {
            "format": "date-time",
            "type": "string",
            "description": "Timestamp where communication with the contact started, eg. creation date."
          },
          "state": {
            "type": "string",
            "description": "State in which the contact lives in"
          },
          "street": {
            "type": "string",
            "description": "Street"
          },
          "street2": {
            "type": "string",
            "description": "Street 2"
          },
          "title": {
            "type": "string",
            "description": "Job title"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "description": "Timestamp of last update of contact"
          },
          "website": {
            "type": "string",
            "description": "Website URL"
          },
          "zip": {
            "type": "string",
            "description": "ZIP-Code of the city in which the contact lives in"
          }
        },
        "required": [
          "id",
          "createdByUserId",
          "startDate"
        ],
        "title": "Meeting Participant Response"
      },
      "CreateMeetingDemandDto": {
        "type": "object",
        "properties": {
          "resourceIds": {
            "description": "List of unique identifiers of the meeting resources that should be booked. Every meeting demand can only have one resource which is a location.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "internalHints": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and the notification in the suiting language as values. Internal hints that are not to be displayed to the attendees."
          },
          "additionalNotes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and the notification in the suiting language as values. Notes from the requesting attendees."
          },
          "meetingSupplyId": {
            "type": "string",
            "description": "Unique identifier of the meeting supply that should be booked."
          },
          "meetingDate": {
            "description": "Date and time the meeting should take place.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MeetingDateRequestDto"
              }
            ]
          },
          "meetingName": {
            "type": "string",
            "description": "Name of the meeting."
          },
          "hostIds": {
            "description": "List of unique identifiers of the hosts that are demanded for the meeting. A host must be a snapADDY user.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "numberAttendees": {
            "type": "number",
            "description": "Number of attendees of the meeting."
          },
          "contacts": {
            "type": "array",
            "description": "Contacts that should be attached to this meeting. If one of those contacts does not exist it will be created instead. Contacts that were previously attached to this meeting but are not contained in this request will be detached.",
            "items": {
              "$ref": "#/components/schemas/MeetingParticipantRequestDto"
            }
          },
          "sendMail": {
            "type": "boolean",
            "description": "Flag to determine if confirmation mail should be sent for this meeting.",
            "default": true
          },
          "externalId": {
            "type": "string",
            "description": "An external ID that can be associated with the demand. This ID must be unique for all meeting demands within the meeting supply to which the demand belongs. Can not be changed later."
          }
        },
        "required": [
          "meetingSupplyId",
          "meetingDate",
          "meetingName",
          "hostIds",
          "numberAttendees"
        ],
        "title": "Create Meeting Demand"
      },
      "MeetingDateRequestDto": {
        "type": "object",
        "properties": {
          "dateStart": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the meeting should start. ISO-8601."
          },
          "dateEnd": {
            "format": "date-time",
            "type": "string",
            "description": "Date when the meeting should end. ISO-8601."
          }
        },
        "required": [
          "dateStart",
          "dateEnd"
        ],
        "title": "Meeting Date Request"
      },
      "MeetingParticipantRequestDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the meeting participant",
            "nullable": false
          },
          "city": {
            "type": "string",
            "description": "Name of the city in which the contact lives in",
            "nullable": true
          },
          "companySize": {
            "type": "string",
            "description": "The company size of the contact",
            "nullable": true
          },
          "country": {
            "type": "string",
            "description": "Country where the contact lives in.",
            "nullable": true
          },
          "createdByUserId": {
            "type": "string",
            "description": "Id of user that created this"
          },
          "email": {
            "type": "string",
            "description": "Email address",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "description": "Phone number (Fax)",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "The contact's first name",
            "nullable": true
          },
          "gender": {
            "type": "number",
            "description": "Maybe the gender. Accepted values: -1=Unknown, 0=Male, 1=Female",
            "enum": [
              -1,
              0,
              1
            ]
          },
          "lastName": {
            "type": "string",
            "description": "The contact's last name",
            "nullable": true
          },
          "mobile": {
            "type": "string",
            "description": "Phone number (mobile)",
            "nullable": true
          },
          "note": {
            "type": "string",
            "description": "Notes about the contact",
            "nullable": true
          },
          "organization": {
            "type": "string",
            "description": "Name of the company for which the contact works for",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "description": "Phone number",
            "nullable": true
          },
          "position": {
            "type": "string",
            "description": "Job position",
            "nullable": true
          },
          "state": {
            "type": "string",
            "description": "State in which the contact lives in",
            "nullable": true
          },
          "street": {
            "type": "string",
            "description": "Street",
            "nullable": true
          },
          "street2": {
            "type": "string",
            "description": "Street 2",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Job title",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "Website URL",
            "nullable": true
          },
          "zip": {
            "type": "string",
            "description": "ZIP-Code of the city in which the contact lives in",
            "nullable": true
          }
        },
        "title": "Meeting Participant Request"
      },
      "UpdateMeetingDemandDto": {
        "type": "object",
        "properties": {
          "resourceIds": {
            "description": "List of unique identifiers of the meeting resources that should be booked. Every meeting demand can only have one resource which is a location.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "internalHints": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and the notification in the suiting language as values. Internal hints that are not to be displayed to the attendees."
          },
          "additionalNotes": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Json object containing language abbreviations as keys and the notification in the suiting language as values. Notes from the requesting attendees."
          },
          "meetingDate": {
            "description": "Date and time the meeting should take place.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MeetingDateRequestDto"
              }
            ]
          },
          "meetingName": {
            "type": "string",
            "description": "Name of the meeting."
          },
          "hostIds": {
            "description": "List of unique identifiers of the hosts that are demanded for the meeting. A host must be a snapADDY user.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "numberAttendees": {
            "type": "number",
            "description": "Number of attendees of the meeting."
          },
          "contacts": {
            "type": "array",
            "description": "Contacts that should be attached to this meeting. If one of those contacts does not exist it will be created instead. Contacts that were previously attached to this meeting but are not contained in this request will be detached.",
            "items": {
              "$ref": "#/components/schemas/MeetingParticipantRequestDto"
            }
          }
        },
        "title": "Update Meeting Demand"
      }
    },
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Use a [personal API token](/authentication/#personal-api-token)."
      }
    }
  }
}
