{
  "openapi": "3.0.4",
  "info": {
    "title": "Offision External Api",
    "description": "Offision External API allow developers to interact with their team's data (such as locations, spaces, presence, etc.) and build third-party applications to extend Offision's capabilities.\n\n## Introduction\nThis API documents is an reference for integration with Offision server. These External APIs allow third party application to access Bookings one for data communication. There are serval scenarios that will highly depend on the Offision API integration, such as IoT sensor integration, access control integration, data analytics etc.\n\nAll these API are running in HTTPs RESTful request.\n\n## Authentication\n\nOffision offers two authentication methods for the External API. Both are managed in\n`Management console -> Integration -> API authentication`, where you choose the method when\ncreating the integration:\n\n- **Access token** — a long-lived static token sent on every request.\n- **OAuth2 (client credentials)** — a standard OAuth2 client_id / client_secret pair exchanged\n  for a short-lived Bearer access token.\n\nEach integration also carries a set of **API scopes** that control which endpoint modules its\ncredentials may call and at which access level. A scope has the form `{module}.{access}`:\n\n- `access` is `read` (the module's `GET` endpoints) or `readwrite` (all of the module's endpoints).\n- `module` is one of: `all` (every module), `analyze`, `bookableResource`, `booking`, `building`,\n  `dashboard`, `ePaper`, `emergency`, `locker`, `sensor`, `serviceItem`, `system`, `user`,\n  `userGroup`, `visitor`.\n\nExamples: `all.readwrite` (full access — the default), `sensor.readwrite` (push and read sensor\ndata only), `booking.read user.read` (read-only access to bookings and users).\n\nRequests beyond the granted scopes are rejected with `403 Forbidden`.\n\n### Access token\n\nNavigate to `Management console -> Integration -> API authentication`, and create the API access token for authentication. \nThe Offision APIs use this access token to authenticate incoming requests. You can view and manage your access token in the Offision Management console.\n\n\nThese access tokens contain many privileges, thus make sure to keep them secure and do not share these access token in public accessible site such as GitHub, client-side code, and so forth.\n\nAuthentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth username value. You do not need to provide a password.\n\nIf you need to authenticate via bearer auth (e.g. for a cross-origin request), use \n\n```bash\n-H \"Authorization: XXXXXXXXXXXXXXXXXXXXXXXXX\".\n```\n\nAll API requests must be made over HTTPS. Calls made over plain HTTP will be auto redirect to HTTPS. API requests without authentication will be treated as fail and return 401 errors. Example:\n\n```bash\ncurl -v -L -H \"Authorization: XXXXXXXXXXXXXXXXXXXXXXXXX\" -H \"Content-Type: application/json\"  \"https://app.offision.com/API/external/system/v1/information\"\n```\n\n### OAuth2 client credentials\n\nCreate an integration with the **OAuth2** type to receive a `client_id` and `client_secret`\n(the secret is shown only once). Exchange them for an access token at the token endpoint\n(RFC 6749 §4.4):\n\n```bash\ncurl -X POST \"https://app.offision.com/api/external/oauth/token\" \\\n  -H \"Content-Type: application/x-www-form-urlencoded\" \\\n  -d \"grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET\"\n```\n\nClient authentication is also accepted as HTTP Basic (`client_id:client_secret`) per RFC 6749 §2.3.1.\n\nA successful response returns:\n\n```json\n{\n  \"access_token\": \"eyJhbGciOi...\",\n  \"token_type\": \"Bearer\",\n  \"expires_in\": 86400,\n  \"scope\": \"all.readwrite\"\n}\n```\n\nThe granted `scope` is the integration's assigned scope list (space-delimited). A client may\nrequest a narrowed token with the `scope` parameter (e.g. `scope=booking.read sensor.readwrite`);\nrequesting a module or access level beyond the assignment returns `invalid_scope`. Errors follow\nRFC 6749 §5.2 (`invalid_request`, `invalid_client`, `unsupported_grant_type`, `invalid_scope`).\n\nCall APIs with the token as a Bearer credential until it expires (default 1 day), then request\na new one:\n\n```bash\ncurl -H \"Authorization: Bearer eyJhbGciOi...\" \"https://app.offision.com/api/external/system/v1/information\"\n```\n\nTokens stop working immediately when the integration is deleted, expired, or when the caller's IP\nfalls outside the integration's IP restriction. If the integration's scopes are reduced, issued\ntokens are capped to the reduced scopes at once — calls beyond them return `403 Forbidden`.\n\n## Security & Access control\nThere are serval security practices that can be done to protect your application from vicious network attack on the Offision integration:\n\n1. Access token will only show once when it is generated, and it will not be shown again in anywhere and anytime afterwards. After you refresh the page, if you have lost the key, you need to go back to the management console to regenerate a new token for replacement.\n\n2. If you have more than 1 application which would like to connect to Offision, you can create new keys for each application. Please do not use the same key for different applications.\n\n3. You can restrict the access by limiting the sender IP address. Following are the valid format:\n   - 225.154.33.1 \n   - 225.154.33.1-100\n   - 225.154.33.3, 225.154.33.100\n   - 225.154.33.0/24\n\n4. You can also set expire time to make sure the authentication key will not be effective for certain period of time.\n\n\n## Add new APIs\nIf you find out that the existing APIs are not enough for your use case, please send a email to hello@offision.com and provide further information of your case, we will consider to add new APIs to Offision to fit your story.\n",
    "contact": {
      "name": "Offision",
      "url": "https://offision.com",
      "email": "hello@offision.com"
    },
    "version": "v1"
  },
  "paths": {
    "/api/external/analyze/booking/by-bookable-resources": {
      "get": {
        "tags": [
          "Analyze"
        ],
        "summary": "Search booking usage grouped by bookable resource",
        "parameters": [
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "floorId",
            "in": "query",
            "description": "floor ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.Analyze.ByBookableResourceAnalyzeResultViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/analyze/occupancy/by-bookable-resources": {
      "get": {
        "tags": [
          "Analyze"
        ],
        "summary": "Search occupancy data grouped by bookable resource",
        "parameters": [
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "floorId",
            "in": "query",
            "description": "floor ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.Analyze.ByBookableResourceAnalyzeResultViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/analyze/booking/by-time": {
      "get": {
        "tags": [
          "Analyze"
        ],
        "summary": "Search booking usage grouped by time",
        "parameters": [
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "floorId",
            "in": "query",
            "description": "floor ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupPeriodBy",
            "in": "query",
            "description": "Specify group data by: FiveMinutes,FifteenMinutes,Hourly,Daily,Weekly,Monthly,HalfHour, default is Daily",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.Analyze.ByTimeAnalyzeResultViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/analyze/occupancy/by-time": {
      "get": {
        "tags": [
          "Analyze"
        ],
        "summary": "Search occupancy data grouped by time",
        "parameters": [
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "floorId",
            "in": "query",
            "description": "floor ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "groupPeriodBy",
            "in": "query",
            "description": "Specify group data by: FiveMinutes,FifteenMinutes,Hourly,Daily,Weekly,Monthly,HalfHour, default is Daily",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.Analyze.ByTimeAnalyzeResultViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/{id}": {
      "get": {
        "tags": [
          "BookableResource"
        ],
        "summary": "Get bookable resource by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/bookable-resource": {
      "get": {
        "tags": [
          "BookableResource"
        ],
        "summary": "Search bookable resources by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Bookable resource type, accept multiple separate by ',' , e.g. room,desk,equipment",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "categoryId",
            "in": "query",
            "description": "Bookable resource category, accept multiple separate by ',' ,e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accessId",
            "in": "query",
            "description": "Bookable resource accessIds specified e.g. Room101,Desk101",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the bookable resource name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "floorId",
            "in": "query",
            "description": "Search by the floor id e.g. 1,2,3 or null",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "minCapacity",
            "in": "query",
            "description": "Search where the capacity are larger than the value provided",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "maxCapacity",
            "in": "query",
            "description": "Search where the capacity are less than the value provided",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/bookings/subscribe": {
      "post": {
        "tags": [
          "BookableResource"
        ],
        "summary": "Subscribe resource appointment change",
        "description": "Subscribe any booking change on the booking resource",
        "requestBody": {
          "description": "Specify the ID of Bookable resource. e.g. 1,2,3",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect bookable resource ID provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/access-key": {
      "get": {
        "tags": [
          "BookableResourceAccessKey"
        ],
        "summary": "Search bookable resource access keys",
        "parameters": [
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "Bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Specify the type e.g. oneTime,static,daily",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.AccessKey.BookableResourceAccessKeyViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/access-key/daily/subscribe": {
      "post": {
        "tags": [
          "BookableResourceAccessKey"
        ],
        "summary": "Subscribe to daily access key changes",
        "description": "Subscribe to daily access key changes on the bookable resource. Callback URL will be notified when changes occur.",
        "requestBody": {
          "description": "Specify the ID of Bookable resource. e.g. 1,2,3",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect bookable resource ID provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/access-key/one-time/subscribe": {
      "post": {
        "tags": [
          "BookableResourceAccessKey"
        ],
        "summary": "Subscribe to one-time access key changes",
        "description": "Subscribe to one-time access key changes on the bookable resource. Callback URL will be notified when changes occur.",
        "requestBody": {
          "description": "Specify the ID of Bookable resource. e.g. 1,2,3",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect bookable resource ID provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/player-content": {
      "get": {
        "tags": [
          "BookableResourcePlayerContent"
        ],
        "summary": "Search bookable resource player content",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Bookable resource ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/bookable-resource/player-content/{id}": {
      "get": {
        "tags": [
          "BookableResourcePlayerContent"
        ],
        "summary": "Get bookable resource player content for a single resource",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Bookable resource id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Bookable resource not found"
          }
        }
      }
    },
    "/api/external/bookable-resource/player-content/subscribe": {
      "post": {
        "tags": [
          "BookableResourcePlayerContent"
        ],
        "summary": "Subscribe to player content changes",
        "description": "Subscribe to player content changes on the bookable resource. Callback URL will be notified when changes occur.",
        "requestBody": {
          "description": "Specify the ID of Bookable resource. e.g. 1,2,3",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect bookable resource ID provided"
          }
        }
      }
    },
    "/api/external/booking/resource-appointment": {
      "get": {
        "tags": [
          "Booking"
        ],
        "summary": "Get resource appointments",
        "description": "Getting the appointment of bookable resources in Offision",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "ID of Appointments, accept multiple separate by ','",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizerUserId",
            "in": "query",
            "description": "ID of appointment organizer, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the appointment subject and content",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingState",
            "in": "query",
            "description": "Specify the booking state, return all if this is not provided. accept multiple separate by ',' , e.g. booked,using,waitingCheckIn",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "ID of Bookable resource, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookableResourceType",
            "in": "query",
            "description": "Type of Bookable resource, accept multiple separate by ',', e.g. room, desk",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingId",
            "in": "query",
            "description": "ID of booking, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludePreparation",
            "in": "query",
            "description": "Exclude preparation appointments",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "row",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/booking/export/by-bookable-resources": {
      "get": {
        "tags": [
          "Booking"
        ],
        "summary": "Export bookings by bookable resource to Excel",
        "description": "If no time zone is specified, UTC time is used\n            \n             Following API is still under construction. Will be released in coming version and the format may be changed based on development..",
        "parameters": [
          {
            "name": "From",
            "in": "query",
            "description": "Start time of the period",
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2021-10-11T11:00:00+08:00"
            },
            "example": "2021-10-11T11:00:00+08:00"
          },
          {
            "name": "To",
            "in": "query",
            "description": "End time of the period",
            "schema": {
              "type": "string",
              "format": "date-time",
              "example": "2021-10-11T14:00:00+08:00"
            },
            "example": "2021-10-11T14:00:00+08:00"
          },
          {
            "name": "TimeZone",
            "in": "query",
            "description": "Time zone name",
            "schema": {
              "type": "string",
              "example": "Asia/Hong_Kong"
            },
            "example": "Asia/Hong_Kong"
          },
          {
            "name": "OrganizerEmailDomain",
            "in": "query",
            "description": "Organizer email domain name",
            "schema": {
              "type": "string",
              "example": "gmail.com"
            },
            "example": "gmail.com"
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result"
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/booking/appointment-service-item": {
      "get": {
        "tags": [
          "Booking"
        ],
        "summary": "Search appointment service items",
        "description": "Search appointment service item linkages with pagination",
        "parameters": [
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "ID of Bookable resource, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "serviceItemId",
            "in": "query",
            "description": "ID of Service item, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time of service period, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the end time of service period, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status of service item linkage, accept multiple separate by ',' e.g. pending,confirmed,completed",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "row",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/booking": {
      "post": {
        "tags": [
          "Booking"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AddBookingRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AddBookingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AddBookingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AddBookingRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.BookingViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/building/{id}": {
      "get": {
        "tags": [
          "Building"
        ],
        "summary": "Get building by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Building.BuildingViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/building": {
      "get": {
        "tags": [
          "Building"
        ],
        "summary": "Search buildings by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Building ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the building name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Building.BuildingViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/dashboard/visitor-badge-statistics": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Get daily visitor analytics result",
        "description": "Getting the daily visitor analytics result of Offision",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "Date contain two information `date` and the `offset`\n\nSince Offision are running in global server, it will not have information which the request's timezone are, it is necessary to specify the offset of your request timezone.\n            \n`time` value are not relevant at this case, just state the value as `00:00:00`.\n\nExample: `2022-01-05T00:00:00+08:00`",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Dashboard.VisitorBadgeStatisticsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect date format provided"
          }
        }
      }
    },
    "/api/external/dashboard/v1/visitor-badge-statistics": {
      "get": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Get daily visitor analytics result",
        "description": "Getting the daily visitor analytics result of Offision",
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "description": "Date contain two information `date` and the `offset`\n\nSince Offision are running in global server, it will not have information which the request's timezone are, it is necessary to specify the offset of your request timezone.\n            \n`time` value are not relevant at this case, just state the value as `00:00:00`.\n\nExample: `2022-01-05T00:00:00+08:00`",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Dashboard.VisitorBadgeStatisticsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect date format provided"
          }
        }
      }
    },
    "/api/external/emergency/{planScopeId}/active": {
      "post": {
        "tags": [
          "Emergency"
        ],
        "summary": "Activate or resolve an emergency plan-scope.",
        "description": "Flips the live state of a pre-configured plan-scope. The body's `on` raises (true) or clears (false) it.",
        "parameters": [
          {
            "name": "planScopeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Emergency.SetEmergencyActiveRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Emergency.SetEmergencyActiveRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Emergency.SetEmergencyActiveRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Emergency.SetEmergencyActiveRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The plan-scope's new live state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Emergency.EmergencyTriggerResultViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/environment-sensor": {
      "get": {
        "tags": [
          "EnvironmentSensor"
        ],
        "summary": "Search environment sensors by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Iot device ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accessId",
            "in": "query",
            "description": "Iot device accessIds specified e.g. Room101,Desk101",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the iot device name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "Search by the bookable resource id e.g. 1,2,3 or null",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/environment-sensor/data": {
      "post": {
        "tags": [
          "EnvironmentSensor"
        ],
        "summary": "Post environment sensor data",
        "description": "Update the environment sensor environment information",
        "requestBody": {
          "description": "Sensor data",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.EnvironmentSensorDataRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.EnvironmentSensorDataRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.EnvironmentSensorDataRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.EnvironmentSensorDataRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returning a 200 status indicates that the information provided is received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect information format provided"
          }
        }
      }
    },
    "/api/external/e-paper-controller/{id}": {
      "get": {
        "tags": [
          "EPaperController"
        ],
        "summary": "Get e-paper controller by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/e-paper-controller": {
      "get": {
        "tags": [
          "EPaperController"
        ],
        "summary": "Search e-paper controllers by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "E-paper controller ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "E-paper controller type, accept multiple separate by ',' , e.g. qbicGateway or MinewServer",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the e-paper controller name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/e-paper-controller/tag/{tagId}/signage-content": {
      "get": {
        "tags": [
          "EPaperController"
        ],
        "summary": "Download the signage image bound to an e-paper tag",
        "parameters": [
          {
            "name": "tagId",
            "in": "path",
            "description": "Id of e-paper tag",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The image content"
          },
          "400": {
            "description": "Tag not found, or the tag has no signage content"
          }
        }
      }
    },
    "/api/external/e-paper-controller/tag/status": {
      "post": {
        "tags": [
          "EPaperController"
        ],
        "summary": "Update e-paper tag status",
        "requestBody": {
          "description": "Update e-paper tag status request",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerUpdateTagStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerUpdateTagStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerUpdateTagStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerUpdateTagStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/iot-space-sensor/data": {
      "post": {
        "tags": [
          "IotSpaceSensor"
        ],
        "summary": "Post one IotSpace sensor reading.",
        "description": "The space is identified by `iotSpaceId`. When `iotPlatformId` is\nomitted, the space's first platform mapping is used. The reading is dropped\nif the space/platform pair has no mapping.",
        "requestBody": {
          "description": "Sensor data",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.IotSpaceSensor.IotSpaceSensorDataRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.IotSpaceSensor.IotSpaceSensorDataRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.IotSpaceSensor.IotSpaceSensorDataRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.IotSpaceSensor.IotSpaceSensorDataRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Reading received",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect information format provided"
          }
        }
      }
    },
    "/api/external/locker-box/{id}": {
      "get": {
        "tags": [
          "Locker"
        ],
        "summary": "Get locker box by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Locker.LockerBoxViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/locker-box": {
      "get": {
        "tags": [
          "Locker"
        ],
        "summary": "Search locker boxes by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Locker box ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the locker box name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Locker.LockerBoxViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/milesight/uplink": {
      "post": {
        "tags": [
          "Milesight"
        ],
        "summary": "Sensor uplink — the URL to paste into the gateway's \"Uplink data\" row.",
        "description": "Auto-registers unknown devices (devEUI as serial number) and records the decoded readings.\nUplinks are partial: an absent field means \"unchanged\", never zero.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Push received (including logged drops — see the server log)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid token"
          },
          "403": {
            "description": "Token not scoped to the Milesight module"
          }
        }
      }
    },
    "/api/external/milesight/join": {
      "post": {
        "tags": [
          "Milesight"
        ],
        "summary": "Join notification (optional row) — enrols a device the moment it joins the network,\ninstead of waiting for its first scheduled uplink.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Push received",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/milesight/ack": {
      "post": {
        "tags": [
          "Milesight"
        ],
        "summary": "ACK notification (optional row) — accepted and logged only.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Push received",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/milesight/error": {
      "post": {
        "tags": [
          "Milesight"
        ],
        "summary": "Error notification (optional row) — accepted and logged only.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": {
                  "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Push received",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/oauth/token": {
      "post": {
        "tags": [
          "OAuthToken"
        ],
        "summary": "Issue an access token",
        "description": "Exchange an integration's `client_id` / `client_secret` for a short-lived Bearer token\n(RFC 6749 §4.4). Client authentication is accepted either as an HTTP Basic `Authorization`\nheader (`client_id:client_secret`, RFC 6749 §2.3.1) or as `client_id` / `client_secret`\nform fields.\n            \nThe token carries the integration's assigned scopes. The optional `scope` field narrows it:\nevery requested scope must be covered by the assignment, at most at the assigned access\nlevel.",
        "requestBody": {
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "required": [
                  "grant_type"
                ],
                "type": "object",
                "properties": {
                  "grant_type": {
                    "type": "string",
                    "description": "Always `client_credentials`."
                  },
                  "client_id": {
                    "type": "string",
                    "description": "The integration's client id. Omit when authenticating with an HTTP Basic header."
                  },
                  "client_secret": {
                    "type": "string",
                    "description": "The integration's client secret. Omit when authenticating with an HTTP Basic header."
                  },
                  "scope": {
                    "type": "string",
                    "description": "Optional space-delimited subset of the integration's scopes, e.g. `booking.read sensor.readwrite`."
                  }
                }
              },
              "example": {
                "grant_type": "client_credentials",
                "client_id": "YOUR_CLIENT_ID",
                "client_secret": "YOUR_CLIENT_SECRET"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The access token, its lifetime in seconds and the granted scope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.OAuth.OAuthTokenSuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "`invalid_request`, `unsupported_grant_type` or `invalid_scope`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.OAuth.OAuthTokenErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "`invalid_client` — unknown, expired or IP-restricted credentials.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.OAuth.OAuthTokenErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/occupancy-sensor": {
      "get": {
        "tags": [
          "OccupancySensor"
        ],
        "summary": "Search occupancy sensors by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Occupancy sensor ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accessId",
            "in": "query",
            "description": "Occupancy sensor access IDs specified e.g. Room101,Desk101",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the occupancy sensor name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "Search by the bookable resource id e.g. 1,2,3 or null",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      },
      "post": {
        "tags": [
          "OccupancySensor"
        ],
        "summary": "Create occupancy sensor",
        "requestBody": {
          "description": "Occupancy sensor to be created",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/occupancy-sensor/{id}": {
      "post": {
        "tags": [
          "OccupancySensor"
        ],
        "summary": "Update occupancy sensor",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Occupancy sensor id or access id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Occupancy sensor data to update",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      },
      "get": {
        "tags": [
          "OccupancySensor"
        ],
        "summary": "Get occupancy sensor by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/occupancy-sensor/data": {
      "post": {
        "tags": [
          "OccupancySensor"
        ],
        "summary": "Post occupancy sensor data",
        "description": "Update the occupancy sensor occupancy information",
        "requestBody": {
          "description": "Sensor data",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorDataRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorDataRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorDataRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorDataRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returning a 200 status indicates that the information provided is received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect information format provided"
          }
        }
      }
    },
    "/api/external/radius/authenticate": {
      "post": {
        "tags": [
          "RadiusAuth"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/radius/shared-secret": {
      "post": {
        "tags": [
          "RadiusAuth"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.Radius.Domain.RadiusSharedSecretResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/service-item/{id}": {
      "get": {
        "tags": [
          "ServiceItem"
        ],
        "summary": "Get service item by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/service-item": {
      "get": {
        "tags": [
          "ServiceItem"
        ],
        "summary": "Search service items by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "Service item ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Service item type, accept multiple separate by ',' , e.g. betweenBooking,afterBooking",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "servicePlanId",
            "in": "query",
            "description": "Search by the service plan id id e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the service item name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/system/information": {
      "get": {
        "tags": [
          "System"
        ],
        "summary": "Get system information",
        "description": "System information of Offision",
        "responses": {
          "200": {
            "description": "Returning a 200 status indicates that the information retrieval was made successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.SystemViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Get user by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "User"
        ],
        "summary": "Delete user by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user": {
      "get": {
        "tags": [
          "User"
        ],
        "summary": "Search users by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "User ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userGroupId",
            "in": "query",
            "description": "Search by the user group id e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "licenseItemType",
            "in": "query",
            "description": "Filter by license item type, accept multiple separate by ',' e.g. bookingRoomE3,bookingDeskE3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by user display name or email address",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Users.UserViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/user/invite": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Invite a new user",
        "description": "Create a new user by sending an invitation email",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/integration/{integrationClientId}/invite": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Invite a new user for an integration client",
        "description": "Create a new user linked to a specific integration client by sending an invitation email",
        "parameters": [
          {
            "name": "integrationClientId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.InviteUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}/assign-license": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Assign a license to a user",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.AssignLicenseRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.AssignLicenseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.AssignLicenseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.AssignLicenseRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}/unassign-license": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Unassign a license from a user",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UnAssignLicenseRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UnAssignLicenseRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UnAssignLicenseRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UnAssignLicenseRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}/deactivate": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Deactivate user by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}/activate": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Activate user by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}/set-access-card": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Set an access card for a user",
        "description": "Sets or updates the card number for the specified access card type. AccessCardType must be one of: UserCard, UserCard2, UserCard3",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.SetAccessCardRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.SetAccessCardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.SetAccessCardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.SetAccessCardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user/{id}/remove-access-card": {
      "post": {
        "tags": [
          "User"
        ],
        "summary": "Remove an access card from a user",
        "description": "Removes the card number for the specified access card type. AccessCardType must be one of: UserCard, UserCard2, UserCard3",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.RemoveAccessCardRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.RemoveAccessCardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.RemoveAccessCardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.RemoveAccessCardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user-group/{id}": {
      "get": {
        "tags": [
          "UserGroup"
        ],
        "summary": "Get user group by id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.UserGroupViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user-group": {
      "get": {
        "tags": [
          "UserGroup"
        ],
        "summary": "Search user groups by pagination",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "User group ids specified, e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by user group name",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Pages of request. If this is not provided, will return first page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "Number of rows for each page. If this is not provided, default value will be 50.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.UserGroup.UserGroupViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user-group/assign-users": {
      "post": {
        "tags": [
          "UserGroup"
        ],
        "summary": "Assign users to a user group",
        "description": "Replaces all users in the specified user group with the provided user IDs",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AssignUsersRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AssignUsersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AssignUsersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AssignUsersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user-group/add-users": {
      "post": {
        "tags": [
          "UserGroup"
        ],
        "summary": "Add users to a user group",
        "description": "Adds users to the specified user group without removing existing members",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AddUsersRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AddUsersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AddUsersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.AddUsersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/user-group/remove-users": {
      "post": {
        "tags": [
          "UserGroup"
        ],
        "summary": "Remove users from a user group",
        "description": "Removes specified users from the user group without affecting other members",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.RemoveUsersRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.RemoveUsersRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.RemoveUsersRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.RemoveUsersRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/visiting-appointment/search": {
      "get": {
        "tags": [
          "VisitingAppointment"
        ],
        "summary": "Search visitor appointment information",
        "description": "Search the visitor appointment information",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "ID of Appointments, accept multiple separate by ','",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "invitingUserId",
            "in": "query",
            "description": "ID of appointment inviter, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchText",
            "in": "query",
            "description": "Search by the appointment subject and content",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingState",
            "in": "query",
            "description": "Specify the booking state, return all if this is not provided. accept multiple separate by ',' , e.g. booked,using,waitingCheckIn",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookableResourceId",
            "in": "query",
            "description": "ID of Bookable resource, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buildingId",
            "in": "query",
            "description": "ID of building, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "visitorId",
            "in": "query",
            "description": "ID of visitor, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bookingId",
            "in": "query",
            "description": "ID of booking, accept multiple separate by ',' , e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "row",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-badge/{id}": {
      "get": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Get visitor badge information",
        "description": "Getting the visitor badge information by id / uid",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorBadgeViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-badges": {
      "get": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Search visitor badge information",
        "description": "Search the visitor badge information",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "ID of Visitor badge, accept multiple separate by ',' e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uid",
            "in": "query",
            "description": "UID of Visitor badge, accept multiple separate by ','",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "registrationCode",
            "in": "query",
            "description": "Registration code of Visitor badge, accept multiple separate by ',' e.g. ABCDEF,BCDEFG",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "visitorEmailAddress",
            "in": "query",
            "description": "Email address of the visitor of the long term badge, accept multiple separate by ',' e.g. albert@offision.com,kennith@offision.com",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "buildingId",
            "in": "query",
            "description": "BuildingId of Visitor badge, accept multiple separate by ',' e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "State of Visitor badge, accept multiple separate by ',' e.g. initial,noShow,visited,visiting",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "row",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.VisitorManagement.VisitorBadgeViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-regular-badge/{id}": {
      "get": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Get visitor long term badge information",
        "description": "Getting the visitor long term badge information by id / uid",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-regular-badge": {
      "get": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Search visitor long term badge information",
        "description": "Search the visitor long term badge information",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "ID of Visitor long term badge, accept multiple separate by ',' e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "uid",
            "in": "query",
            "description": "UID of Visitor long term badge, accept multiple separate by ','",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "description": "Specify the start time to search resource appointment, accept ISO 8601 (2015-01-01T08:00:00+08:00) or string 'now'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "registrationCode",
            "in": "query",
            "description": "Registration code of long term badge, accept multiple separate by ',' e.g. ABCDEF,BCDEFG",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "visitorEmailAddress",
            "in": "query",
            "description": "Email address of the visitor of the long term badge, accept multiple separate by ',' e.g. albert@offision.com,kennith@offision.com",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Statuses of Visitor long term badge, accept multiple separate by ',' e.g. Active,Expired,Invalidated,Pending",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "page",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "row",
            "in": "query",
            "description": "row",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      },
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Create visitor long term badges",
        "description": "Create visitor long term badges by email addresses",
        "requestBody": {
          "description": "Visitor long term badge creation request body",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeCreateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeCreateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeCreateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeCreateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      },
      "put": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Update visitor long term badges",
        "description": "Update visitor long term badges' period by ids",
        "requestBody": {
          "description": "Visitor long term badge update request body",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeUpdateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeUpdateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeUpdateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      },
      "delete": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Delete visitor long term badges",
        "description": "Delete visitor long term badges by ids",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "ID of Visitor long term badges, accept multiple separate by ',' e.g. 1,2,3",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-regular-badge/resend-notification": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Resend visitor long term badges to visitors",
        "description": "Resend long term badge to the users",
        "requestBody": {
          "description": "IDs of the visitor long term badge",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.InterfaceBase.SuccessResponse"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-regular-badge/regenerate-codes": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Regenerate the code of visitor long term badges",
        "description": "Regenerate the code of visitor long term badges, previous code will not able to use anymore",
        "requestBody": {
          "description": "IDs of the visitor long term badge",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-regular-badge/invalidate": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Invalidate visitor long term badges",
        "description": "Invalidate (disable) visitor long term badges by ids. The badges will no longer be valid for entry.",
        "requestBody": {
          "description": "IDs of the visitor long term badge",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-regular-badge/validate": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Validate visitor long term badges",
        "description": "Validate (re-enable) visitor long term badges by ids. The badges will become valid again for entry.",
        "requestBody": {
          "description": "IDs of the visitor long term badge",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.InterfaceBase.IdsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Getting the correct result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-badge/verify": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Check a scanned code at a gate",
        "description": "For a gate, turnstile or reader your own system controls. Send whatever the scanner read and\nOffision answers with a verdict; your system opens the barrier.\n            \nA refused scan is a **200**, not an error — read `isGranted`, not the status code. 400 means\nthe request itself was wrong, 401 a bad token, 403 a missing scope. Nothing is written here\nbeyond a record of the scan on the visitor's timeline.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict returned, whether or not the pass was accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-badge/check-in": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Record a visitor's arrival at a gate",
        "description": "Checks the scanned code exactly as verify does, then records the arrival if the pass is good.\nA refused scan is a **200** with `isGranted` false and nothing written.\n            \nSafe to call on every scan. A visitor who is already inside is not checked in a second time —\n`action` comes back as `alreadyCheckedIn` and their arrival time and badge Wi-Fi password are\nleft alone. A visitor who checked out and came back is re-admitted (`reCheckedIn`), unless\nthey are at a building their visit does not cover.\n            \nA long-term badge has no visit to open: `action` is `none`, and a valid one still opens the\ngate.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict returned, whether or not the pass was accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/visitor-management/visitor-badge/check-out": {
      "post": {
        "tags": [
          "VisitorManagement"
        ],
        "summary": "Record a visitor's departure at a gate",
        "description": "Deliberately permissive: any badge that resolves may leave, expired ones included, so nobody\nis held inside a building because their pass lapsed during a meeting. The departure is still\nrecorded for an expired badge.\n            \nSafe to call on every scan. A second tap returns `alreadyCheckedOut` and leaves the recorded\ndeparture time where it was.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Verdict returned, whether or not the pass was accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorGateResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Incorrect parameter provided"
          }
        }
      }
    },
    "/api/external/workflow/webhook/{key}": {
      "post": {
        "tags": [
          "WorkflowWebhook"
        ],
        "summary": "Trigger a workflow via webhook key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Workflow execution accepted (fire-and-forget) or completed (wait-for-completion)."
          },
          "400": {
            "description": "Pre-execution failure (no execution row): body is Server.InterfaceBase.BusinessExceptionViewModel.\nEngine execution failure (wait-for-completion): body is Server.ExternalInterface.Features.Workflow.WebhookFailureViewModel\nwith the executionId so callers can correlate with logs."
          },
          "401": {
            "description": "Invalid authentication token."
          }
        }
      },
      "get": {
        "tags": [
          "WorkflowWebhook"
        ],
        "summary": "Trigger a workflow via webhook key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Workflow execution accepted (fire-and-forget) or completed (wait-for-completion)."
          },
          "400": {
            "description": "Pre-execution failure (no execution row): body is Server.InterfaceBase.BusinessExceptionViewModel.\nEngine execution failure (wait-for-completion): body is Server.ExternalInterface.Features.Workflow.WebhookFailureViewModel\nwith the executionId so callers can correlate with logs."
          },
          "401": {
            "description": "Invalid authentication token."
          }
        }
      },
      "put": {
        "tags": [
          "WorkflowWebhook"
        ],
        "summary": "Trigger a workflow via webhook key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Workflow execution accepted (fire-and-forget) or completed (wait-for-completion)."
          },
          "400": {
            "description": "Pre-execution failure (no execution row): body is Server.InterfaceBase.BusinessExceptionViewModel.\nEngine execution failure (wait-for-completion): body is Server.ExternalInterface.Features.Workflow.WebhookFailureViewModel\nwith the executionId so callers can correlate with logs."
          },
          "401": {
            "description": "Invalid authentication token."
          }
        }
      },
      "delete": {
        "tags": [
          "WorkflowWebhook"
        ],
        "summary": "Trigger a workflow via webhook key.",
        "parameters": [
          {
            "name": "key",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Workflow execution accepted (fire-and-forget) or completed (wait-for-completion)."
          },
          "400": {
            "description": "Pre-execution failure (no execution row): body is Server.InterfaceBase.BusinessExceptionViewModel.\nEngine execution failure (wait-for-completion): body is Server.ExternalInterface.Features.Workflow.WebhookFailureViewModel\nwith the executionId so callers can correlate with logs."
          },
          "401": {
            "description": "Invalid authentication token."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Newtonsoft.Json.Linq.JToken": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Newtonsoft.Json.Linq.JToken"
        }
      },
      "Server.Domain.Billing.Licenses.LicenseItemTypes": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35,
          36,
          37,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          46,
          47,
          48,
          49,
          50,
          51,
          52,
          53,
          54,
          55,
          56,
          57,
          58,
          59,
          60,
          61,
          62,
          63,
          64,
          65,
          66,
          67,
          68,
          69,
          70,
          71,
          72,
          73,
          74,
          75,
          76,
          77,
          78,
          79,
          80,
          81,
          82,
          83,
          84,
          85,
          86,
          87,
          88,
          89,
          90,
          91,
          92,
          93,
          94,
          95,
          96,
          97,
          98,
          99,
          100,
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114,
          115,
          116,
          117,
          118,
          119,
          120,
          121,
          122,
          123,
          124,
          125,
          126
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Core.DateTime.DateTimeOffsetRange": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Server.Domain.Core.DateTime.DateTimeZoneRange": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "startTimeZone": {
            "type": "string",
            "nullable": true
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "endTimeZone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.Domain.Features.BookableResources.BookableResourceAccessKeys.BookableResourceAccessKeyTypes": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Features.BookableResources.BookableResources.BookableResourceTypes": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Features.InternetOfThings.IotSensorData.HumidityUnit": {
        "enum": [
          0
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Features.InternetOfThings.IotSensorData.PowerConsumptionUnit": {
        "enum": [
          0
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Features.InternetOfThings.IotSensorData.TemperatureUnit": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Features.Users.AccessCard.AccessCardTypes": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Features.Users.User.UserActivateStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Interfaces.ExternalInterface.BookableResourcePlayerContentStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Interfaces.ExternalInterface.BookableResourcePlayerSuggestColor": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Products.Bookings.AppointmentServices.BookingServiceItemLinkageStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Products.Bookings.Appointments.AppearanceTypes": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Products.Bookings.Bookings.BookingStates": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Products.Service.ServiceItems.ServiceItemTypes": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Products.VisitorManagement.VisitorBadge.VisitorBadgeStates": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Domain.Products.VisitorManagement.VisitorBadge.VisitorRegularBadgeStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.ExternalInterface.Features.Analyze.ByBookableResourceAnalyzeResultViewModel": {
        "type": "object",
        "properties": {
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Analyze.ByBookableResourceAnalyzeResultViewModel.BookableResourceViewModel"
          },
          "usageCount": {
            "type": "integer",
            "description": "Usage count",
            "format": "int32"
          },
          "usedTimeInMinutes": {
            "type": "number",
            "description": "Used time in minutes",
            "format": "double"
          },
          "usedTimeInPercentage": {
            "type": "number",
            "description": "Used time in percentage",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Analyze.ByBookableResourceAnalyzeResultViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Bookable resource name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Analyze.ByTimeAnalyzeResultViewModel": {
        "type": "object",
        "properties": {
          "dateTime": {
            "type": "string",
            "description": "Date time",
            "format": "date-time"
          },
          "usageCount": {
            "type": "integer",
            "description": "Usage count",
            "format": "int32"
          },
          "usedTimeInMinutes": {
            "type": "number",
            "description": "Used time in minutes",
            "format": "double"
          },
          "usedTimeInPercentage": {
            "type": "number",
            "description": "Used time in percentage",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.AccessKey.BookableResourceAccessKeyViewModel": {
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Features.BookableResources.BookableResourceAccessKeys.BookableResourceAccessKeyTypes"
          },
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.AccessKey.BookableResourceAccessKeyViewModel.BookableResourceViewModel"
          },
          "accessUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.AccessKey.BookableResourceAccessKeyViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32"
          },
          "accessId": {
            "type": "string",
            "description": "Access Id",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "BookableResource name",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Features.BookableResources.BookableResources.BookableResourceTypes"
          },
          "category": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.BookableResourceCategoryItemViewModel"
          },
          "description": {
            "type": "string",
            "description": "Description",
            "nullable": true
          },
          "actualServiceItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.ServiceItemViewModel"
            },
            "description": "Service item belongs to the bookable resource",
            "nullable": true
          },
          "floor": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.FloorViewModel"
          },
          "capacity": {
            "type": "integer",
            "description": "Capacity of the resource",
            "format": "int32",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Is the resource deleted"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.BookableResourceCategoryItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Category Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Category name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.FloorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Floor Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Floor name",
            "nullable": true
          },
          "building": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.FloorViewModel.BuildingViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.FloorViewModel.BuildingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Building Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Building name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel.ServiceItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Service item Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Service item name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/Server.Domain.Interfaces.ExternalInterface.BookableResourcePlayerContentStatus"
          },
          "suggestColor": {
            "$ref": "#/components/schemas/Server.Domain.Interfaces.ExternalInterface.BookableResourcePlayerSuggestColor"
          },
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.BookableResourceViewModel"
          },
          "currentAppointment": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.AppointmentViewModel"
          },
          "nextAppointment": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.AppointmentViewModel"
          },
          "statusWording": {
            "type": "string",
            "nullable": true
          },
          "upcomingAppointments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.AppointmentViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.AppointmentViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "nullable": true
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "organizerDisplayName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "BookableResource name",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Features.BookableResources.BookableResources.BookableResourceTypes"
          },
          "capacity": {
            "type": "integer",
            "description": "Capacity of the resource",
            "format": "int32",
            "nullable": true
          },
          "amenities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.BookableResourceViewModel.AmenityViewModel"
            },
            "description": "Amenities of the bookable resource",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.BookableResource.PlayerContent.BookableResourcePlayerContentViewModel.BookableResourceViewModel.AmenityViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Amenity Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Amenity name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.AddBookingRequest": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "nullable": true
          },
          "htmlBody": {
            "type": "string",
            "nullable": true
          },
          "textBody": {
            "type": "string",
            "nullable": true
          },
          "period": {
            "$ref": "#/components/schemas/Server.Domain.Core.DateTime.DateTimeZoneRange"
          },
          "resources": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "organizer": {
            "type": "string",
            "nullable": true
          },
          "requiredAttendees": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "optionalAttendees": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean"
          },
          "withOnlineMeeting": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Appointment service item linkage Id",
            "nullable": true,
            "example": "abc-123"
          },
          "status": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.AppointmentServices.BookingServiceItemLinkageStatus"
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "originalPeriod": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "organizerRemarks": {
            "type": "string",
            "description": "Remarks from the organizer",
            "nullable": true
          },
          "serviceStaffRemarks": {
            "type": "string",
            "description": "Remarks from the service staff",
            "nullable": true
          },
          "serviceItem": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.ServiceItemViewModel"
          },
          "appointment": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.AppointmentViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.AppointmentViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Appointment Id",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Appointment subject",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean",
            "description": "Is all day appointment"
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.AppointmentViewModel.BookableResourceViewModel"
          },
          "organizer": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.AppointmentViewModel.OrganizerViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.AppointmentViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "Bookable resource name",
            "nullable": true,
            "example": "Room 101"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.AppointmentViewModel.OrganizerViewModel": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "User's Id",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "displayName": {
            "type": "string",
            "description": "User's display name",
            "nullable": true,
            "example": "John Doe"
          },
          "emailAddress": {
            "type": "string",
            "description": "User's email address",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel.ServiceItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Service item Id",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Service item name",
            "nullable": true,
            "example": "Catering"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.BookingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Booking Id",
            "format": "int32",
            "example": 3
          },
          "masterBookingId": {
            "type": "integer",
            "description": "Master booking Id, only exists for occurrence and exception",
            "format": "int32",
            "nullable": true,
            "example": 5
          },
          "bookingState": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.Bookings.BookingStates"
          },
          "iCalUid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.CreateSubscriptionRequest": {
        "required": [
          "callbackUrl",
          "expireTime",
          "ids"
        ],
        "type": "object",
        "properties": {
          "ids": {
            "minLength": 1,
            "type": "string",
            "description": "Specify the ID to subscribe",
            "example": "1,2,3"
          },
          "callbackUrl": {
            "minLength": 1,
            "type": "string",
            "description": "The url that will call back when there are any update from system"
          },
          "expireTime": {
            "type": "integer",
            "description": "Expire time in minutes. Default value is 60, maximum value is 1440 (1day)",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "Start time of the period",
            "format": "date-time",
            "example": "2021-10-11T11:00:00+08:00"
          },
          "end": {
            "type": "string",
            "description": "End time of the period",
            "format": "date-time",
            "example": "2021-10-11T14:00:00+08:00"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Appointment Id",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Appointment Subject",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean",
            "description": "Is all day appointment"
          },
          "textBody": {
            "type": "string",
            "description": "Appointment Text Body",
            "nullable": true
          },
          "appearanceType": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.Appointments.AppearanceTypes"
          },
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.BookableResourceViewModel"
          },
          "organizer": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.OrganizerViewModel"
          },
          "attendees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.AttendeeViewModel"
            },
            "nullable": true
          },
          "isPreparationAppointment": {
            "type": "boolean",
            "description": "Is preparation appointment",
            "example": 12
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "booking": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.BookingViewModel"
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.ServiceViewModel"
            },
            "description": "Selected services",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.AttendeeViewModel": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "User's Id",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "displayName": {
            "type": "string",
            "description": "User's display name",
            "nullable": true,
            "example": "John Doe"
          },
          "role": {
            "type": "string",
            "description": "Role of the participant\n- RequiredAttendee\n- OptionalAttendee",
            "nullable": true,
            "example": "Organizer"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "Bookable resource name",
            "nullable": true,
            "example": "Room 101"
          },
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Features.BookableResources.BookableResources.BookableResourceTypes"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.BookingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Booking Id",
            "format": "int32",
            "example": 3
          },
          "masterBookingId": {
            "type": "integer",
            "description": "Master booking Id, only exists for occurrence and exception",
            "format": "int32",
            "nullable": true,
            "example": 5
          },
          "bookingState": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.Bookings.BookingStates"
          },
          "iCalUid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.OrganizerViewModel": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "integer",
            "description": "User's Id",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "displayName": {
            "type": "string",
            "description": "User's display name",
            "nullable": true,
            "example": "John Doe"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.ServiceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Linkage Id",
            "nullable": true,
            "example": "123321"
          },
          "status": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.AppointmentServices.BookingServiceItemLinkageStatus"
          },
          "serviceItem": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.ServiceViewModel.ServiceItemViewModel"
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel.ServiceViewModel.ServiceItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Building.BuildingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Building Id",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Building name",
            "nullable": true,
            "example": "Building 1"
          },
          "address": {
            "type": "string",
            "nullable": true
          },
          "floors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Building.BuildingViewModel.FloorViewModel"
            },
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Building.BuildingViewModel.FloorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "order": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Dashboard.VisitorBadgeStatisticsResponse": {
        "type": "object",
        "properties": {
          "numberOfInitial": {
            "type": "integer",
            "description": "Number of visitors which are not arrive and check in",
            "format": "int32",
            "example": 10
          },
          "numberOfVisiting": {
            "type": "integer",
            "description": "Number of visitors which are check in and currently visiting",
            "format": "int32",
            "example": 15
          },
          "numberOfVisited": {
            "type": "integer",
            "description": "Number of visitors which are checkout and left",
            "format": "int32",
            "example": 6
          },
          "numberOfNoShow": {
            "type": "integer",
            "description": "Number of visitors which are no show, which means visitor didn't showing in the specified day",
            "format": "int32",
            "example": 3
          },
          "numberOfOverStaying": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.EPaperController.EPaperControllerUpdateTagStatusRequest": {
        "type": "object",
        "properties": {
          "batteryLevel": {
            "type": "number",
            "description": "Battery Level of the device",
            "format": "double",
            "nullable": true,
            "example": 99
          },
          "screenSize": {
            "type": "number",
            "description": "ScreenSize",
            "format": "double",
            "nullable": true,
            "example": 4
          },
          "isOnline": {
            "type": "boolean",
            "description": "Is the tag online",
            "example": true
          },
          "ePaperTagId": {
            "type": "string",
            "description": "Id of e-paper tag",
            "nullable": true,
            "example": "abc-123-def"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "EPaperController Id",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "EPaperController name",
            "nullable": true,
            "example": "EPaperController 1"
          },
          "displayLanguage": {
            "type": "string",
            "description": "EPaperController display language",
            "nullable": true,
            "example": "en-US"
          },
          "showQrCode": {
            "type": "boolean",
            "description": "Whether the QBIC e-paper tag should render the QR code area. Always true for non-QBIC controllers.",
            "example": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel.TagViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel.SignageContentViewModel": {
        "type": "object",
        "properties": {
          "playbackFileId": {
            "type": "integer",
            "description": "Id of the bound playback image file",
            "format": "int32",
            "nullable": true,
            "example": 12
          },
          "fileName": {
            "type": "string",
            "description": "File name of the playback image",
            "nullable": true,
            "example": "lobby-menu"
          },
          "extension": {
            "type": "string",
            "description": "File extension of the playback image",
            "nullable": true,
            "example": ".png"
          },
          "checkSum": {
            "type": "string",
            "description": "Checksum of the playback image content",
            "nullable": true,
            "example": "4Vx1ZzOHT9k+xEsuM/f2Kw=="
          },
          "size": {
            "type": "integer",
            "description": "Size of the playback image in bytes",
            "format": "int64",
            "nullable": true,
            "example": 10240
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel.TagViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "externalKey": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "E-paper tag type",
            "nullable": true,
            "example": "roomEPaper"
          },
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel.BookableResourceViewModel"
          },
          "isLicenseValid": {
            "type": "boolean"
          },
          "signageContent": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel.SignageContentViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Emergency.EmergencyTriggerResultViewModel": {
        "type": "object",
        "properties": {
          "planScopeId": {
            "type": "integer",
            "format": "int32"
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Emergency.SetEmergencyActiveRequest": {
        "type": "object",
        "properties": {
          "on": {
            "type": "boolean",
            "description": "True to activate (raise) the emergency, false to resolve (clear) it."
          },
          "reference": {
            "type": "string",
            "description": "Optional caller/source identifier recorded in the trigger log for traceability.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.IotSpaceSensor.IotSpaceSensorDataRequest": {
        "required": [
          "iotSpaceId"
        ],
        "type": "object",
        "properties": {
          "iotSpaceId": {
            "type": "integer",
            "description": "The Offision IotSpace id this reading belongs to.",
            "format": "int32",
            "example": 12
          },
          "iotPlatformId": {
            "type": "integer",
            "description": "Optional platform id. If omitted, the space's first platform mapping is used.",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "timestamp": {
            "type": "string",
            "description": "Time the reading was collected. If empty, the time the system received it is used.",
            "format": "date-time",
            "nullable": true,
            "example": "2026-05-08T09:15:02+08:00"
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "temperatureUnit": {
            "$ref": "#/components/schemas/Server.Domain.Features.InternetOfThings.IotSensorData.TemperatureUnit"
          },
          "humidity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "humidityUnit": {
            "$ref": "#/components/schemas/Server.Domain.Features.InternetOfThings.IotSensorData.HumidityUnit"
          },
          "cO2": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tvoc": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pM25": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pM10": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "barometricPressure": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "people": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "hasMotion": {
            "type": "boolean",
            "nullable": true
          },
          "noiseLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "illuminanceLux": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "iaqIndex": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "One cloud/platform sensor reading for an IotSpace (a room). The space is\nidentified by its Offision IotSpace id; the platform defaults to the space's\nfirst platform mapping when Server.ExternalInterface.Features.IotSpaceSensor.IotSpaceSensorDataRequest.IotPlatformId is omitted."
      },
      "Server.ExternalInterface.Features.Locker.LockerBoxViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Locker Id",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Locker box name",
            "nullable": true,
            "example": "Locker 1"
          },
          "locker": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Locker.LockerBoxViewModel.LockerViewModel"
          },
          "isDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Locker.LockerBoxViewModel.FloorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Locker.LockerBoxViewModel.LockerViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "floor": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Locker.LockerBoxViewModel.FloorViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.OAuth.OAuthTokenErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "RFC 6749 §5.2 error code, e.g. `invalid_client`.",
            "nullable": true
          },
          "error_description": {
            "type": "string",
            "description": "What went wrong.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.OAuth.OAuthTokenSuccessResponse": {
        "type": "object",
        "properties": {
          "access_token": {
            "type": "string",
            "description": "The signed Bearer token.",
            "nullable": true
          },
          "token_type": {
            "type": "string",
            "description": "Always `Bearer`.",
            "nullable": true
          },
          "expires_in": {
            "type": "integer",
            "description": "Seconds until the token expires.",
            "format": "int32"
          },
          "scope": {
            "type": "string",
            "description": "The granted scopes, space-delimited.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Sensor.EnvironmentSensorDataRequest": {
        "required": [
          "accessId"
        ],
        "type": "object",
        "properties": {
          "accessId": {
            "minLength": 1,
            "type": "string",
            "description": "Access ID of the related Iot Device",
            "example": "4GHUG6"
          },
          "timestamp": {
            "type": "string",
            "description": "Time of the data collected by sensor. If empty, system will use the time data received by the system.",
            "format": "date-time",
            "nullable": true,
            "example": "2022-01-12T12:23:02+08:00"
          },
          "temperature": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "temperatureUnit": {
            "$ref": "#/components/schemas/Server.Domain.Features.InternetOfThings.IotSensorData.TemperatureUnit"
          },
          "humidity": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "humidityUnit": {
            "$ref": "#/components/schemas/Server.Domain.Features.InternetOfThings.IotSensorData.HumidityUnit"
          },
          "hasMotion": {
            "type": "boolean",
            "nullable": true
          },
          "hcho": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "cO2": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "detectedLUX": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "detectedKelvin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "actualLUX": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "actualKelvin": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tvoc": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pM25": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pM10": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "barometricPressure": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "powerConsumption": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "powerConsumptionUnit": {
            "$ref": "#/components/schemas/Server.Domain.Features.InternetOfThings.IotSensorData.PowerConsumptionUnit"
          },
          "vocIndex": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "people": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "noiseLevel": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Sensor.OccupancySensorDataRequest": {
        "required": [
          "accessId"
        ],
        "type": "object",
        "properties": {
          "accessId": {
            "minLength": 1,
            "type": "string",
            "description": "Access ID of the related Iot Device",
            "example": "4GHUG6"
          },
          "timestamp": {
            "type": "string",
            "description": "Time of the data collected by sensor. If empty, system will use the time data received by the system.",
            "format": "date-time",
            "nullable": true,
            "example": "2022-01-12T12:23:02+08:00"
          },
          "hasMotion": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Occupancy sensor Id",
            "format": "int32"
          },
          "accessId": {
            "type": "string",
            "description": "Access Id",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Occupancy sensor name",
            "nullable": true
          },
          "bookableResource": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel.BookableResourceViewModel"
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Is the iot device deleted"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Bookable resource Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Bookable resource name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Service item Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "Service item name",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Products.Service.ServiceItems.ServiceItemTypes"
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Is deleted"
          },
          "actualAssignedUsers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel.UserViewModel"
            },
            "description": "the service staffs assigned for the service item",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel.UserViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "User Id",
            "format": "int32"
          },
          "displayName": {
            "type": "string",
            "description": "User display name",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "description": "User emailAddress",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.SystemViewModel": {
        "required": [
          "companyName",
          "environment",
          "licenseTier",
          "name",
          "version"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string",
            "description": "System name",
            "example": "Offision"
          },
          "version": {
            "minLength": 1,
            "type": "string",
            "description": "Server version number of Offision",
            "example": "2.2.0"
          },
          "environment": {
            "minLength": 1,
            "type": "string",
            "description": "Server Environment, such as:\n- Production\n- Testing\n- Development",
            "example": "Production"
          },
          "companyName": {
            "minLength": 1,
            "type": "string",
            "description": "The license client name of the system.",
            "example": "Happy Ltd."
          },
          "licenseTier": {
            "minLength": 1,
            "type": "string",
            "description": "The license tier of the system, e.g. Standard, Professional, Enterprise.",
            "example": "Professional"
          }
        },
        "additionalProperties": false,
        "description": "return the system information"
      },
      "Server.ExternalInterface.Features.UserGroup.AddUsersRequest": {
        "type": "object",
        "properties": {
          "userGroupId": {
            "type": "integer",
            "description": "The user group ID to add users to",
            "format": "int32",
            "example": 1
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "User IDs to add to the user group",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request to add users to a user group without removing existing members"
      },
      "Server.ExternalInterface.Features.UserGroup.AssignUsersRequest": {
        "type": "object",
        "properties": {
          "userGroupId": {
            "type": "integer",
            "description": "The user group ID to assign users to",
            "format": "int32",
            "example": 1
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "User IDs to assign to the user group",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request to assign users to a user group"
      },
      "Server.ExternalInterface.Features.UserGroup.RemoveUsersRequest": {
        "type": "object",
        "properties": {
          "userGroupId": {
            "type": "integer",
            "description": "The user group ID to remove users from",
            "format": "int32",
            "example": 1
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "description": "User IDs to remove from the user group",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request to remove users from a user group"
      },
      "Server.ExternalInterface.Features.UserGroup.UserGroupViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "User group Id",
            "format": "int32",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "User group name",
            "nullable": true,
            "example": "Engineering"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Permissions assigned to this user group",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "User group information"
      },
      "Server.ExternalInterface.Features.Users.AssignLicenseRequest": {
        "type": "object",
        "properties": {
          "licenseItemType": {
            "type": "string",
            "description": "License item type to assign, e.g. bookingRoomE3, bookingDeskE3",
            "nullable": true,
            "example": "bookingRoomE3"
          }
        },
        "additionalProperties": false,
        "description": "Request to assign a license to a user"
      },
      "Server.ExternalInterface.Features.Users.InviteUserRequest": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "description": "Email address of the user to invite",
            "nullable": true,
            "example": "john.smith@example.com"
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Permissions to assign to the user (optional)",
            "nullable": true
          },
          "sendInvitation": {
            "type": "boolean",
            "description": "Whether to send an invitation email (default: true)",
            "example": true
          }
        },
        "additionalProperties": false,
        "description": "Request to invite a new user"
      },
      "Server.ExternalInterface.Features.Users.RemoveAccessCardRequest": {
        "type": "object",
        "properties": {
          "accessCardType": {
            "type": "string",
            "description": "Access card type: UserCard, UserCard2, or UserCard3",
            "nullable": true,
            "example": "UserCard"
          }
        },
        "additionalProperties": false,
        "description": "Request to remove an access card from a user"
      },
      "Server.ExternalInterface.Features.Users.SetAccessCardRequest": {
        "type": "object",
        "properties": {
          "accessCardType": {
            "type": "string",
            "description": "Access card type: UserCard, UserCard2, or UserCard3",
            "nullable": true,
            "example": "UserCard"
          },
          "cardNumber": {
            "type": "string",
            "description": "Card number to set",
            "nullable": true,
            "example": "ABC123456"
          }
        },
        "additionalProperties": false,
        "description": "Request to set an access card for a user"
      },
      "Server.ExternalInterface.Features.Users.UnAssignLicenseRequest": {
        "type": "object",
        "properties": {
          "licenseItemType": {
            "type": "string",
            "description": "License item type to unassign, e.g. bookingRoomE3, bookingDeskE3",
            "nullable": true,
            "example": "bookingRoomE3"
          }
        },
        "additionalProperties": false,
        "description": "Request to unassign a license from a user"
      },
      "Server.ExternalInterface.Features.Users.UserViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "User Id",
            "format": "int32"
          },
          "displayName": {
            "type": "string",
            "description": "User's display name",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "description": "User's email address",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "description": "User name",
            "nullable": true
          },
          "activateStatus": {
            "$ref": "#/components/schemas/Server.Domain.Features.Users.User.UserActivateStatus"
          },
          "userGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel.UserGroupViewModel"
            },
            "description": "User Groups of the user belong to",
            "nullable": true
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Directly assigned permissions of the user",
            "nullable": true
          },
          "actualPermissions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "All permissions that the user has (including permissions inherited from user groups)",
            "nullable": true
          },
          "licenseItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel.LicenseItemViewModel"
            },
            "description": "License items assigned to the user",
            "nullable": true
          },
          "accessCards": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel.AccessCardViewModel"
            },
            "description": "Access cards assigned to the user",
            "nullable": true
          },
          "isDeleted": {
            "type": "boolean",
            "description": "Is deleted"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Users.UserViewModel.AccessCardViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Access card Id",
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Features.Users.AccessCard.AccessCardTypes"
          },
          "cardNumber": {
            "type": "string",
            "description": "Card number",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Users.UserViewModel.LicenseItemViewModel": {
        "type": "object",
        "properties": {
          "licenseItemType": {
            "$ref": "#/components/schemas/Server.Domain.Billing.Licenses.LicenseItemTypes"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.Users.UserViewModel.UserGroupViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "User group Id",
            "format": "int32"
          },
          "name": {
            "type": "string",
            "description": "User group name",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Appointment Id",
            "nullable": true
          },
          "subject": {
            "type": "string",
            "description": "Appointment Subject",
            "nullable": true
          },
          "isAllDay": {
            "type": "boolean",
            "description": "Is all day appointment"
          },
          "textBody": {
            "type": "string",
            "description": "Appointment Text Body",
            "nullable": true
          },
          "appearanceType": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.Appointments.AppearanceTypes"
          },
          "bookableResources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.BookableResourceViewModel"
            },
            "description": "BookableResources",
            "nullable": true
          },
          "buildings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.BuildingViewModel"
            },
            "description": "Buildings",
            "nullable": true
          },
          "invitingUser": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.InvitingUserViewModel"
          },
          "visitors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.VisitorViewModel"
            },
            "nullable": true
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "booking": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.BookingViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.BookableResourceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "BookableResource Id",
            "format": "int32",
            "example": 3
          },
          "name": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.GraphQLInterfaceBase.I18NText"
            },
            "description": "Bookable resource name",
            "nullable": true,
            "example": "Room 101"
          },
          "type": {
            "$ref": "#/components/schemas/Server.Domain.Features.BookableResources.BookableResources.BookableResourceTypes"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.BookingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Booking Id",
            "format": "int32",
            "example": 3
          },
          "masterBookingId": {
            "type": "integer",
            "description": "Master booking Id, only exists for occurrence and exception",
            "format": "int32",
            "nullable": true,
            "example": 5
          },
          "bookingState": {
            "$ref": "#/components/schemas/Server.Domain.Products.Bookings.Bookings.BookingStates"
          },
          "iCalUid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.BuildingViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Building Id",
            "format": "int32",
            "example": 3
          },
          "name": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.GraphQLInterfaceBase.I18NText"
            },
            "description": "Building name",
            "nullable": true,
            "example": "Building 101"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.InvitingUserViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "User's Id",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "displayName": {
            "type": "string",
            "description": "User's display name",
            "nullable": true,
            "example": "John Doe"
          },
          "emailAddress": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel.VisitorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Visitor's Id",
            "format": "int32",
            "nullable": true,
            "example": 3
          },
          "displayName": {
            "type": "string",
            "description": "Visitor's display name",
            "nullable": true,
            "example": "Jane Smith"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.PhoneNumberViewModel": {
        "type": "object",
        "properties": {
          "dialCode": {
            "type": "string",
            "nullable": true
          },
          "number": {
            "type": "string",
            "nullable": true
          },
          "formattedNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorBadgeViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Visitor badge's ID",
            "format": "int32",
            "example": 1
          },
          "uid": {
            "type": "string",
            "description": "Unique Id of the visitor badge, which is equal to the content of QR code generated by Offision",
            "nullable": true
          },
          "period": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "registrationCode": {
            "type": "string",
            "description": "Visitor badge's registration code, same as the QR code show in visitor's badge",
            "nullable": true,
            "example": "FJUEIW"
          },
          "state": {
            "$ref": "#/components/schemas/Server.Domain.Products.VisitorManagement.VisitorBadge.VisitorBadgeStates"
          },
          "visitor": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorViewModel"
          },
          "checkInDate": {
            "type": "string",
            "description": "visitor's check in time, if visitor didn't check in, will return null",
            "format": "date-time",
            "nullable": true,
            "example": "2021-01-03T12:00:00+08:00"
          },
          "checkOutDate": {
            "type": "string",
            "description": "visitor's check out time, if visitor didn't check out, will return null",
            "format": "date-time",
            "nullable": true,
            "example": "2021-01-03T14:00:00+08:00"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorGateRequest": {
        "required": [
          "code"
        ],
        "type": "object",
        "properties": {
          "code": {
            "minLength": 1,
            "type": "string",
            "description": "Whatever the scanner produced. A badge uid (the content of the QR code Offision generates),\nthe 6-character visitor code printed on the badge, a badge code your own system issued, or\nan 8-digit long-term badge code. You do not have to know which — all four are looked up.",
            "example": "3f7a1c9e-2b44-4d16-9a75-8e0c5d1b6f32"
          },
          "buildingId": {
            "type": "integer",
            "description": "The building this gate stands in. Omit it to skip the location check — a visit for another\nbuilding is then not refused.",
            "format": "int32",
            "nullable": true,
            "example": 3
          }
        },
        "additionalProperties": false,
        "description": "One scan at a gate your own system controls."
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorGateResultViewModel": {
        "type": "object",
        "properties": {
          "isGranted": {
            "type": "boolean",
            "description": "Whether the gate should open. A refused scan is still a 200 — read this, not the status code.",
            "example": true
          },
          "verify": {
            "type": "string",
            "description": "Why. One of: valid, notYetValid, expired, wrongLocation, alreadyCheckedOut,\nwaitingForApproval, rejected, cancelled, notFound.",
            "nullable": true,
            "example": "valid"
          },
          "action": {
            "type": "string",
            "description": "What was written, if anything. One of: none, checkedIn, reCheckedIn, alreadyCheckedIn,\ncheckedOut, alreadyCheckedOut.",
            "nullable": true,
            "example": "checkedIn"
          },
          "visitorBadge": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorBadgeViewModel"
          },
          "visitorRegularBadge": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
          },
          "matchedBuildingId": {
            "type": "integer",
            "description": "The building you asked about, echoed back only when the visit actually covers it.",
            "format": "int32",
            "nullable": true,
            "example": 3
          }
        },
        "additionalProperties": false,
        "description": "The answer to one scan at a gate your own system controls. `isGranted` is the only field a\nbarrier needs; the rest is for the display beside it, and for whatever you reconcile afterwards.\n            \n\n`Verify` and `Action` are typed as strings rather than as their enums on\npurpose. A `[JsonConverter(StringEnumConverter)]` enum serialises as a name at runtime but\nSwashbuckle still documents it as `type: integer` — there is not one string enum in the\nwhole published document — so the reference would tell an integrator to switch on `3` for\na field that actually arrives as `\"expired\"`. Typing them as strings makes the published\ncontract match the wire, and the allowed values are listed on each property."
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeCreateRequest": {
        "type": "object",
        "properties": {
          "visitors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeVisitorRequest"
            },
            "nullable": true
          },
          "period": {
            "$ref": "#/components/schemas/Server.Domain.Core.DateTime.DateTimeOffsetRange"
          },
          "sendNotification": {
            "type": "boolean"
          },
          "sendNotificationAgainIfExists": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeUpdateRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          },
          "period": {
            "$ref": "#/components/schemas/Server.Domain.Core.DateTime.DateTimeOffsetRange"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Visitor regular badge's ID",
            "format": "int32",
            "example": 1
          },
          "uid": {
            "type": "string",
            "description": "Unique Id of the visitor regular badge, which is equal to the content of QR code generated by Offision",
            "nullable": true
          },
          "validityPeriod": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.DateTimeOffsetRangeViewModel"
          },
          "registrationCode": {
            "type": "string",
            "description": "Visitor regular badge's registration code, same as the QR code show in visitor's regular badge",
            "nullable": true,
            "example": "FJUEIW"
          },
          "visitor": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeVisitorRequest": {
        "type": "object",
        "properties": {
          "emailAddress": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "jobTitle": {
            "type": "string",
            "nullable": true
          },
          "department": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.ExternalInterface.Features.VisitorManagement.VisitorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Visitor's id, unique for the system",
            "format": "int32",
            "example": ""
          },
          "emailAddress": {
            "type": "string",
            "description": "Visitor's email address, will be null if visitor didn't input",
            "nullable": true,
            "example": "john.smith@ones.software"
          },
          "displayName": {
            "type": "string",
            "description": "Visitor's display name, will be null if visitor didn't input",
            "nullable": true,
            "example": "John Smith"
          },
          "companyName": {
            "type": "string",
            "description": "Visitor's company name, will be null if visitor didn't input",
            "nullable": true,
            "example": "Acme Corp"
          },
          "jobTitle": {
            "type": "string",
            "description": "Visitor's Job title, will be null if visitor didn't input",
            "nullable": true,
            "example": "Sales manager"
          },
          "department": {
            "type": "string",
            "description": "Visitor's Department, will be null if visitor didn't input",
            "nullable": true,
            "example": "Sales department"
          },
          "status": {
            "$ref": "#/components/schemas/Server.Domain.Products.VisitorManagement.VisitorBadge.VisitorRegularBadgeStatus"
          },
          "phoneNumber": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.PhoneNumberViewModel"
          },
          "mobileNumber": {
            "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.PhoneNumberViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.GraphQLInterfaceBase.I18NText": {
        "type": "object",
        "properties": {
          "language": {
            "type": "string",
            "nullable": true
          },
          "text": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.IdsRequest": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationMetaDataViewModel": {
        "type": "object",
        "properties": {
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "row": {
            "type": "integer",
            "format": "int32"
          },
          "page": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.BookableResource.BookableResourceViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.AppointmentServiceItemViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Booking.ResourceAppointmentViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Building.BuildingViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Building.BuildingViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.EPaperController.EPaperControllerViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Locker.LockerBoxViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Locker.LockerBoxViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Sensor.OccupancySensorViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.ServiceItem.ServiceItemViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.UserGroup.UserGroupViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.UserGroup.UserGroupViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.Users.UserViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.Users.UserViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitingAppointment.VisitingAppointmentViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.VisitorManagement.VisitorBadgeViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorBadgeViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.PaginationViewModel`1[[Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel, Server.ExternalInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Server.ExternalInterface.Features.VisitorManagement.VisitorRegularBadgeViewModel"
            },
            "nullable": true
          },
          "metaData": {
            "$ref": "#/components/schemas/Server.InterfaceBase.PaginationMetaDataViewModel"
          }
        },
        "additionalProperties": false
      },
      "Server.InterfaceBase.SuccessResponse": {
        "type": "object",
        "properties": {
          "isSuccess": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Server.Radius.Domain.RadiusAuthFlow": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "Server.Radius.Domain.RadiusAuthRequest": {
        "required": [
          "transportType",
          "username"
        ],
        "type": "object",
        "properties": {
          "username": {
            "minLength": 1,
            "type": "string"
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "encryptedPassword": {
            "type": "string",
            "nullable": true
          },
          "requestAuthenticator": {
            "type": "string",
            "nullable": true
          },
          "nasIdentifier": {
            "type": "string",
            "nullable": true
          },
          "calledStationId": {
            "type": "string",
            "nullable": true
          },
          "callingStationId": {
            "type": "string",
            "nullable": true
          },
          "transportType": {
            "$ref": "#/components/schemas/Server.Radius.Domain.RadiusTransportType"
          },
          "authFlow": {
            "$ref": "#/components/schemas/Server.Radius.Domain.RadiusAuthFlow"
          },
          "msChapV2AuthenticatorChallenge": {
            "type": "string",
            "nullable": true
          },
          "msChapV2PeerChallenge": {
            "type": "string",
            "nullable": true
          },
          "msChapV2NtResponse": {
            "type": "string",
            "nullable": true
          },
          "msChapV2InnerUsername": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.Radius.Domain.RadiusAuthResponse": {
        "type": "object",
        "properties": {
          "authenticated": {
            "type": "boolean"
          },
          "radiusExtensionSettingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "visitorId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "visitorName": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "sessionTimeoutSeconds": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "sharedSecret": {
            "type": "string",
            "nullable": true
          },
          "replyMessage": {
            "type": "string",
            "nullable": true
          },
          "vlanId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "msChapV2AuthenticatorResponse": {
            "type": "string",
            "nullable": true
          },
          "msChapV2SendKey": {
            "type": "string",
            "nullable": true
          },
          "msChapV2RecvKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.Radius.Domain.RadiusSharedSecretRequest": {
        "type": "object",
        "properties": {
          "nasIdentifier": {
            "type": "string",
            "nullable": true
          },
          "calledStationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.Radius.Domain.RadiusSharedSecretResponse": {
        "type": "object",
        "properties": {
          "radiusExtensionSettingId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "nullable": true
          },
          "sharedSecret": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Server.Radius.Domain.RadiusTransportType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "AccessToken": {
        "type": "http",
        "description": "Static API access token created in Management console → Integration → API authentication. Send it in the Authorization header (with or without the Bearer prefix).",
        "scheme": "bearer"
      },
      "OAuth2": {
        "type": "oauth2",
        "description": "OAuth2 client_credentials grant (RFC 6749). Exchange the integration's client_id / client_secret at the token endpoint for a short-lived Bearer token. Scopes are per-module: \"{module}.read\" allows the module's GET endpoints, \"{module}.readwrite\" all of its endpoints; \"all.*\" spans every module. Multiple scopes are space-delimited.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "/api/external/oauth/token",
            "scopes": {
              "all.read": "Read-only access to every module",
              "all.readwrite": "Full access to every module",
              "analyze.read": "Analytics (read)",
              "bookableResource.read": "Bookable resources, access keys, player content (read)",
              "bookableResource.readwrite": "Bookable resources, access keys, player content",
              "booking.read": "Bookings (read)",
              "booking.readwrite": "Bookings",
              "building.read": "Buildings (read)",
              "dashboard.read": "Dashboard statistics (read)",
              "ePaper.read": "E-paper controllers (read)",
              "ePaper.readwrite": "E-paper controllers",
              "emergency.readwrite": "Emergency plan activation",
              "locker.read": "Locker boxes (read)",
              "milesight.readwrite": "Milesight LoRaWAN gateway uplink ingestion",
              "sensor.read": "Environment / occupancy / IoT space sensors (read)",
              "sensor.readwrite": "Environment / occupancy / IoT space sensors",
              "serviceItem.read": "Service items (read)",
              "system.read": "System information (read)",
              "user.read": "Users (read)",
              "user.readwrite": "Users",
              "userGroup.read": "User groups (read)",
              "userGroup.readwrite": "User groups",
              "visitor.read": "Visitor management + visiting appointments (read)",
              "visitor.readwrite": "Visitor management + visiting appointments"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Analyze",
      "description": "Analyze booking usage and occupancy data, grouped by bookable resource or time period."
    },
    {
      "name": "BookableResource",
      "description": "Manage bookable resources, including search, retrieval, and booking change subscriptions."
    },
    {
      "name": "BookableResourceAccessKey",
      "description": "Manage bookable resource access keys, including search and change subscriptions."
    },
    {
      "name": "BookableResourcePlayerContent",
      "description": "Retrieve bookable resource player content for display panels, including current and upcoming appointments."
    },
    {
      "name": "Booking",
      "description": "Manage bookings and resource appointments, including search, export, and creation."
    },
    {
      "name": "Building",
      "description": "Manage buildings and floors, including search and retrieval by id."
    },
    {
      "name": "Dashboard",
      "description": "Retrieve dashboard analytics data, such as daily visitor badge statistics."
    },
    {
      "name": "Emergency",
      "description": "Turn a pre-configured emergency plan-scope on or off. Intended for building safety systems\n(e.g. a fire-alarm panel) that need to raise/clear an emergency without any per-call configuration."
    },
    {
      "name": "EnvironmentSensor",
      "description": "Manage environment sensors and upload sensor data such as temperature, humidity, and air quality."
    },
    {
      "name": "EPaperController",
      "description": "Manage e-paper controllers and tags, including search and tag status updates."
    },
    {
      "name": "IotSpaceSensor",
      "description": "Upload cloud/platform sensor readings for an IotSpace (a room). Mirrors the\ndevice-level environment-sensor API, but keyed by the Offision IotSpace id.\nCaptured readings feed booking analytics (the per-booking sensor snapshot)."
    },
    {
      "name": "Locker",
      "description": "Manage locker boxes, including search and retrieval by id."
    },
    {
      "name": "Milesight",
      "description": "Ingestion endpoints for the Milesight LoRaWAN gateway's embedded network server (UG65 family,\nfirmware ≥ 60.0.0.50). The gateway pushes each event kind to its own configured URL with a static\n`Authorization` header — an AccessToken-type external authentication setting scoped to\n`milesight.readwrite`. The payload is the payload codec's decoded output with the identity\nmetadata (`devEUI`/`deviceName`/`applicationID`) merged FLAT into it; the body\ncarries no event-type discriminator, so the PATH is the discriminator (uplink / join / ack /\nerror). Devices auto-register from their first push.\n            \nEvery semantically-bad push is answered 200 after logging: the gateway retries non-2xx\ndeliveries and flips the destination's Forwarding Status to Inactive — a poison payload (e.g. a\npre-60.0.0.50 gateway that sends no devEUI) must never turn into a retry loop."
    },
    {
      "name": "OAuthToken",
      "description": "OAuth2 token endpoint (RFC 6749 client_credentials grant) for external API integrations.\nExchange a client_id / client_secret pair for a short-lived Bearer access token whose\nscope (read / readwrite) reflects the integration's configured permission."
    },
    {
      "name": "OccupancySensor",
      "description": "Manage occupancy sensors, including CRUD operations and sensor data upload."
    },
    {
      "name": "RadiusAuth"
    },
    {
      "name": "ServiceItem",
      "description": "Manage service items, including search and retrieval by id."
    },
    {
      "name": "System",
      "description": "Retrieve Offision system information, such as version, environment, and license details."
    },
    {
      "name": "User",
      "description": "Manage users, including search, invitation, activation, deactivation, licensing, and deletion."
    },
    {
      "name": "UserGroup",
      "description": "APIs for managing user groups, including search and user assignment."
    },
    {
      "name": "VisitingAppointment",
      "description": "Search visiting appointments, including filtering by visitor, building, and booking state."
    },
    {
      "name": "VisitorManagement",
      "description": "Manage visitor badges and long-term (regular) badges, including search, creation, update, and deletion."
    },
    {
      "name": "WorkflowWebhook",
      "description": "Workflow webhook endpoint for receiving external HTTP trigger events.\nAuthentication is handled per-trigger via the node configuration, not via the standard external API auth."
    }
  ]
}
