{
    "openapi": "3.0.3",
    "info": {
        "title": "Elements API",
        "version": "2026-12-02",
        "description": "# Overview\n\nREST API for LenelS2 Elements Cloud-based Access Control and Video Management System. Access to this API is available to Elements customers and authorized partners.\n\n## Specifications\n\nAPI specifications are published for OpenAPI 3.0 and Swagger 2.0 in YAML and JSON formats:\n- [OpenAPI 3.0 YAML](https://api.elementssecure.com/openapi.yaml)\n- [OpenAPI 3.0 JSON](https://api.elementssecure.com/openapi.json)\n- [Swagger 2.0 YAML](https://api.elementssecure.com/swagger.yaml)\n- [Swagger 2.0 JSON](https://api.elementssecure.com/swagger.json)\n\n## Authorization\n\nPass an `api-key` header with each request. API keys are managed in the Marketplace of the Elements portal.\n\n## Rate Limits\n\nAPI callers are limited to two requests per second per subscription by default. Rate limits are subject to change at any time.\n\nPlease design your integration to handle `429 Too Many Requests` responses and respect `retry-after: <delay-seconds>` headers.\n\n## Filtering\n\nAPIs that support filtering use the OData filter syntax.\n\nAllowed operators are listed in brackets (e.g., [eq, ne]). When constructing queries, omit the brackets and use the operators directly. See examples below.\n\n## Mobile Credential Provisioning URLs\n\nThe Elements API supports `shouldReturnProvisioningUrl: true` on credential creation and reissue.\nCreation returns a `provisioningUrl` alongside the existing credential fields with HTTP `201`; reissue returns it with HTTP `200`, instead of sending an invitation email.\nFor example:\n\n```json\n{\n  \"type\": \"BLUE_DIAMOND_NFC\",\n  \"shouldReturnProvisioningUrl\": true\n}\n```\n\n- Only `BLUE_DIAMOND_NFC` is supported in URL mode. A `credentialBundleId` may be used instead of `type` if the bundle is NFC; other types return `400`.\n- Email is optional in URL mode. If provided, it must be valid, but no invitation email is sent.\n- Omitting `shouldReturnProvisioningUrl` or setting it to `false` preserves email delivery and requires email. The response does not include `provisioningUrl`.\n- This option is supported on `POST /v1/people/{id}/credentials/{credentialId}/reissue` as well. The credential must be `BLUE_DIAMOND_NFC`; email is optional in URL mode and otherwise remains required.\n- Treat the URL as sensitive and distribute it securely. Preserve the entire URL, including the fragment after `#`. Existing invitation expiry and redemption rules apply.\n- If creation or reissue succeeds but the provisioning URL is missing from the downstream response, the API records the corresponding audit and returns `500`. The credential remains created or reissued; check its current state before retrying to avoid duplicates.\n- The legacy `/v1/people/{id}/credentials/blueDiamond` endpoint remains email-only. This option is not exposed in the UI.\n\n## Paging\n\nMost GET requests support paging, a mechanism used to retrieve data in chunks or \"pages\" rather than all at once.\nPaging allows you to specify the number of items to return per request (using the \"$top\" parameter) and navigate through the dataset using a cursor (the \"after\" parameter).\n\n### How Paging Works\n* When a request is sent, if \"$top\" is not provided, the returned list defaults to 25 items.\n* If there are more items to return, the \"after\" response field will contain a string value.\n* To retrieve the next page of items, send a GET request with the \"after\" query parameter set to the \"after\" value from the previous response.\n* If there are no more items to return, the \"after\" response field will be empty.\n\n### Paging Examples\n\n#### Over 25 Items\nRequest: GET https://api.elementssecure.com/v1/events <br />\nResponse:\n```json\n{\n  \"data\": [{event_0},...,{event_24}],\n  \"after\": \"eyJfaWQiOiI2NjQyNWE0NDA3MmFjMzA5Njg4NzQ5NGEiLCJldmVudFByb2Nlc3NlZFRpbWVzdGFtcCI6MTcxNTYyNDUxMzk4OH0=\"\n}\n```\nRequest: GET https://api.elementssecure.com/v1/events?after=eyJfaWQiOiI2NjQyNWE0NDA3MmFjMzA5Njg4NzQ5NGEiLCJldmVudFByb2Nlc3NlZFRpbWVzdGFtcCI6MTcxNTYyNDUxMzk4OH0= <br />\nResponse:\n```json\n{\n  \"data\": [{event_25},...,{event_44}],\n  \"after\": \"\"\n}\n```\n\n#### Less Than 25 Items\nRequest: GET https://api.elementssecure.com/v1/people/groups <br />\nResponse:\n```json\n{\n    \"data\": [{peopleGroup_0}, ..., {peopleGroup_18}],\n    \"after\": \"\"\n}\n```\n\n#### Over \"$top\" Items\nRequest: GET https://api.elementssecure.com/v1/spaces?$top=10 <br />\nResponse:\n```json\n{\n    \"data\": [{space_0}, ..., {space_9}],\n    \"after\": \"eyJfaWQiOiI2NzhhNjlkYTc3ZjZlMTEyOGM0OWE1NGYiLCJfc29ydEZpZWxkIjoiVCB0ICJ9\"\n}\n```\nRequest: GET https://api.elementssecure.com/v1/spaces?$top=10&after=eyJfaWQiOiI2NzhhNjlkYTc3ZjZlMTEyOGM0OWE1NGYiLCJfc29ydEZpZWxkIjoiVCB0ICJ9 <br />\nResponse:\n```json\n{\n    \"data\": [{space_10}, ..., {space_19}],\n    \"after\": \"eyJfaWQiOiI2N2Q5YjAwMjRlODI2NzliNDNmM2M0MTMiLCJfc29ydEZpZWxkIjoiVDIgdDIgIn0=\"\n}\n```\n\n## Legal\n\n- [Privacy Choices](https://hon-opcenter.my.salesforce-sites.com/PrivacyInformationRequestForm)\n- [Cookie Notice](https://www.honeywell.com/us/en/cookie-notice)\n- [Terms & Conditions](https://www.honeywell.com/us/en/terms-and-conditions)\n- [Privacy Statement](https://www.honeywell.com/privacy-statement)\n\nCopyright &copy; 2026 Honeywell International Inc.\n",
        "license": {
            "name": "© Honeywell International Inc."
        }
    },
    "tags": [
        {
            "name": "Analytics",
            "description": "Get individual analytics for event counts, device activity, and device count."
        },
        {
            "name": "Audit Records",
            "description": "List audit records."
        },
        {
            "name": "Automations",
            "description": "List, get, execute, enable, and disable automations."
        },
        {
            "name": "Card Formats",
            "description": "List, get, add, update, and delete card formats and list card format templates."
        },
        {
            "name": "Controller Rules",
            "description": "List, get, and execute controller rules."
        },
        {
            "name": "Customers",
            "description": "Get information about the current customer."
        },
        {
            "name": "Devices",
            "description": "List and get devices, and execute device commands."
        },
        {
            "name": "Events",
            "description": "List, get, and set response status and notes for events."
        },
        {
            "name": "Guest Passes",
            "description": "List, get, add, update, reset, delete, and share guest passes."
        },
        {
            "name": "Holidays",
            "description": "List, get, add, update, and delete holidays."
        },
        {
            "name": "Lockdowns",
            "description": "List, get, start, and stop lockdowns."
        },
        {
            "name": "People, Credentials, PINs, Photos, Groups",
            "description": "Manage individuals who interact with the physical security system. Issue credentials and PINs. Assign groups to provide scheduled access to spaces."
        },
        {
            "name": "Reports",
            "description": "Generate new reports, list reports, and retrieve temporary download links for reports."
        },
        {
            "name": "Schedules",
            "description": "List, get, add, update, and delete schedules."
        },
        {
            "name": "Search",
            "description": "Search across various entities."
        },
        {
            "name": "Sites",
            "description": "List, get, add, update, and delete sites."
        },
        {
            "name": "Spaces",
            "description": "List, get, add, update, and delete spaces."
        },
        {
            "name": "Subscriptions",
            "description": "List, get, and regenerate keys for API subscriptions."
        },
        {
            "name": "Video Clips",
            "description": "Manage video clips and their shared public links."
        }
    ],
    "paths": {
        "/v1/people": {
            "get": {
                "summary": "List people",
                "description": "#### Filtering fields and operators\n* hasSpaces [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasSpaces eq true`\n* hasCredentials [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasCredentials eq false`\n* role [eq]\n    * Supported values: `Admin`, `Operator`, `Monitor`, `Installer`, `Auditor`\n    * Example: `role eq 'Operator'`\n* isSiteUser [eq]\n    * Supported values: `true` | `false`\n    * Example: `isSiteUser eq true`\n* siteId [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it includes people assigned to the global site (no site assignment).\n    * Example: `siteId eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* externallyManaged [eq]\n    * Supported values: `true` | `false`\n    * Example: `externallyManaged eq true`\n* userId [eq, ne]\n    * Supported values: `null`\n    * Example: `userId eq null`\n* invitation [eq]\n    * Supported values: `true` | `false`\n    * Example: `invitation eq true`\n* search [eq]\n    * Supported values: string (1-500 chars). Performs case-insensitive substring match across\n        first name, last name, email, externalId, username, and custom fields.\n    * Example: `search eq 'smith'`\n* searchFirstName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchFirstName eq 'jo'`\n* firstName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `firstName eq 'John'`\n* searchLastName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchLastName eq 'smi'`\n* lastName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `lastName eq 'Smith'`\n* searchEmail [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchEmail eq '@example.com'`\n* email [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `email eq 'john.smith@example.com'`\n* searchExternalId [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchExternalId eq 'EMP'`\n* personId [eq, ne, in]\n  * Supported values: UUID\n    * Example: `personId in ('c33d7653-8cf8-4be2-99f8-7f2ad7250559','a307242e-b008-4c19-9dd0-24ae67545313')`\n* loginType [eq]\n    * Supported values: `local` | `sso`\n    * Example: `loginType eq 'sso'`\n* login [eq]\n    * Supported values: `hasLogin`, `noLogin`, `invitationSent`, `internalLogin`, `externalLogin`\n    * Example: `login eq 'hasLogin'`\n* hasEmail [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasEmail eq true`\n* hasExternalId [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasExternalId eq false`\n* searchCustomFields [eq]\n  * Supported values: string (1-500 chars)\n    * Example: `searchCustomFields eq 'BadgeType'`\n* permission [eq]\n    * Supported values: permission name string. Common values include `Identity`, `ViewPII`,\n        `ManageAccess`, `ManagePeople`, `Command`, `Monitor`, `ManageDevices`,\n        `ManageSystem`, `AuditReports`, `ExternalManagement`, `ViewVideo`, `ManageVideo`,\n        `ManageReports`.\n    * Example: `permission eq 'ManagePeople'`\n* isActive [eq]\n    * Supported values: `true` | `false`\n    * Example: `isActive eq true`\n* userName [eq]\n  * Supported values: string (1-500 chars)\n    * Example: `userName eq 'jsmith'`\n* externalId [eq, in]\n  * Supported values: string (1-500 chars)\n    * Example: `externalId in ('EMP001','EMP002','EMP003')`\n* spaceId [eq, in]\n  * Supported values: UUID\n    * Example: `spaceId eq '0ef28411-3022-430f-a7e9-12612a47b76a'`\n* groupId [eq, in]\n  * Supported values: UUID\n    * Example: `groupId in ('2692764a-fea7-4aee-8dab-b22dc3c57e91')`\n* lastModified [gt, lt]\n    * Supported values: ISO 8601 UTC timestamp (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds)\n    * Example: `lastModified lt '2026-01-04T10:02:29Z'`\n* customFields > custom_[identifier] [eq, ne, in] (text type) | [gt, ge, lt, le] (date type)\n    * Supported values: string (1-500 chars) for text fields; ISO 8601 UTC date format for date\n        fields (e.g., `YYYY-MM-DDTHH:mm:ssZ`). Text field matching is case-insensitive. Date field\n        comparisons ignore the time portion.\n    * Note: The filter requires the `custom_` prefix followed by the field identifier (e.g., `custom_department` or `custom_joinDate`).\n    * Examples: `custom_department eq 'Engineering'` or `custom_joinDate ge '2020-01-01T00:00:00Z'`\n\n#### Filtering examples\n* `(hasSpaces eq true) and (search eq 'name') and\n    (personId eq 'a307242e-b008-4c19-9dd0-24ae67545313') and (loginType eq 'sso') and\n    (externalId in ('EMP001','EMP002','EMP003'))`\n\n#### Query parameters (non-OData)\n* includeCredentials (true|false) - Include credential information in the response\n* includeSpaces (true|false) - Include space information in the response\n* credentialFilter - Filter people by credentials using an OData-style filter expression.\n  * Supported credential filters, operators, and values:\n    * personId [eq, ne, in]\n      * Supported values: UUID\n            * Example: `personId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91'`\n    * type [eq, ne, in]\n            * Supported values: `BLUE_DIAMOND`, `BLUE_DIAMOND_INSTALL`, `PHYSICAL`, `EXTERNAL`, `PIN`\n            * Example: `type in ('PHYSICAL','BLUE_DIAMOND')`\n    * badgeId [eq, ne]\n      * Supported values: string (1-50 chars)\n            * Example: `badgeId eq '529'`\n    * credentialStatus [eq, ne]\n            * Supported values: `Active`, `Damaged`, `Other`, `Active Updated`, `Lost`, `Stolen`\n            * Example: `credentialStatus eq 'Active'`\n    * label [eq]\n      * Supported values: string (1-500 chars)\n            * Example: `label eq 'Front Desk Badge'`\n    * lastActivated [eq, gt, lt, ge, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2020-01-01T00:00:00.000Z`, milliseconds optional)\n            * Example: `lastActivated ge 2020-01-01T00:00:00.000Z`\n    * expirationTimestamp [eq, gt, lt, ge, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2025-12-24T19:31:03.737Z`) or an epoch timestamp (milliseconds)\n            * Example: `expirationTimestamp lt 2025-12-24T19:31:03.737Z`\n    * created [gt, ge, lt, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2020-01-01T00:00:00.000Z`)\n            * Example: `created gt 2025-12-24T19:31:03.737Z`\n    * lastModified [gt, ge, lt, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2026-01-01T00:00:00.000Z`)\n            * Example: `lastModified gt 2025-12-24T19:31:03.737Z`\n    * Example (combined): `credentialStatus eq 'Active' and type eq 'PHYSICAL' and lastActivated ge 2020-01-01T00:00:00.000Z`\n* sortBy - Field to sort results by\n* sortDirection - Sort direction",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 200,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Whether to include the credentials assigned to the person in the response.",
                        "name": "includeCredentials",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "Whether to include the spaces assigned to the person in the response.",
                        "name": "includeSpaces",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "Filter to be applied based on credential.",
                        "name": "credentialFilter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Column sort by to be applied.",
                        "name": "sortBy",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "firstName",
                                "lastName",
                                "externalId",
                                "groups",
                                "totalGroups",
                                "credentials",
                                "lastModified",
                                "created"
                            ]
                        }
                    },
                    {
                        "description": "Column sort direction to be applied.",
                        "name": "sortDirection",
                        "in": "query",
                        "schema": {
                            "type": "number",
                            "enum": [
                                1,
                                -1
                            ]
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the person.",
                                                        "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "externalId": {
                                                        "type": "string",
                                                        "description": "The external ID of the person.",
                                                        "example": "12345",
                                                        "minLength": 1,
                                                        "maxLength": 500
                                                    },
                                                    "externallyManaged": {
                                                        "type": "boolean",
                                                        "description": "Whether the person is externally managed.",
                                                        "example": true
                                                    },
                                                    "externallyUpdated": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time when the person was updated externally.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "photoExternallyUpdated": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time when the person's photo was updated externally.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the person is active.",
                                                        "example": true
                                                    },
                                                    "firstName": {
                                                        "type": "string",
                                                        "description": "The first name of the person.",
                                                        "example": "John",
                                                        "maxLength": 500
                                                    },
                                                    "lastName": {
                                                        "type": "string",
                                                        "description": "The last name of the person.",
                                                        "example": "Doe",
                                                        "maxLength": 500
                                                    },
                                                    "email": {
                                                        "type": "string",
                                                        "description": "The email address of the person.",
                                                        "example": "example@email.com",
                                                        "x-format": {
                                                            "email": {
                                                                "tlds": false
                                                            }
                                                        }
                                                    },
                                                    "useExtendedTimes": {
                                                        "type": "boolean",
                                                        "description": "Determines whether the person will use extended strike times.",
                                                        "example": false
                                                    },
                                                    "hasCredentials": {
                                                        "type": "boolean",
                                                        "description": "Whether the person has credentials.",
                                                        "example": false
                                                    },
                                                    "hasPhoto": {
                                                        "type": "boolean",
                                                        "description": "Whether the person has a photo.",
                                                        "example": false
                                                    },
                                                    "hasPin": {
                                                        "type": "boolean",
                                                        "description": "Whether the person has a PIN assigned.",
                                                        "example": false
                                                    },
                                                    "hasUserAccount": {
                                                        "type": "boolean",
                                                        "description": "Whether the person has a user account.",
                                                        "example": false
                                                    },
                                                    "groups": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of a group.",
                                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "Name of the group assigned to person",
                                                                    "example": "Managers"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "temporaryGroups": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "description": "A temporary group assigned to the person.",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of a group.",
                                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "Name of the group assigned to person",
                                                                    "example": "Managers"
                                                                },
                                                                "startDate": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The start date of the temporary group assignment."
                                                                },
                                                                "endDate": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The end date of the temporary group assignment."
                                                                },
                                                                "active": {
                                                                    "type": "boolean",
                                                                    "description": "Whether the temporary group assignment is currently active."
                                                                },
                                                                "expired": {
                                                                    "type": "boolean",
                                                                    "description": "Whether the temporary group assignment has expired."
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "role": {
                                                        "type": "string",
                                                        "description": "The role assigned to the person."
                                                    },
                                                    "roleAssignments": {
                                                        "type": "array",
                                                        "description": "Role assignments for the person.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "role": {
                                                                    "type": "string"
                                                                },
                                                                "siteIds": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string",
                                                                        "x-format": {
                                                                            "guid": true
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "roleInfo": {
                                                        "type": "object",
                                                        "description": "Additional role information for the person."
                                                    },
                                                    "isGlobalUser": {
                                                        "type": "boolean",
                                                        "description": "Whether the person has no site-specific role restrictions."
                                                    },
                                                    "hasUnauthorizedSites": {
                                                        "type": "boolean",
                                                        "description": "Whether the requesting user lacks access to sites assigned to this person."
                                                    },
                                                    "customFields": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of a custom field for a person.",
                                                                    "example": "df8ebe38-5395-44df-8efc-f37de32961f2",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "identifier": {
                                                                    "type": "string",
                                                                    "description": "The identifier of a custom field.",
                                                                    "example": "department",
                                                                    "maxLength": 100,
                                                                    "pattern": "^[a-zA-Z0-9_]{1,50}$"
                                                                },
                                                                "value": {
                                                                    "type": "string",
                                                                    "description": "The value of a custom field",
                                                                    "example": "Sales"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The created time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "photoLastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The photo last modified time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "spaces": {
                                                        "type": "array",
                                                        "description": "Spaces assigned to the person. Returned when includeSpaces=true.",
                                                        "items": {
                                                            "type": "object",
                                                            "description": "A space assigned to the person.",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the space",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The name of the space"
                                                                },
                                                                "type": {
                                                                    "type": "string",
                                                                    "description": "The type of the space"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "totalSpaces": {
                                                        "type": "integer",
                                                        "description": "Total number of spaces assigned to the person. Returned when includeSpaces=true."
                                                    },
                                                    "credentials": {
                                                        "type": "array",
                                                        "description": "The credentials assigned to the person.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the credential.",
                                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "externalId": {
                                                                    "type": "string",
                                                                    "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                                                    "example": "BADGE-001",
                                                                    "minLength": 1,
                                                                    "maxLength": 100
                                                                },
                                                                "personExternalId": {
                                                                    "type": "string",
                                                                    "description": "The external ID of the person.",
                                                                    "example": "12345",
                                                                    "minLength": 1,
                                                                    "maxLength": 500
                                                                },
                                                                "type": {
                                                                    "type": "string",
                                                                    "description": "The type of the credential.",
                                                                    "enum": [
                                                                        "PHYSICAL",
                                                                        "PIN",
                                                                        "EXTERNAL",
                                                                        "BLUE_DIAMOND",
                                                                        "BLUE_DIAMOND_NFC",
                                                                        "BLUE_DIAMOND_INSTALL"
                                                                    ]
                                                                },
                                                                "label": {
                                                                    "type": "string",
                                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                                    "example": "My Badge",
                                                                    "maxLength": 500,
                                                                    "pattern": "^(?!\\s*$).+"
                                                                },
                                                                "badgeId": {
                                                                    "type": "string",
                                                                    "description": "The badge ID of the credential",
                                                                    "example": "12345",
                                                                    "pattern": "^[0-9]{1,17}$"
                                                                },
                                                                "credentialStatus": {
                                                                    "type": "string",
                                                                    "description": "The value of the credential status.",
                                                                    "example": "Active",
                                                                    "enum": [
                                                                        "Active",
                                                                        "Lost",
                                                                        "Stolen",
                                                                        "Terminated",
                                                                        "Damaged",
                                                                        "Other"
                                                                    ]
                                                                },
                                                                "walletType": {
                                                                    "type": "string",
                                                                    "description": "The wallet ecosystem associated with the credential.",
                                                                    "enum": [
                                                                        "NONE",
                                                                        "APPLE",
                                                                        "GOOGLE"
                                                                    ]
                                                                },
                                                                "walletStatus": {
                                                                    "type": "string",
                                                                    "description": "The wallet invitation or provisioning status associated with the credential.",
                                                                    "enum": [
                                                                        "INVITATION_PENDING",
                                                                        "INVITATION_EXPIRED",
                                                                        "ACTIVE",
                                                                        "SUSPENDED",
                                                                        "REMOVED",
                                                                        "FAILURE"
                                                                    ]
                                                                },
                                                                "lastActivated": {
                                                                    "type": "integer",
                                                                    "description": "The last time the credential was activated.",
                                                                    "example": "2025-03-26T13:51:55.474Z"
                                                                },
                                                                "lastDeactivated": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The last time the credential was deactivated.",
                                                                    "example": "2025-03-26T13:51:55.474Z"
                                                                },
                                                                "expirationTimestamp": {
                                                                    "type": "integer",
                                                                    "description": "Each controller will expire the credential at this time in its own time zone.",
                                                                    "example": "1633423600000"
                                                                },
                                                                "created": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The time the credential was created",
                                                                    "example": "2025-03-26T13:51:55.474Z"
                                                                },
                                                                "lastModified": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The last time the credential was modified",
                                                                    "example": "2025-03-26T13:51:55.474Z"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the sites the person belongs to. Only included for multi-site deployments.",
                                                        "items": {
                                                            "type": "string",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "externalBadgesIds": {
                                                        "type": "array",
                                                        "description": "The external badge IDs associated with the person. Only included when getting externally managed people.",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The badge ID of the credential",
                                                            "example": "12345",
                                                            "pattern": "^[0-9]{1,17}$"
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "externalId",
                                                    "active",
                                                    "firstName",
                                                    "lastName",
                                                    "email",
                                                    "useExtendedTimes",
                                                    "hasCredentials",
                                                    "hasPhoto",
                                                    "hasPin",
                                                    "hasUserAccount",
                                                    "created",
                                                    "lastModified"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create a person",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "externalId": {
                                        "type": "string",
                                        "description": "The external ID of the person.",
                                        "example": "12345",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "externallyManaged": {
                                        "type": "boolean",
                                        "description": "Whether the person is externally managed.",
                                        "example": true
                                    },
                                    "externallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the person is active.",
                                        "example": true
                                    },
                                    "firstName": {
                                        "type": "string",
                                        "description": "The first name of the person.",
                                        "example": "John",
                                        "maxLength": 500
                                    },
                                    "lastName": {
                                        "type": "string",
                                        "description": "The last name of the person.",
                                        "example": "Doe",
                                        "maxLength": 500
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address of the person.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "useExtendedTimes": {
                                        "type": "boolean",
                                        "description": "Determines whether the person will use extended strike times.",
                                        "example": false
                                    },
                                    "groups": {
                                        "type": "array",
                                        "description": "List of group IDs assigned to the person.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of a group.",
                                            "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "temporaryGroups": {
                                        "type": "array",
                                        "description": "List of temporary group assignments for the person.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "peopleGroupId": {
                                                    "type": "string",
                                                    "description": "The unique ID of a group.",
                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "description": "The start date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "description": "The end date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "peopleGroupId"
                                            ]
                                        }
                                    },
                                    "credentials": {
                                        "type": "array",
                                        "x-constraint": {},
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the credential.",
                                                    "enum": [
                                                        "PHYSICAL",
                                                        "PIN",
                                                        "EXTERNAL",
                                                        "BLUE_DIAMOND",
                                                        "BLUE_DIAMOND_NFC",
                                                        "BLUE_DIAMOND_INSTALL"
                                                    ]
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "badgeId": {
                                                    "type": "string",
                                                    "description": "The badge ID of a physical credential.",
                                                    "example": "12345",
                                                    "pattern": "^[0-9]{1,17}$"
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "description": "The email to send the BlueDiamond credential to.",
                                                    "example": "example@email.com",
                                                    "x-format": {
                                                        "email": {
                                                            "tlds": false
                                                        }
                                                    }
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "credentialStatusReason": {
                                                    "type": "string",
                                                    "description": "The reason for the credential status.",
                                                    "example": "The credential was received."
                                                },
                                                "expirationTimestamp": {
                                                    "type": "integer",
                                                    "description": "Each controller will expire the credential at this time in its own time zone.",
                                                    "example": "1633423600000"
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "email",
                                                "email"
                                            ]
                                        }
                                    },
                                    "setPin": {
                                        "type": "object",
                                        "properties": {
                                            "value": {
                                                "type": "string",
                                                "description": "The PIN value to set.",
                                                "example": "1234",
                                                "pattern": "^([0-9]{4}|[0-9]{6}|[0-9]{9})$"
                                            },
                                            "generate": {
                                                "type": "boolean",
                                                "description": "Generate a new PIN value."
                                            }
                                        }
                                    },
                                    "sendPinEmail": {
                                        "type": "string",
                                        "description": "The email address to send the PIN to after creation.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "externalId",
                                    "firstName",
                                    "lastName"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "List of group IDs assigned to the person.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "List of temporary group assignments for the person.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "207": {
                        "description": "Multi-Status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "List of group IDs assigned to the person.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "List of temporary group assignments for the person.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "action": {
                                                        "type": "string",
                                                        "description": "The action that was attempted.",
                                                        "example": "add_person_to_groups"
                                                    },
                                                    "errorCode": {
                                                        "type": "string",
                                                        "description": "The error code.",
                                                        "example": "not_found"
                                                    },
                                                    "error": {
                                                        "type": "string",
                                                        "description": "Person group was not found."
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/people": {
            "post": {
                "summary": "Create a person with custom fields",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "externallyManaged": {
                                        "type": "boolean",
                                        "description": "Whether the person is externally managed.",
                                        "example": true
                                    },
                                    "externalId": {
                                        "type": "string",
                                        "description": "The external ID of the person.",
                                        "example": "12345",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "externallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the person is active.",
                                        "example": true
                                    },
                                    "firstName": {
                                        "type": "string",
                                        "description": "The first name of the person.",
                                        "example": "John",
                                        "maxLength": 500
                                    },
                                    "lastName": {
                                        "type": "string",
                                        "description": "The last name of the person.",
                                        "example": "Doe",
                                        "maxLength": 500
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address of the person.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "useExtendedTimes": {
                                        "type": "boolean",
                                        "description": "Determines whether the person will use extended strike times.",
                                        "example": false
                                    },
                                    "groups": {
                                        "type": "array",
                                        "description": "List of group IDs assigned to the person.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of a group.",
                                            "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "temporaryGroups": {
                                        "type": "array",
                                        "description": "List of temporary group assignments for the person.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "peopleGroupId": {
                                                    "type": "string",
                                                    "description": "The unique ID of a group.",
                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "description": "The start date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "description": "The end date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "peopleGroupId"
                                            ]
                                        }
                                    },
                                    "credentials": {
                                        "type": "array",
                                        "x-constraint": {},
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the credential.",
                                                    "enum": [
                                                        "PHYSICAL",
                                                        "PIN",
                                                        "EXTERNAL",
                                                        "BLUE_DIAMOND",
                                                        "BLUE_DIAMOND_NFC",
                                                        "BLUE_DIAMOND_INSTALL"
                                                    ]
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "badgeId": {
                                                    "type": "string",
                                                    "description": "The badge ID of a physical credential.",
                                                    "example": "12345",
                                                    "pattern": "^[0-9]{1,17}$"
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "description": "The email to send the BlueDiamond credential to.",
                                                    "example": "example@email.com",
                                                    "x-format": {
                                                        "email": {
                                                            "tlds": false
                                                        }
                                                    }
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "credentialStatusReason": {
                                                    "type": "string",
                                                    "description": "The reason for the credential status.",
                                                    "example": "The credential was received."
                                                },
                                                "expirationTimestamp": {
                                                    "type": "integer",
                                                    "description": "Each controller will expire the credential at this time in its own time zone.",
                                                    "example": "1633423600000"
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "email",
                                                "email"
                                            ]
                                        }
                                    },
                                    "setPin": {
                                        "type": "object",
                                        "properties": {
                                            "value": {
                                                "type": "string",
                                                "description": "The PIN value to set.",
                                                "example": "1234",
                                                "pattern": "^([0-9]{4}|[0-9]{6}|[0-9]{9})$"
                                            },
                                            "generate": {
                                                "type": "boolean",
                                                "description": "Generate a new PIN value."
                                            }
                                        }
                                    },
                                    "sendPinEmail": {
                                        "type": "string",
                                        "description": "The email address to send the PIN to after creation.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "customFields": {
                                        "type": "array",
                                        "example": [
                                            {
                                                "identifier": "department",
                                                "value": "Sales"
                                            },
                                            {
                                                "identifier": "dateOfBirth",
                                                "value": "1990-05-15"
                                            }
                                        ],
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "identifier": {
                                                    "type": "string",
                                                    "description": "The identifier of a custom field.",
                                                    "example": "department",
                                                    "maxLength": 100,
                                                    "pattern": "^[a-zA-Z0-9_]{1,50}$"
                                                },
                                                "value": {
                                                    "type": "string",
                                                    "description": "The value of a custom field",
                                                    "example": "Sales",
                                                    "maxLength": 500
                                                }
                                            }
                                        }
                                    },
                                    "spaces": {
                                        "type": "array",
                                        "description": "The spaces to add the person to.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the space.",
                                            "example": "AB6EC461-7DDB-4644-A6DE-6C2FF21DB4C1",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "inviteUser": {
                                        "type": "object",
                                        "description": "Invites the person to create a user account.",
                                        "properties": {
                                            "email": {
                                                "type": "string",
                                                "description": "The email address to send the invitation to.",
                                                "example": "example@email.com",
                                                "x-format": {
                                                    "email": {
                                                        "tlds": false
                                                    }
                                                }
                                            }
                                        },
                                        "required": [
                                            "email"
                                        ]
                                    },
                                    "role": {
                                        "type": "string",
                                        "description": "The role of the person.",
                                        "example": "Administrator"
                                    },
                                    "roleAssignments": {
                                        "type": "array",
                                        "description": "The role assignments for the person.",
                                        "items": {
                                            "type": "object",
                                            "description": "A role assignment for the person.",
                                            "properties": {
                                                "role": {
                                                    "type": "string",
                                                    "description": "The role of the person.",
                                                    "example": "Administrator"
                                                },
                                                "siteIds": {
                                                    "type": "array",
                                                    "description": "The unique IDs of the sites the role applies to.",
                                                    "items": {
                                                        "type": "string",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    }
                                                }
                                            },
                                            "required": [
                                                "role"
                                            ]
                                        }
                                    },
                                    "photo": {
                                        "type": "string",
                                        "description": "Base64-encoded photo of a person."
                                    }
                                },
                                "required": [
                                    "externalId",
                                    "firstName",
                                    "lastName"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "List of group IDs assigned to the person.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "List of temporary group assignments for the person.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "207": {
                        "description": "Multi-Status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "List of group IDs assigned to the person.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "List of temporary group assignments for the person.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "action": {
                                                        "type": "string",
                                                        "description": "The action that was attempted.",
                                                        "example": "add_person_to_groups"
                                                    },
                                                    "errorCode": {
                                                        "type": "string",
                                                        "description": "The error code.",
                                                        "example": "not_found"
                                                    },
                                                    "error": {
                                                        "type": "string",
                                                        "description": "Person group was not found."
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}": {
            "get": {
                "summary": "Get a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Whether to include the groups assigned to the person in the response.",
                        "name": "includeGroups",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "Whether to include the credentials assigned to the person in the response.",
                        "name": "includeCredentials",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "Whether to include the spaces assigned to the person in the response.",
                        "name": "includeSpaces",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "externalId": {
                                            "type": "string",
                                            "description": "The external ID of the person.",
                                            "example": "12345",
                                            "minLength": 1,
                                            "maxLength": 500
                                        },
                                        "externallyManaged": {
                                            "type": "boolean",
                                            "description": "Whether the person is externally managed.",
                                            "example": true
                                        },
                                        "externallyUpdated": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time when the person was updated externally.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "photoExternallyUpdated": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time when the person's photo was updated externally.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "active": {
                                            "type": "boolean",
                                            "description": "Whether the person is active.",
                                            "example": true
                                        },
                                        "firstName": {
                                            "type": "string",
                                            "description": "The first name of the person.",
                                            "example": "John",
                                            "maxLength": 500
                                        },
                                        "lastName": {
                                            "type": "string",
                                            "description": "The last name of the person.",
                                            "example": "Doe",
                                            "maxLength": 500
                                        },
                                        "email": {
                                            "type": "string",
                                            "description": "The email address of the person.",
                                            "example": "example@email.com",
                                            "x-format": {
                                                "email": {
                                                    "tlds": false
                                                }
                                            }
                                        },
                                        "useExtendedTimes": {
                                            "type": "boolean",
                                            "description": "Determines whether the person will use extended strike times.",
                                            "example": false
                                        },
                                        "hasCredentials": {
                                            "type": "boolean",
                                            "description": "Whether the person has credentials.",
                                            "example": false
                                        },
                                        "hasPhoto": {
                                            "type": "boolean",
                                            "description": "Whether the person has a photo.",
                                            "example": false
                                        },
                                        "hasPin": {
                                            "type": "boolean",
                                            "description": "Whether the person has a PIN assigned.",
                                            "example": false
                                        },
                                        "hasUserAccount": {
                                            "type": "boolean",
                                            "description": "Whether the person has a user account.",
                                            "example": false
                                        },
                                        "groups": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "Name of the group assigned to person",
                                                        "example": "Managers"
                                                    }
                                                }
                                            }
                                        },
                                        "temporaryGroups": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "description": "A temporary group assigned to the person.",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "Name of the group assigned to person",
                                                        "example": "Managers"
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The start date of the temporary group assignment."
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The end date of the temporary group assignment."
                                                    },
                                                    "active": {
                                                        "type": "boolean",
                                                        "description": "Whether the temporary group assignment is currently active."
                                                    },
                                                    "expired": {
                                                        "type": "boolean",
                                                        "description": "Whether the temporary group assignment has expired."
                                                    }
                                                }
                                            }
                                        },
                                        "role": {
                                            "type": "string",
                                            "description": "The role assigned to the person."
                                        },
                                        "roleAssignments": {
                                            "type": "array",
                                            "description": "Role assignments for the person.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "role": {
                                                        "type": "string"
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "roleInfo": {
                                            "type": "object",
                                            "description": "Additional role information for the person."
                                        },
                                        "isGlobalUser": {
                                            "type": "boolean",
                                            "description": "Whether the person has no site-specific role restrictions."
                                        },
                                        "hasUnauthorizedSites": {
                                            "type": "boolean",
                                            "description": "Whether the requesting user lacks access to sites assigned to this person."
                                        },
                                        "customFields": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of a custom field for a person.",
                                                        "example": "df8ebe38-5395-44df-8efc-f37de32961f2",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "identifier": {
                                                        "type": "string",
                                                        "description": "The identifier of a custom field.",
                                                        "example": "department",
                                                        "maxLength": 100,
                                                        "pattern": "^[a-zA-Z0-9_]{1,50}$"
                                                    },
                                                    "value": {
                                                        "type": "string",
                                                        "description": "The value of a custom field",
                                                        "example": "Sales"
                                                    }
                                                }
                                            }
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The created time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "photoLastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The photo last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "spaces": {
                                            "type": "array",
                                            "description": "Spaces assigned to the person. Returned when includeSpaces=true.",
                                            "items": {
                                                "type": "object",
                                                "description": "A space assigned to the person.",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the space",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the space"
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of the space"
                                                    }
                                                }
                                            }
                                        },
                                        "totalSpaces": {
                                            "type": "integer",
                                            "description": "Total number of spaces assigned to the person. Returned when includeSpaces=true."
                                        },
                                        "credentials": {
                                            "type": "array",
                                            "description": "The credentials assigned to the person.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the credential.",
                                                        "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "externalId": {
                                                        "type": "string",
                                                        "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                                        "example": "BADGE-001",
                                                        "minLength": 1,
                                                        "maxLength": 100
                                                    },
                                                    "personExternalId": {
                                                        "type": "string",
                                                        "description": "The external ID of the person.",
                                                        "example": "12345",
                                                        "minLength": 1,
                                                        "maxLength": 500
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of the credential.",
                                                        "enum": [
                                                            "PHYSICAL",
                                                            "PIN",
                                                            "EXTERNAL",
                                                            "BLUE_DIAMOND",
                                                            "BLUE_DIAMOND_NFC",
                                                            "BLUE_DIAMOND_INSTALL"
                                                        ]
                                                    },
                                                    "label": {
                                                        "type": "string",
                                                        "description": "The optional label of the credential. Must not be only whitespace.",
                                                        "example": "My Badge",
                                                        "maxLength": 500,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "badgeId": {
                                                        "type": "string",
                                                        "description": "The badge ID of the credential",
                                                        "example": "12345",
                                                        "pattern": "^[0-9]{1,17}$"
                                                    },
                                                    "credentialStatus": {
                                                        "type": "string",
                                                        "description": "The value of the credential status.",
                                                        "example": "Active",
                                                        "enum": [
                                                            "Active",
                                                            "Lost",
                                                            "Stolen",
                                                            "Terminated",
                                                            "Damaged",
                                                            "Other"
                                                        ]
                                                    },
                                                    "walletType": {
                                                        "type": "string",
                                                        "description": "The wallet ecosystem associated with the credential.",
                                                        "enum": [
                                                            "NONE",
                                                            "APPLE",
                                                            "GOOGLE"
                                                        ]
                                                    },
                                                    "walletStatus": {
                                                        "type": "string",
                                                        "description": "The wallet invitation or provisioning status associated with the credential.",
                                                        "enum": [
                                                            "INVITATION_PENDING",
                                                            "INVITATION_EXPIRED",
                                                            "ACTIVE",
                                                            "SUSPENDED",
                                                            "REMOVED",
                                                            "FAILURE"
                                                        ]
                                                    },
                                                    "lastActivated": {
                                                        "type": "integer",
                                                        "description": "The last time the credential was activated.",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "lastDeactivated": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last time the credential was deactivated.",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "expirationTimestamp": {
                                                        "type": "integer",
                                                        "description": "Each controller will expire the credential at this time in its own time zone.",
                                                        "example": "1633423600000"
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The time the credential was created",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last time the credential was modified",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    }
                                                }
                                            }
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "description": "The IDs of the sites the person belongs to. Only included for multi-site deployments.",
                                            "items": {
                                                "type": "string",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "externalId",
                                        "active",
                                        "firstName",
                                        "lastName",
                                        "email",
                                        "useExtendedTimes",
                                        "hasCredentials",
                                        "hasPhoto",
                                        "hasPin",
                                        "hasUserAccount",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "externalId": {
                                        "type": "string",
                                        "description": "The external ID of the person.",
                                        "example": "12345",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "externallyManaged": {
                                        "type": "boolean",
                                        "description": "Whether the person is externally managed.",
                                        "example": true
                                    },
                                    "externallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "photoExternallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person's photo was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the person is active.",
                                        "example": true
                                    },
                                    "firstName": {
                                        "type": "string",
                                        "description": "The first name of the person.",
                                        "example": "John",
                                        "maxLength": 500
                                    },
                                    "lastName": {
                                        "type": "string",
                                        "description": "The last name of the person.",
                                        "example": "Doe",
                                        "maxLength": 500
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address of the person.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "useExtendedTimes": {
                                        "type": "boolean",
                                        "description": "Determines whether the person will use extended strike times.",
                                        "example": false
                                    },
                                    "removedGroups": {
                                        "type": "array",
                                        "description": "The groups to remove the person from.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of a group.",
                                            "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedGroups": {
                                        "type": "array",
                                        "description": "The groups to add the person to.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of a group.",
                                            "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedTemporaryGroups": {
                                        "type": "array",
                                        "description": "The temporary groups to remove the person from.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "peopleGroupId": {
                                                    "type": "string",
                                                    "description": "The unique ID of a group.",
                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "description": "The start date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "description": "The end date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "peopleGroupId"
                                            ]
                                        }
                                    },
                                    "addedTemporaryGroups": {
                                        "type": "array",
                                        "description": "The temporary groups to add the person to.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "peopleGroupId": {
                                                    "type": "string",
                                                    "description": "The unique ID of a group.",
                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "description": "The start date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "description": "The end date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "peopleGroupId"
                                            ]
                                        }
                                    },
                                    "addedCredentials": {
                                        "type": "array",
                                        "x-constraint": {},
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the credential.",
                                                    "enum": [
                                                        "PHYSICAL",
                                                        "PIN",
                                                        "EXTERNAL",
                                                        "BLUE_DIAMOND",
                                                        "BLUE_DIAMOND_NFC",
                                                        "BLUE_DIAMOND_INSTALL"
                                                    ]
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "badgeId": {
                                                    "type": "string",
                                                    "description": "The badge ID of a physical credential.",
                                                    "example": "12345",
                                                    "pattern": "^[0-9]{1,17}$"
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "description": "The email to send the BlueDiamond credential to.",
                                                    "example": "example@email.com",
                                                    "x-format": {
                                                        "email": {
                                                            "tlds": false
                                                        }
                                                    }
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "credentialStatusReason": {
                                                    "type": "string",
                                                    "description": "The reason for the credential status.",
                                                    "example": "The credential was received."
                                                },
                                                "expirationTimestamp": {
                                                    "type": "integer",
                                                    "description": "Each controller will expire the credential at this time in its own time zone.",
                                                    "example": "1633423600000"
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "email",
                                                "email"
                                            ]
                                        }
                                    },
                                    "updatedCredentials": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the credential.",
                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "credentialStatusReason": {
                                                    "type": "string",
                                                    "description": "The reason for the credential status.",
                                                    "example": "The credential was received."
                                                },
                                                "expirationTimestamp": {
                                                    "type": "integer",
                                                    "description": "Each controller will expire the credential at this time in its own time zone. \"null\" will remove the current expiration timestamp.",
                                                    "example": 1633423600000
                                                },
                                                "externalId": {
                                                    "type": "string",
                                                    "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                                    "example": "BADGE-001",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                }
                                            }
                                        }
                                    },
                                    "removedCredentials": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the credential.",
                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "reasonValue": {
                                                    "type": "string",
                                                    "description": "The reason value for credential removal.",
                                                    "example": "Lost",
                                                    "enum": [
                                                        "No Reason",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "reasonDescription": {
                                                    "type": "string",
                                                    "description": "The description for the credential removal. Required if the reason is \"Other\".",
                                                    "example": "The credential was lost."
                                                }
                                            },
                                            "required": [
                                                "reasonDescription"
                                            ]
                                        }
                                    },
                                    "setPin": {
                                        "type": "object",
                                        "properties": {
                                            "value": {
                                                "type": "string",
                                                "description": "The PIN value to set.",
                                                "example": "1234",
                                                "pattern": "^([0-9]{4}|[0-9]{6}|[0-9]{9})$"
                                            },
                                            "generate": {
                                                "type": "boolean",
                                                "description": "Generate a new PIN value."
                                            }
                                        }
                                    },
                                    "removePin": {
                                        "type": "boolean",
                                        "description": "Set to remove the PIN from the person."
                                    },
                                    "sendPinEmail": {
                                        "type": "string",
                                        "description": "The email address to send the PIN to.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "removedFromGroups": {
                                            "type": "array",
                                            "description": "The groups the person was removed from.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "The groups the person was added to.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedFromTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was removed from.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was added to.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "updatedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "207": {
                        "description": "Multi-Status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "removedFromGroups": {
                                            "type": "array",
                                            "description": "The groups the person was removed from.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "The groups the person was added to.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedFromTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was removed from.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was added to.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "updatedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "action": {
                                                        "type": "string",
                                                        "description": "The action that was attempted.",
                                                        "example": "add_person_to_groups"
                                                    },
                                                    "errorCode": {
                                                        "type": "string",
                                                        "description": "The error code.",
                                                        "example": "not_found"
                                                    },
                                                    "error": {
                                                        "type": "string",
                                                        "description": "Person group was not found."
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Add or update a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "firstName": {
                                        "type": "string",
                                        "description": "The first name of the person.",
                                        "example": "John",
                                        "maxLength": 500
                                    },
                                    "lastName": {
                                        "type": "string",
                                        "description": "The last name of the person.",
                                        "example": "Doe",
                                        "maxLength": 500
                                    },
                                    "externalId": {
                                        "type": "string",
                                        "description": "The external ID of the person.",
                                        "example": "12345",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "externallyManaged": {
                                        "type": "boolean",
                                        "description": "Whether the person is externally managed.",
                                        "example": true
                                    },
                                    "externallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "photoExternallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person's photo was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address of the person.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "useExtendedTimes": {
                                        "type": "boolean",
                                        "description": "Determines whether the person will use extended strike times.",
                                        "example": false
                                    },
                                    "customFields": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "identifier": {
                                                    "type": "string",
                                                    "description": "The identifier of a custom field.",
                                                    "example": "department",
                                                    "maxLength": 100,
                                                    "pattern": "^[a-zA-Z0-9_]{1,50}$"
                                                },
                                                "value": {
                                                    "type": "string",
                                                    "description": "The value of a custom field",
                                                    "example": "Sales"
                                                }
                                            },
                                            "required": [
                                                "identifier"
                                            ]
                                        }
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the person is active.",
                                        "example": true
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v2/people/{id}": {
            "patch": {
                "summary": "Update a person with custom fields",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "externallyManaged": {
                                        "type": "boolean",
                                        "description": "Whether the person is externally managed.",
                                        "example": true
                                    },
                                    "externallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "photoExternallyUpdated": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "The last modified time when the person's photo was updated externally.",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "active": {
                                        "type": "boolean",
                                        "description": "Whether the person is active.",
                                        "example": true
                                    },
                                    "firstName": {
                                        "type": "string",
                                        "description": "The first name of the person.",
                                        "example": "John",
                                        "maxLength": 500
                                    },
                                    "lastName": {
                                        "type": "string",
                                        "description": "The last name of the person.",
                                        "example": "Doe",
                                        "maxLength": 500
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address of the person.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "useExtendedTimes": {
                                        "type": "boolean",
                                        "description": "Determines whether the person will use extended strike times.",
                                        "example": false
                                    },
                                    "removedGroups": {
                                        "type": "array",
                                        "description": "The groups to remove the person from.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of a group.",
                                            "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedGroups": {
                                        "type": "array",
                                        "description": "The groups to add the person to.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of a group.",
                                            "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedTemporaryGroups": {
                                        "type": "array",
                                        "description": "The temporary groups to remove the person from.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "peopleGroupId": {
                                                    "type": "string",
                                                    "description": "The unique ID of a group.",
                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "description": "The start date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "description": "The end date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "peopleGroupId"
                                            ]
                                        }
                                    },
                                    "addedTemporaryGroups": {
                                        "type": "array",
                                        "description": "The temporary groups to add the person to.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "peopleGroupId": {
                                                    "type": "string",
                                                    "description": "The unique ID of a group.",
                                                    "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "description": "The start date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "description": "The end date of the temporary group assignment.",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "peopleGroupId"
                                            ]
                                        }
                                    },
                                    "addedCredentials": {
                                        "type": "array",
                                        "x-constraint": {},
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the credential.",
                                                    "enum": [
                                                        "PHYSICAL",
                                                        "PIN",
                                                        "EXTERNAL",
                                                        "BLUE_DIAMOND",
                                                        "BLUE_DIAMOND_NFC",
                                                        "BLUE_DIAMOND_INSTALL"
                                                    ]
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "badgeId": {
                                                    "type": "string",
                                                    "description": "The badge ID of a physical credential.",
                                                    "example": "12345",
                                                    "pattern": "^[0-9]{1,17}$"
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "description": "The email to send the BlueDiamond credential to.",
                                                    "example": "example@email.com",
                                                    "x-format": {
                                                        "email": {
                                                            "tlds": false
                                                        }
                                                    }
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "credentialStatusReason": {
                                                    "type": "string",
                                                    "description": "The reason for the credential status.",
                                                    "example": "The credential was received."
                                                },
                                                "expirationTimestamp": {
                                                    "type": "integer",
                                                    "description": "Each controller will expire the credential at this time in its own time zone.",
                                                    "example": "1633423600000"
                                                }
                                            },
                                            "required": [
                                                "type",
                                                "email",
                                                "email"
                                            ]
                                        }
                                    },
                                    "updatedCredentials": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the credential.",
                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "credentialStatusReason": {
                                                    "type": "string",
                                                    "description": "The reason for the credential status.",
                                                    "example": "The credential was received."
                                                },
                                                "expirationTimestamp": {
                                                    "type": "integer",
                                                    "description": "Each controller will expire the credential at this time in its own time zone. \"null\" will remove the current expiration timestamp.",
                                                    "example": 1633423600000
                                                },
                                                "externalId": {
                                                    "type": "string",
                                                    "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                                    "example": "BADGE-001",
                                                    "minLength": 1,
                                                    "maxLength": 100
                                                }
                                            }
                                        }
                                    },
                                    "removedCredentials": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the credential.",
                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "reasonValue": {
                                                    "type": "string",
                                                    "description": "The reason value for credential removal.",
                                                    "example": "Lost",
                                                    "enum": [
                                                        "No Reason",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "reasonDescription": {
                                                    "type": "string",
                                                    "description": "The description for the credential removal. Required if the reason is \"Other\".",
                                                    "example": "The credential was lost."
                                                }
                                            },
                                            "required": [
                                                "reasonDescription"
                                            ]
                                        }
                                    },
                                    "setPin": {
                                        "type": "object",
                                        "properties": {
                                            "value": {
                                                "type": "string",
                                                "description": "The PIN value to set.",
                                                "example": "1234",
                                                "pattern": "^([0-9]{4}|[0-9]{6}|[0-9]{9})$"
                                            },
                                            "generate": {
                                                "type": "boolean",
                                                "description": "Generate a new PIN value."
                                            }
                                        }
                                    },
                                    "removePin": {
                                        "type": "boolean",
                                        "description": "Set to remove the PIN from the person."
                                    },
                                    "sendPinEmail": {
                                        "type": "string",
                                        "description": "The email address to send the PIN to.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "externalId": {
                                        "type": "string",
                                        "description": "Set to null to remove the external ID. This is not allowed for externally managed people.",
                                        "example": "12345",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "removeExternalId": {
                                        "type": "boolean",
                                        "description": "Set to remove the external ID. This is not allowed for externally managed people."
                                    },
                                    "customFields": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "identifier": {
                                                    "type": "string",
                                                    "description": "The identifier of a custom field.",
                                                    "example": "department",
                                                    "maxLength": 100,
                                                    "pattern": "^[a-zA-Z0-9_]{1,50}$"
                                                },
                                                "value": {
                                                    "type": "string",
                                                    "description": "The value of a custom field",
                                                    "example": "Sales"
                                                }
                                            },
                                            "required": [
                                                "identifier"
                                            ]
                                        }
                                    },
                                    "addedSpaces": {
                                        "type": "array",
                                        "description": "The spaces to add the person to.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the space.",
                                            "example": "AB6EC461-7DDB-4644-A6DE-6C2FF21DB4C1",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedSpaces": {
                                        "type": "array",
                                        "description": "The spaces to remove the person from.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the space.",
                                            "example": "AB6EC461-7DDB-4644-A6DE-6C2FF21DB4C1",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "reissueCredentials": {
                                        "type": "array",
                                        "description": "The credentials to reissue.",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the credential.",
                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "email": {
                                                    "type": "string",
                                                    "description": "An email address.",
                                                    "example": "example@email.com",
                                                    "x-format": {
                                                        "email": {
                                                            "tlds": false
                                                        }
                                                    }
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "email"
                                            ]
                                        }
                                    },
                                    "inviteUser": {
                                        "type": "object",
                                        "description": "Invites the person to create a user account.",
                                        "properties": {
                                            "email": {
                                                "type": "string",
                                                "description": "The email address to send the invitation to.",
                                                "example": "example@email.com",
                                                "x-format": {
                                                    "email": {
                                                        "tlds": false
                                                    }
                                                }
                                            }
                                        },
                                        "required": [
                                            "email"
                                        ]
                                    },
                                    "removeUser": {
                                        "type": "boolean",
                                        "description": "Set to remove the user account from the person."
                                    },
                                    "role": {
                                        "type": "string",
                                        "description": "The role of the person.",
                                        "example": "Administrator"
                                    },
                                    "roleAssignments": {
                                        "type": "array",
                                        "description": "The role assignments for the person.",
                                        "items": {
                                            "type": "object",
                                            "description": "A role assignment for the person.",
                                            "properties": {
                                                "role": {
                                                    "type": "string",
                                                    "description": "The role of the person.",
                                                    "example": "Administrator"
                                                },
                                                "siteIds": {
                                                    "type": "array",
                                                    "description": "The unique IDs of the sites the role applies to.",
                                                    "items": {
                                                        "type": "string",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    }
                                                }
                                            },
                                            "required": [
                                                "role"
                                            ]
                                        }
                                    },
                                    "photo": {
                                        "type": "string",
                                        "description": "Base64-encoded photo of a person."
                                    },
                                    "removePhoto": {
                                        "type": "boolean",
                                        "description": "Set to remove the photo from the person."
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "removedFromGroups": {
                                            "type": "array",
                                            "description": "The groups the person was removed from.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "The groups the person was added to.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedFromTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was removed from.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was added to.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "updatedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "207": {
                        "description": "Multi-Status",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "removedFromGroups": {
                                            "type": "array",
                                            "description": "The groups the person was removed from.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "addedToGroups": {
                                            "type": "array",
                                            "description": "The groups the person was added to.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of a group.",
                                                "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedFromTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was removed from.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedToTemporaryPeopleGroups": {
                                            "type": "array",
                                            "description": "The temporary groups the person was added to.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "peopleGroupId": {
                                                        "type": "string",
                                                        "description": "The unique ID of a group.",
                                                        "example": "e1499a9f-dd96-4f2e-b9ce-e2194728107f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "description": "The start date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "description": "The end date of the temporary group assignment.",
                                                        "example": "2018-06-29",
                                                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                    },
                                                    "timeZone": {
                                                        "type": "string"
                                                    }
                                                },
                                                "required": [
                                                    "peopleGroupId"
                                                ]
                                            }
                                        },
                                        "addedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "updatedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "removedCredentials": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the credential.",
                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "errors": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "action": {
                                                        "type": "string",
                                                        "description": "The action that was attempted.",
                                                        "example": "add_person_to_groups"
                                                    },
                                                    "errorCode": {
                                                        "type": "string",
                                                        "description": "The error code.",
                                                        "example": "not_found"
                                                    },
                                                    "error": {
                                                        "type": "string",
                                                        "description": "Person group was not found."
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/audits": {
            "get": {
                "summary": "List audit records",
                "description": "#### Filtering fields and operators\n* userId [eq, in]\n  * Supported values: UUID\n  * Example: `userId eq '123e4567-e89b-12d3-a456-426614174000'`\n* userName [eq, in]\n  * Supported values: string (1-500 chars).\n  * Example: `userName eq 'John Doe'`\n* auditedId [eq, in]\n  * Supported values: UUID\n  * Example: `auditedId eq '123e4567-e89b-12d3-a456-426614174001'`\n* auditedName [eq, in]\n  * Supported values: string (1-500 chars).\n  * Example: `auditedName eq 'Main Entrance'`\n* summary [eq, in]\n  * Supported values: string (1-500 chars).\n  * Example: `summary eq 'resourceCreated'`\n\n#### Query parameters (non-OData)\n* $startDate (required) - Inclusive start timestamp (ISO 8601).\n  * Example: `? $startDate = 2025-01-01T00:00:00Z`\n* $endDate (required) - Inclusive end timestamp (ISO 8601). Must be >= $startDate.\n  * Example: `& $endDate=2025-01 - 31T23: 59: 59Z`",
                "parameters": [
                    {
                        "description": "Inclusive start timestamp for audit records.",
                        "name": "$startDate",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "description": "Inclusive end timestamp for audit records.",
                        "name": "$endDate",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Audit Records"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "description": "Paged list of audit records.",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "description": "Audit record response object.",
                                                "properties": {
                                                    "userId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the user who performed the action",
                                                        "example": "9210b5d7-1e3c-4c31-96ce-15d227ce4ea5"
                                                    },
                                                    "userName": {
                                                        "type": "string",
                                                        "description": "The name of the user who performed the action",
                                                        "example": "John Doe"
                                                    },
                                                    "ts": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The timestamp when the audit record was created",
                                                        "example": "2025-01-15T10:30:00Z"
                                                    },
                                                    "auditedId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the resource that was audited",
                                                        "example": "a8bea3fa-75ce-4986-a836-73744bd87919"
                                                    },
                                                    "auditedName": {
                                                        "type": "string",
                                                        "description": "The name of the resource that was audited",
                                                        "example": "TestResource"
                                                    },
                                                    "summary": {
                                                        "type": "string",
                                                        "description": "A summary of the action that was audited",
                                                        "example": "resourceCreated"
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/automations": {
            "get": {
                "summary": "List automations",
                "description": "#### Filtering fields and operators\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n  * Example: `searchName eq 'automation1'`\n* triggerType [eq]\n  * Supported values: `AugmentedEvent`, `DashboardAction`, `CalendarTrigger`, `OneTimeTrigger`\n  * Example: `triggerType eq 'DashboardAction'`\n\n#### Filtering examples:\n* (searchName eq 'daily') and (triggerType eq 'DashboardAction')",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Automations"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the automation",
                                                        "example": "f02a9bd8-301f-401c-a2c0-97082befd905",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the automation",
                                                        "example": "Unlock Front Door",
                                                        "maxLength": 500
                                                    },
                                                    "enabled": {
                                                        "type": "boolean",
                                                        "description": "True if automation is enabled",
                                                        "example": true
                                                    },
                                                    "allowManualExecution": {
                                                        "type": "boolean",
                                                        "description": "True if automation can be manually executed",
                                                        "example": true
                                                    },
                                                    "suppressAutomationTriggerEvents": {
                                                        "type": "boolean",
                                                        "description": "True if trigger events for the automation are suppressed"
                                                    },
                                                    "lastExecuted": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last executed time",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The created time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "enabled",
                                                    "allowManualExecution",
                                                    "suppressAutomationTriggerEvents",
                                                    "created",
                                                    "lastModified"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/cardFormats": {
            "get": {
                "summary": "List card formats",
                "tags": [
                    "Card Formats"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "string",
                                                "description": "The unique ID of the card format",
                                                "example": "0a82a847-3933-43a6-b30f-98057441b0c5",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            },
                                            "name": {
                                                "type": "string",
                                                "description": "The name of the card format",
                                                "example": "Employee Card Format",
                                                "minLength": 1,
                                                "maxLength": 500
                                            },
                                            "templateId": {
                                                "type": "string",
                                                "description": "The unique ID of the card format template",
                                                "example": "00d983ea-1c69-4292-adb7-c836ddddd21b",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            },
                                            "facilityCode": {
                                                "type": "number",
                                                "description": "The code of the facility.",
                                                "example": 1
                                            },
                                            "useBadgeOffset": {
                                                "type": "boolean",
                                                "description": "Indicates whether or not a badge offset is being used.",
                                                "example": true
                                            },
                                            "badgeOffset": {
                                                "type": "number",
                                                "description": "Offsets the badge ID by the value entered. Useful when there is a population of badges with the same badge ID, for example, when multiple independent systems are merged into one. It is important that the access control hardware is able to uniquely identify the card format with the offset by using different facility code or card format structure.",
                                                "example": 20
                                            },
                                            "totalNumberBits": {
                                                "type": "number",
                                                "description": "The total number of bits for the format.",
                                                "example": 26
                                            },
                                            "facilityCodeStartBit": {
                                                "type": "number",
                                                "description": "The bit that the facility code starts at (base 0).",
                                                "example": 1
                                            },
                                            "facilityCodeLength": {
                                                "type": "number",
                                                "description": "The number of bits in the facility code.",
                                                "example": 1
                                            },
                                            "badgeIdStartBit": {
                                                "type": "number",
                                                "description": "The bit that the badge ID starts at (base 0).",
                                                "example": 2
                                            },
                                            "badgeIdLength": {
                                                "type": "number",
                                                "description": "The number of bits in the badge ID.",
                                                "example": 1
                                            },
                                            "issueCodeStartBit": {
                                                "type": "number",
                                                "description": "The bit that the issue code starts at (base 0).",
                                                "example": 3
                                            },
                                            "issueCodeLength": {
                                                "type": "number",
                                                "description": "The number of bits in the issue code.",
                                                "example": 1
                                            },
                                            "evenParityStartBit": {
                                                "type": "number",
                                                "description": "The bit that even parity calculations should start at (base 0).",
                                                "example": 4
                                            },
                                            "evenParityLength": {
                                                "type": "number",
                                                "description": "The number of bits used to compute even parity.",
                                                "example": 1
                                            },
                                            "oddParityStartBit": {
                                                "type": "number",
                                                "description": "The bit that odd parity calculations should start at (base 0).",
                                                "example": 5
                                            },
                                            "oddParityLength": {
                                                "type": "number",
                                                "description": "The number of bits used to compute odd parity.",
                                                "example": 1
                                            },
                                            "siteIds": {
                                                "type": "array",
                                                "description": "The IDs of the sites the card format is associated with.",
                                                "items": {
                                                    "type": "string",
                                                    "description": "The unique ID of the site",
                                                    "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                }
                                            },
                                            "ignoreFacilityCodeCheck": {
                                                "type": "boolean",
                                                "description": "Indicates whether or not a facility code is being ignored.",
                                                "example": false
                                            },
                                            "combineFacilityCodeAndCardNumber": {
                                                "type": "boolean",
                                                "description": "Indicates whether or not combine to facility code and card mumber.",
                                                "example": false
                                            },
                                            "requireMatchingCardNumber": {
                                                "type": "boolean",
                                                "description": "Indicates whether or not to require a matching card number.",
                                                "example": false
                                            },
                                            "hidCorporate1000ParityCheck": {
                                                "type": "boolean",
                                                "description": "Indicates whether or not to perform an HID® Corporate 1000™ parity check."
                                            }
                                        },
                                        "required": [
                                            "id",
                                            "name",
                                            "templateId",
                                            "facilityCode",
                                            "useBadgeOffset",
                                            "badgeOffset",
                                            "totalNumberBits",
                                            "facilityCodeStartBit",
                                            "facilityCodeLength",
                                            "badgeIdStartBit",
                                            "badgeIdLength",
                                            "issueCodeStartBit",
                                            "issueCodeLength",
                                            "evenParityStartBit",
                                            "evenParityLength",
                                            "oddParityStartBit",
                                            "oddParityLength",
                                            "ignoreFacilityCodeCheck",
                                            "combineFacilityCodeAndCardNumber",
                                            "requireMatchingCardNumber"
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add a new card format",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the card format",
                                        "example": "Employee Card Format",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "templateId": {
                                        "type": "string",
                                        "description": "The unique ID of the card format template",
                                        "example": "00d983ea-1c69-4292-adb7-c836ddddd21b",
                                        "x-format": {
                                            "guid": true
                                        }
                                    },
                                    "facilityCode": {
                                        "type": "number",
                                        "description": "The code of the facility.",
                                        "example": 1
                                    },
                                    "useBadgeOffset": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not a badge offset is being used.",
                                        "example": true
                                    },
                                    "badgeOffset": {
                                        "type": "number",
                                        "description": "Offsets the badge ID by the value entered. Useful when there is a population of badges with the same badge ID, for example, when multiple independent systems are merged into one. It is important that the access control hardware is able to uniquely identify the card format with the offset by using different facility code or card format structure.",
                                        "example": 20
                                    },
                                    "totalNumberBits": {
                                        "type": "number",
                                        "description": "The total number of bits for the format.",
                                        "example": 26
                                    },
                                    "facilityCodeStartBit": {
                                        "type": "number",
                                        "description": "The bit that the facility code starts at (base 0).",
                                        "example": 1
                                    },
                                    "facilityCodeLength": {
                                        "type": "number",
                                        "description": "The number of bits in the facility code.",
                                        "example": 1
                                    },
                                    "badgeIdStartBit": {
                                        "type": "number",
                                        "description": "The bit that the badge ID starts at (base 0).",
                                        "example": 2
                                    },
                                    "badgeIdLength": {
                                        "type": "number",
                                        "description": "The number of bits in the badge ID.",
                                        "example": 1
                                    },
                                    "issueCodeStartBit": {
                                        "type": "number",
                                        "description": "The bit that the issue code starts at (base 0).",
                                        "example": 3
                                    },
                                    "issueCodeLength": {
                                        "type": "number",
                                        "description": "The number of bits in the issue code.",
                                        "example": 1
                                    },
                                    "evenParityStartBit": {
                                        "type": "number",
                                        "description": "The bit that even parity calculations should start at (base 0).",
                                        "example": 4
                                    },
                                    "evenParityLength": {
                                        "type": "number",
                                        "description": "The number of bits used to compute even parity.",
                                        "example": 1
                                    },
                                    "oddParityStartBit": {
                                        "type": "number",
                                        "description": "The bit that odd parity calculations should start at (base 0).",
                                        "example": 5
                                    },
                                    "oddParityLength": {
                                        "type": "number",
                                        "description": "The number of bits used to compute odd parity.",
                                        "example": 1
                                    },
                                    "siteIds": {
                                        "type": "array",
                                        "description": "The IDs of the sites the card format is associated with.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "ignoreFacilityCodeCheck": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not a facility code is being ignored.",
                                        "example": false
                                    },
                                    "combineFacilityCodeAndCardNumber": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not combine to facility code and card mumber.",
                                        "example": false
                                    },
                                    "requireMatchingCardNumber": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not to require a matching card number.",
                                        "example": false
                                    },
                                    "hidCorporate1000ParityCheck": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not to perform an HID® Corporate 1000™ parity check."
                                    }
                                },
                                "required": [
                                    "name",
                                    "templateId",
                                    "facilityCode",
                                    "useBadgeOffset",
                                    "badgeOffset"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Card Formats"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the card format",
                                            "example": "0a82a847-3933-43a6-b30f-98057441b0c5",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/clips": {
            "get": {
                "summary": "List video clips",
                "description": "#### Filtering fields and operators\n* fileName [eq, ne]\n  * Supported values: string\n  * Example: `fileName eq 'Axis_P1428-E_Network_Camera-cube_2025-03-25T17:14:49.000Z_2025-03-25T17:24:49.000Z.mp4'`\n* extendedStorageEnabled [eq, ne]\n  * Supported values: `true` | `false`\n  * Example: `extendedStorageEnabled eq true`\n* customerId [eq, ne]\n  * Supported values: UUID\n  * Example: `customerId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91'`\n* status [eq, ne]\n  * Supported values: string\n  * Example: `status eq 'available'`\n* downloadsRemain [eq]\n  * Supported values: integer (can be negative)\n  * Behavior: Filters by remaining downloads computed as `(downloadLimit - downloads)`.\n  * Example: `downloadsRemain eq 0`",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the clip",
                                                        "example": "51adc2a1-fd5d-4da0-8373-629d7a7faf1d",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "cameraId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the camera.",
                                                        "example": "1c874a28-22d6-470c-8b1b-5b243aff487b",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "startTime": {
                                                        "type": "string",
                                                        "description": "The timestamp format of clip exports.",
                                                        "example": "2025-02-24T18:23:10.248Z",
                                                        "x-format": {
                                                            "isoDate": true
                                                        }
                                                    },
                                                    "endTime": {
                                                        "type": "string",
                                                        "description": "The timestamp format of clip exports.",
                                                        "example": "2025-02-24T18:23:10.248Z",
                                                        "x-format": {
                                                            "isoDate": true
                                                        }
                                                    },
                                                    "downloads": {
                                                        "type": "integer",
                                                        "description": "The number of times the clip has been downloaded.",
                                                        "example": 3
                                                    },
                                                    "downloadLimit": {
                                                        "type": "integer",
                                                        "description": "The limit for clip downloads.",
                                                        "example": 3
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "The status of the exported clip.",
                                                        "example": "available"
                                                    },
                                                    "expires": {
                                                        "type": "string",
                                                        "description": "The date when the exported clip expires.",
                                                        "example": "2025-02-24T18:17:47.474Z",
                                                        "x-format": {
                                                            "isoDate": true
                                                        }
                                                    },
                                                    "size": {
                                                        "type": "string",
                                                        "description": "The size of the exported clip.",
                                                        "example": "8257809"
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The created time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "isLimitSet": {
                                                        "type": "boolean",
                                                        "description": "Is limit set.",
                                                        "example": true
                                                    },
                                                    "extendedStorageEnabled": {
                                                        "type": "boolean",
                                                        "description": "True if extended storage is enabled for the clip.",
                                                        "default": false
                                                    },
                                                    "expirationDays": {
                                                        "type": "integer",
                                                        "description": "Specifies how long the file should live on the storage since creation date.",
                                                        "example": "5",
                                                        "minimum": 1,
                                                        "maximum": 1095
                                                    },
                                                    "fileName": {
                                                        "type": "string",
                                                        "description": "The name of the file.",
                                                        "example": "Axis_P1428-E_Network_Camera-cube_2025-03-25T17:14:49.000Z_2025-03-25T17:24:49.000Z.mp4"
                                                    },
                                                    "publicLinkId": {
                                                        "type": "string",
                                                        "description": "ID of the public link",
                                                        "example": "c7712460-22e7-425e-8041-1d738cc5bda3",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "cameraId",
                                                    "startTime",
                                                    "endTime",
                                                    "status",
                                                    "expires",
                                                    "size",
                                                    "created",
                                                    "lastModified"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/controllerRules": {
            "get": {
                "summary": "List controller rules",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Controller Rules"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the controller rule",
                                                        "example": "39380c62-bd7e-4958-9193-521389e95f8b",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the controller rule",
                                                        "example": "Unlock Door",
                                                        "minLength": 1,
                                                        "maxLength": 500
                                                    },
                                                    "deviceId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the device executing the rule",
                                                        "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "lastExecutionTime": {
                                                        "type": "number",
                                                        "description": "Timestamp of the last time the controller rule was executed",
                                                        "example": 1741620696000
                                                    },
                                                    "enabled": {
                                                        "type": "boolean",
                                                        "description": "Indicates whether or not the rule will execute when its conditions are met",
                                                        "example": true,
                                                        "default": true
                                                    },
                                                    "canManuallyExecute": {
                                                        "type": "boolean",
                                                        "description": "Indicates whether or not the rule can be executed manually",
                                                        "example": true
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the site",
                                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "actions": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of an action that belongs to a controller rule",
                                                                    "example": "1dfa7eda-a76d-4750-8b25-bff936829e2f",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "actionId": {
                                                                    "type": "string",
                                                                    "description": "The ID of the action to execute",
                                                                    "example": "SetTempReaderMode",
                                                                    "minLength": 1,
                                                                    "maxLength": 100
                                                                },
                                                                "parameters": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "id": {
                                                                                "type": "string",
                                                                                "description": "The ID of the parameter",
                                                                                "example": "Mode",
                                                                                "minLength": 1
                                                                            },
                                                                            "value": {
                                                                                "type": "string",
                                                                                "description": "The value of the parameter",
                                                                                "example": "Locked"
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "id",
                                                                            "value"
                                                                        ]
                                                                    }
                                                                }
                                                            },
                                                            "required": [
                                                                "actionId",
                                                                "parameters"
                                                            ]
                                                        }
                                                    },
                                                    "conditions": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the condition",
                                                                    "example": "a1889c83-cb46-4cfd-bf9a-678cb37565f9",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "eventType": {
                                                                    "type": "string",
                                                                    "description": "The event type that will trigger associated actions",
                                                                    "example": "DoorTemporarilyUnlockedNoEntryMade",
                                                                    "minLength": 1
                                                                },
                                                                "deviceId": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the device.",
                                                                    "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "scheduleId": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the schedule or \"Always\"",
                                                                    "example": "D7020B55-C97B-4941-8F6F-DFBB79C99487",
                                                                    "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|Always$"
                                                                }
                                                            },
                                                            "required": [
                                                                "eventType"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "enabled",
                                                    "canManuallyExecute"
                                                ]
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/credentials": {
            "get": {
                "summary": "List credentials",
                "parameters": [
                    {
                        "description": "OData filter expression to filter credentials. Supports filtering by:\n- personId (eq, ne, in) - UUID format\n- type (eq, ne, in) - Values: PHYSICAL, PIN, EXTERNAL, BLUE_DIAMOND, BLUE_DIAMOND_NFC, BLUE_DIAMOND_INSTALL\n- label (eq, ne, in) - String value\n- badgeId (eq, ne, in) - String value\n- credentialStatus (eq, ne, in) - Values: Active, Damaged, Other, Lost, Stolen, Active Updated\n- walletType (eq, ne, in) - Values: NONE, APPLE, GOOGLE\n- walletStatus (eq, ne, in) - Values: INVITATION_PENDING, INVITATION_EXPIRED, ACTIVE, SUSPENDED, REMOVED, FAILURE\n- lastActivated (eq, ne, gt, ge, lt, le) - ISO 8601 date format\n- expirationTimestamp (eq, ne, gt, ge, lt, le) - Numeric timestamp\n- lastModified (gt, ge, lt, le) - ISO 8601 date format",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the credential.",
                                                        "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "externalId": {
                                                        "type": "string",
                                                        "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                                        "example": "BADGE-001",
                                                        "minLength": 1,
                                                        "maxLength": 100
                                                    },
                                                    "personExternalId": {
                                                        "type": "string",
                                                        "description": "The external ID of the person.",
                                                        "example": "12345",
                                                        "minLength": 1,
                                                        "maxLength": 500
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of the credential.",
                                                        "enum": [
                                                            "PHYSICAL",
                                                            "PIN",
                                                            "EXTERNAL",
                                                            "BLUE_DIAMOND",
                                                            "BLUE_DIAMOND_NFC",
                                                            "BLUE_DIAMOND_INSTALL"
                                                        ]
                                                    },
                                                    "label": {
                                                        "type": "string",
                                                        "description": "The optional label of the credential. Must not be only whitespace.",
                                                        "example": "My Badge",
                                                        "maxLength": 500,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "badgeId": {
                                                        "type": "string",
                                                        "description": "The badge ID of the credential",
                                                        "example": "12345",
                                                        "pattern": "^[0-9]{1,17}$"
                                                    },
                                                    "credentialStatus": {
                                                        "type": "string",
                                                        "description": "The value of the credential status.",
                                                        "example": "Active",
                                                        "enum": [
                                                            "Active",
                                                            "Lost",
                                                            "Stolen",
                                                            "Terminated",
                                                            "Damaged",
                                                            "Other"
                                                        ]
                                                    },
                                                    "walletType": {
                                                        "type": "string",
                                                        "description": "The wallet ecosystem associated with the credential.",
                                                        "enum": [
                                                            "NONE",
                                                            "APPLE",
                                                            "GOOGLE"
                                                        ]
                                                    },
                                                    "walletStatus": {
                                                        "type": "string",
                                                        "description": "The wallet invitation or provisioning status associated with the credential.",
                                                        "enum": [
                                                            "INVITATION_PENDING",
                                                            "INVITATION_EXPIRED",
                                                            "ACTIVE",
                                                            "SUSPENDED",
                                                            "REMOVED",
                                                            "FAILURE"
                                                        ]
                                                    },
                                                    "lastActivated": {
                                                        "type": "integer",
                                                        "description": "The last time the credential was activated.",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "lastDeactivated": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last time the credential was deactivated.",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "expirationTimestamp": {
                                                        "type": "integer",
                                                        "description": "Each controller will expire the credential at this time in its own time zone.",
                                                        "example": "1633423600000"
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The time the credential was created",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last time the credential was modified",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/customEvents": {
            "get": {
                "summary": "List custom event definitions",
                "description": "#### Filtering fields and operators\n* id [eq, ne, in]\n    * Supported values: UUID\n    * Example: `id eq 'e3e8b4b3-d35a-45b7-82cf-7bd55ec68ae2'`\n* name [eq]\n    * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `name eq 'Door access alert'`\n* searchName [eq]\n    * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchName eq 'door access'`\n* customEventTypes [eq, ne, in]\n    * Supported values: string (1-500 chars); matches definitions configured for the event type.\n    * Example: `customEventTypes eq 'AccessGrantedNoEntryMade'`\n* hidden [eq]\n    * Supported values: `true` | `false`\n    * Example: `hidden eq true`\n* severity [eq, ne, in]\n    * Supported values: `Low`, `Medium`, `High`, `Critical`\n    * Example: `severity eq 'High'`\n* personId [eq, ne, in]\n    * Supported values: UUID; matches a configured person ID.\n    * Example: `personId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91'`\n* spaceId [eq, ne, in]\n    * Supported values: UUID; matches a configured space ID.\n    * Example: `spaceId eq '674b990a-f921-4d28-b6fb-e3bc56bd8a85'`\n* deviceId [eq, ne, in]\n    * Supported values: UUID; matches a configured device ID.\n    * Example: `deviceId eq 'aede1b34-e7b9-4d17-af9f-bfc60a429444'`\n* status [eq, ne, in]\n    * Supported values: `Pending`, `InProgress`, `Resolved`\n    * Example: `status eq 'Pending'`\n\n#### Filtering example\n* `(hidden eq false) and (severity eq 'High') and (personId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91')`",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the custom event definition",
                                                        "example": "adc640c3-748e-4df4-b3e8-1a3c63861c92",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "customEventTypes": {
                                                        "type": "array",
                                                        "description": "The event types that this definition applies to",
                                                        "items": {
                                                            "type": "string",
                                                            "example": "AccessGrantedNoEntryMade"
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the custom event definition",
                                                        "example": "Door access alert"
                                                    },
                                                    "severity": {
                                                        "type": "string",
                                                        "description": "The severity assigned to events raised by this definition",
                                                        "example": "High",
                                                        "enum": [
                                                            "Low",
                                                            "Medium",
                                                            "High",
                                                            "Critical"
                                                        ]
                                                    },
                                                    "hidden": {
                                                        "type": "boolean",
                                                        "description": "Whether events raised by this definition are hidden by default",
                                                        "example": false
                                                    },
                                                    "personIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the people configured for this definition",
                                                        "example": [
                                                            "2692764a-fea7-4aee-8dab-b22dc3c57e91"
                                                        ],
                                                        "items": {
                                                            "type": "string",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "spaceIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the spaces configured for this definition",
                                                        "example": [
                                                            "674b990a-f921-4d28-b6fb-e3bc56bd8a85"
                                                        ],
                                                        "items": {
                                                            "type": "string",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "deviceIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the devices configured for this definition",
                                                        "example": [
                                                            "aede1b34-e7b9-4d17-af9f-bfc60a429444"
                                                        ],
                                                        "items": {
                                                            "type": "string",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "eventResponse": {
                                                        "type": "object",
                                                        "description": "The default event response configured for this definition",
                                                        "properties": {
                                                            "status": {
                                                                "type": "string",
                                                                "description": "The default response status for events raised by this definition",
                                                                "example": "Pending",
                                                                "enum": [
                                                                    "Pending",
                                                                    "InProgress",
                                                                    "Resolved"
                                                                ]
                                                            },
                                                            "notes": {
                                                                "type": "string",
                                                                "description": "The default response notes for events raised by this definition",
                                                                "example": "Follow up with the site manager"
                                                            }
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "customEventTypes",
                                                    "name"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/devices": {
            "get": {
                "summary": "List devices",
                "description": "#### Filtering fields and operators\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n    * Example: `searchName eq 'Main Entrance'`\n* isElevatorDedicated [eq, ne]\n    * Supported values: `true` | `false`\n    * Example: `isElevatorDedicated eq true`\n* deviceType [eq, ne]\n    * Supported values: device type (non-gateway device types only).\n    * Example: `deviceType eq 'Reader'`\n* model [eq, ne]\n    * Supported values: device model ID.\n    * Example: `model eq 'Generic'`\n* driver [eq, ne]\n    * Supported values: driver ID.\n    * Example: `driver eq 'Mercury'`\n* hardwareDeviceId [eq]\n    * Supported values: string (1-500 chars).\n    * Example: `hardwareDeviceId eq '0'`\n* chooseSchedule [eq]\n    * Supported values: UUID\n    * Behavior: Schedule ID assigned to a device configuration for schedule-driven behavior.\n    * Example: `chooseSchedule eq '674b990a-f921-4d28-b6fb-e3bc56bd8a85'`\n* includeSite [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it includes devices assigned to the global site.\n    * Example: `includeSite eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* excludeSite [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it excludes devices assigned to the global site.\n    * Example: `excludeSite eq null`\n* siteId [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it includes devices assigned to the global site.\n    * Example: `siteId eq null`\n* isTopLevelDevice [eq]\n    * Supported values: `true` | `false`\n    * Behavior: Filters on whether the device is top-level (no `gatewayId`).\n    * Example: `isTopLevelDevice eq true`\n* id [eq]\n    * Supported values: UUID\n    * Example: `id eq '0ef28411-3022-430f-a7e9-12612a47b76a'`\n* iotDeviceId [eq]\n    * Supported values: string (1-20 chars)\n    * Example: `iotDeviceId eq '00180A123456'`\n* <statusType> [eq]\n    * Supported values: string (1-500 chars).\n    * Example: `CommunicationStatus eq 'Online'`\n\n#### Query parameters (non-OData)\n* includeDevices (true|false) - Determines whether or not to include the list of devices assigned to the space in the response.\n* includePeopleGroups (true|false) - Determines whether or not to include the list of people groups assigned to this space in the response.\n* isDefault (true|false) - Filters spaces that are configured to be automatically added to people when they are created.\n* includeParentDeviceDetails (true|false) - Determines whether or not to include device hierarchy details (parent/top-level).",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Whether to include device hierarchy details (parent/top-level).",
                        "name": "includeParentDeviceDetails",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    }
                ],
                "tags": [
                    "Devices"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the device.",
                                                        "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the device.",
                                                        "example": "Lobby Door Reader",
                                                        "minLength": 1
                                                    },
                                                    "deviceType": {
                                                        "type": "string",
                                                        "description": "The type of device",
                                                        "example": "Reader",
                                                        "minLength": 1
                                                    },
                                                    "driver": {
                                                        "type": "string",
                                                        "description": "The name of the device driver.",
                                                        "example": "Mercury"
                                                    },
                                                    "modelName": {
                                                        "type": "string",
                                                        "description": "The name of the device model.",
                                                        "example": "Reader"
                                                    },
                                                    "gatewayId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the gateway.",
                                                        "example": "2e4d94f8-7979-44d3-a4e3-ea6d368149da",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the site",
                                                            "example": "BA131D18-B982-423F-BC84-5816759E605B",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "timeZone": {
                                                        "type": "string",
                                                        "description": "The time zone of the device.",
                                                        "example": "America/New_York"
                                                    },
                                                    "statuses": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The ID of the status.",
                                                                    "example": "ReaderMode"
                                                                },
                                                                "conditionalProperties": {
                                                                    "type": "string"
                                                                },
                                                                "constraints": {
                                                                    "type": "string"
                                                                },
                                                                "forceDisplay": {
                                                                    "type": "boolean"
                                                                },
                                                                "hidden": {
                                                                    "type": "boolean"
                                                                },
                                                                "name": {
                                                                    "type": "string"
                                                                },
                                                                "normalValue": {
                                                                    "type": "string"
                                                                },
                                                                "normalValues": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "type": {
                                                                    "type": "string"
                                                                },
                                                                "value": {
                                                                    "type": "string",
                                                                    "description": "The current value of the status.",
                                                                    "example": "CardOnly"
                                                                },
                                                                "valueName": {
                                                                    "type": "string"
                                                                },
                                                                "lastModified": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The time the status value was last modified.",
                                                                    "example": "2025-03-03T16:41:00Z"
                                                                },
                                                                "trueName": {
                                                                    "type": "string"
                                                                },
                                                                "falseName": {
                                                                    "type": "string"
                                                                },
                                                                "values": {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "id": {
                                                                                "type": "string"
                                                                            },
                                                                            "name": {
                                                                                "type": "string"
                                                                            },
                                                                            "healthStatus": {
                                                                                "type": "string"
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "commands": {
                                                        "type": "array",
                                                        "description": "The commands supported by the device and their parameters.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The id of the command.",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The localized name of the command."
                                                                },
                                                                "commandType": {
                                                                    "type": "string",
                                                                    "description": "The type of the command, such as config or shortLived."
                                                                },
                                                                "isQuickAction": {
                                                                    "type": "boolean",
                                                                    "description": "Whether the command is available as a quick action."
                                                                },
                                                                "parameters": {
                                                                    "type": "array",
                                                                    "description": "The parameters accepted by the command.",
                                                                    "items": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "id": {
                                                                                "type": "string",
                                                                                "description": "The id of the command parameter."
                                                                            },
                                                                            "name": {
                                                                                "type": "string",
                                                                                "description": "The localized name of the command parameter."
                                                                            },
                                                                            "values": {
                                                                                "type": "array",
                                                                                "description": "The possible values for an Enumeration parameter.",
                                                                                "items": {
                                                                                    "type": "object",
                                                                                    "properties": {
                                                                                        "id": {
                                                                                            "type": "string",
                                                                                            "description": "The id of the enumeration value."
                                                                                        },
                                                                                        "name": {
                                                                                            "type": "string",
                                                                                            "description": "The localized name of the enumeration value."
                                                                                        }
                                                                                    },
                                                                                    "required": [
                                                                                        "id",
                                                                                        "name"
                                                                                    ]
                                                                                }
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "id",
                                                                            "name"
                                                                        ]
                                                                    }
                                                                }
                                                            },
                                                            "required": [
                                                                "id",
                                                                "name"
                                                            ]
                                                        }
                                                    },
                                                    "topLevelDevice": {
                                                        "type": "object",
                                                        "description": "The top-level device related to this device.",
                                                        "example": {
                                                            "id": "b7e133aa-532a-4d3a-843c-5ca5b04dd5f5",
                                                            "name": "NY Access Gateway",
                                                            "type": "Gateway",
                                                            "model": "Standard"
                                                        },
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the related device.",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The name of the related device."
                                                            },
                                                            "deviceType": {
                                                                "type": "string",
                                                                "description": "The device type of the related device."
                                                            },
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the related device."
                                                            },
                                                            "model": {
                                                                "type": "string",
                                                                "description": "The model of the related device."
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ]
                                                    },
                                                    "parentDevice": {
                                                        "type": "object",
                                                        "description": "The parent device related to this device.",
                                                        "example": {
                                                            "id": "6ae10eb8-805c-4466-bcc2-047543440307",
                                                            "name": "Retail Store Controller",
                                                            "deviceType": "AccessController",
                                                            "model": "LnlX2220"
                                                        },
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the related device.",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The name of the related device."
                                                            },
                                                            "deviceType": {
                                                                "type": "string",
                                                                "description": "The device type of the related device."
                                                            },
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the related device."
                                                            },
                                                            "model": {
                                                                "type": "string",
                                                                "description": "The model of the related device."
                                                            }
                                                        },
                                                        "required": [
                                                            "id",
                                                            "name"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "deviceType",
                                                    "modelName"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/events": {
            "get": {
                "summary": "List events",
                "description": "#### Filtering fields and operators\n* timestamp [gt, lt, ge, le]\n    * Value format: ISO 8601 with timezone (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds, or an offset like `-05:00`)\n    * Example: `timestamp ge '2025-03-03T16:15:59.123Z'`\n* eventProcessedTimestamp [gt, lt, ge, le]\n    * Value format: ISO 8601 with timezone (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds, or an offset like `+01:00`)\n    * Example: `eventProcessedTimestamp lt '2025-03-04T14:01:29Z'`\n* personId [eq, ne, in]\n    * Supported values: UUID (e.g., `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`)\n    * Example: `personId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91'`\n* spaceId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `spaceId in ('674b990a-f921-4d28-b6fb-e3bc56bd8a85','0ef28411-3022-430f-a7e9-12612a47b76a')`\n* deviceId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `deviceId ne 'aede1b34-e7b9-4d17-af9f-bfc60a429444'`\n* deviceName [eq, ne, in]\n    * Supported values: string (1-500 chars). Matching is case-insensitive.\n    * Example: `deviceName eq 'Front Door Reader'`\n* deviceType [eq, in]\n    * Supported values: string (1-500 chars)\n    * Example: `deviceType eq 'DoorReader'`\n* guestPassId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `guestPassId in ('d9b22d26-d64d-4e8e-a306-9abca8a0d03b')`\n* severity [eq, ne, in]\n    * Supported values: `Critical`, `High`, `Medium`, `Low`\n    * Example: `severity in ('High','Critical')`\n* eventType [eq, ne, in]\n    * Supported values: string (1-500 chars)\n    * Example: `eventType eq 'AccessGrantedReaderUnlocked'`\n* originalEventType [eq, ne, in]\n    * Supported values: string (1-500 chars). Filters custom events by their source event type.\n    * Example: `originalEventType eq 'AccessGrantedEntryMade'`\n* customEventConfigId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `customEventConfigId eq 'e3e8b4b3-d35a-45b7-82cf-7bd55ec68ae2'`\n* hasSpace [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasSpace eq true`\n* hasPerson [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasPerson eq false`\n* hasDevice [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasDevice eq true`\n* searchText [eq]\n    * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n    * Example: `searchText eq 'door'`\n* responseStatus [eq]\n    * Supported values: `Pending`, `InProgress`, `Resolved`\n    * Example: `responseStatus eq 'Pending'`\n* siteId [in]\n    * Supported values: UUID\n    * Example: `siteId in ('8993ba6a-00fe-4f42-b665-bbd0cb90bd29','d9b22d26-d64d-4e8e-a306-9abca8a0d03b')`\n\n#### Filtering examples\n* (eventProcessedTimestamp gt '2025-03-04T14:01:29Z') and (eventType in\n    ('AccessGrantedEntryMadePINUsed','AccessGrantedNoEntryMadePINUsed')) and\n    (personId eq 'cfd4cda6-6211-442c-80e1-e1bd7576b3b8')\n\n#### Query parameters (non-OData)\n* $sortBy - Field to sort results by\n* $sortDirection - Sort direction\n* includeParentDeviceDetails (true|false) - Determines whether or not to include\n    device hierarchy details (parent/top-level).\n* includeHidden (true|false) - Determines whether or not to include custom events\n    whose definition is hidden. Defaults to false.",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 200,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The field to sort by.",
                        "name": "$sortBy",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "eventProcessedTimestamp",
                                "timestamp"
                            ],
                            "default": "eventProcessedTimestamp"
                        }
                    },
                    {
                        "description": "The direction to sort by.",
                        "name": "$sortDirection",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "asc",
                                "desc"
                            ],
                            "default": "asc"
                        }
                    },
                    {
                        "description": "Whether to include device hierarchy details (parent/top-level).",
                        "name": "includeParentDeviceDetails",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "description": "Whether to include custom events whose definition is hidden.",
                        "name": "includeHidden",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    }
                ],
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the event",
                                                        "example": "8835d4fa-8d69-4ff5-9b6a-468dc5f175fd",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "eventType": {
                                                        "type": "string",
                                                        "description": "The type of event",
                                                        "example": "AccessGrantedEntryMade"
                                                    },
                                                    "eventTypeLocalized": {
                                                        "type": "string",
                                                        "description": "The localized event type",
                                                        "example": "Access Granted - Entry Occurred"
                                                    },
                                                    "severity": {
                                                        "type": "string",
                                                        "description": "The severity of the event",
                                                        "example": "Low"
                                                    },
                                                    "timestamp": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The timestamp of when the event occurred",
                                                        "example": "2021-10-05T15:00:00.000Z"
                                                    },
                                                    "timeZone": {
                                                        "type": "string",
                                                        "description": "The IANA time zone code of where the event occurred",
                                                        "example": "America/New_York"
                                                    },
                                                    "processedTimestamp": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The timestamp of when the event was processed",
                                                        "example": "2021-10-05T15:00:00.000Z"
                                                    },
                                                    "automation": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the automation",
                                                                "example": "f02a9bd8-301f-401c-a2c0-97082befd905",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The name of the automation",
                                                                "example": "Unlock Front Door",
                                                                "maxLength": 500
                                                            }
                                                        }
                                                    },
                                                    "trigger": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the trigger",
                                                                "example": "e92ea4dc-f70f-436a-91d9-ddbde2136da2",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the trigger",
                                                                "example": "AugmentedEvent"
                                                            }
                                                        }
                                                    },
                                                    "device": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the device.",
                                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of device",
                                                                "example": "Reader",
                                                                "minLength": 1
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The name of the device.",
                                                                "example": "Lobby Door Reader",
                                                                "minLength": 1
                                                            },
                                                            "gatewayId": {
                                                                "type": "string",
                                                                "description": "The unique ID of the gateway.",
                                                                "example": "2e4d94f8-7979-44d3-a4e3-ea6d368149da",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "parentDevice": {
                                                                "type": "object",
                                                                "example": {
                                                                    "id": "6ae10eb8-805c-4466-bcc2-047543440307",
                                                                    "name": "Retail Store Controller",
                                                                    "deviceType": "AccessController",
                                                                    "model": "LnlX2220"
                                                                },
                                                                "properties": {
                                                                    "id": {
                                                                        "type": "string",
                                                                        "description": "The unique ID of the related device.",
                                                                        "x-format": {
                                                                            "guid": true
                                                                        }
                                                                    },
                                                                    "name": {
                                                                        "type": "string",
                                                                        "description": "The name of the related device."
                                                                    },
                                                                    "deviceType": {
                                                                        "type": "string",
                                                                        "description": "The device type of the related device."
                                                                    },
                                                                    "type": {
                                                                        "type": "string",
                                                                        "description": "The type of the related device."
                                                                    },
                                                                    "model": {
                                                                        "type": "string",
                                                                        "description": "The model of the related device."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "id",
                                                                    "name"
                                                                ]
                                                            },
                                                            "topLevelDevice": {
                                                                "type": "object",
                                                                "example": {
                                                                    "id": "b7e133aa-532a-4d3a-843c-5ca5b04dd5f5",
                                                                    "name": "NY Access Gateway",
                                                                    "type": "Gateway",
                                                                    "model": "Standard"
                                                                },
                                                                "properties": {
                                                                    "id": {
                                                                        "type": "string",
                                                                        "description": "The unique ID of the related device.",
                                                                        "x-format": {
                                                                            "guid": true
                                                                        }
                                                                    },
                                                                    "name": {
                                                                        "type": "string",
                                                                        "description": "The name of the related device."
                                                                    },
                                                                    "deviceType": {
                                                                        "type": "string",
                                                                        "description": "The device type of the related device."
                                                                    },
                                                                    "type": {
                                                                        "type": "string",
                                                                        "description": "The type of the related device."
                                                                    },
                                                                    "model": {
                                                                        "type": "string",
                                                                        "description": "The model of the related device."
                                                                    }
                                                                },
                                                                "required": [
                                                                    "id",
                                                                    "name"
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "space": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the space",
                                                                "example": "8115F002-58A9-49EB-9EED-FA683C8A04EF",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The name of the space",
                                                                "example": "Front Lobby",
                                                                "minLength": 1
                                                            }
                                                        }
                                                    },
                                                    "cameras": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the camera.",
                                                                    "example": "1c874a28-22d6-470c-8b1b-5b243aff487b",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "cameraUuid": {
                                                                    "type": "string",
                                                                    "description": "The Rhombus camera UUID. Only present for Rhombus cameras and video intercoms.",
                                                                    "example": "rhombus-60a3c159-ae79-4857-9e32-ef2042f90a3d"
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The name of the camera",
                                                                    "example": "Lobby Camera 1"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "credential": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the credential.",
                                                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "type": {
                                                                "type": "string",
                                                                "description": "The type of the credential.",
                                                                "enum": [
                                                                    "PHYSICAL",
                                                                    "PIN",
                                                                    "EXTERNAL",
                                                                    "BLUE_DIAMOND",
                                                                    "BLUE_DIAMOND_NFC",
                                                                    "BLUE_DIAMOND_INSTALL"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string",
                                                                "description": "The optional label of the credential. Must not be only whitespace.",
                                                                "example": "My Badge",
                                                                "maxLength": 500,
                                                                "pattern": "^(?!\\s*$).+"
                                                            },
                                                            "credentialStatus": {
                                                                "type": "string",
                                                                "description": "The value of the credential status.",
                                                                "example": "Active",
                                                                "enum": [
                                                                    "Active",
                                                                    "Lost",
                                                                    "Stolen",
                                                                    "Terminated",
                                                                    "Damaged",
                                                                    "Other"
                                                                ]
                                                            },
                                                            "badgeId": {
                                                                "type": "string",
                                                                "description": "The badge ID of the credential",
                                                                "example": "12345",
                                                                "pattern": "^[0-9]{1,17}$"
                                                            }
                                                        }
                                                    },
                                                    "person": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the person.",
                                                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "firstName": {
                                                                "type": "string",
                                                                "description": "The first name of the person.",
                                                                "example": "John",
                                                                "maxLength": 500
                                                            },
                                                            "lastName": {
                                                                "type": "string",
                                                                "description": "The last name of the person.",
                                                                "example": "Doe",
                                                                "maxLength": 500
                                                            },
                                                            "hasPhoto": {
                                                                "type": "boolean",
                                                                "description": "Whether the person has a photo.",
                                                                "example": false
                                                            }
                                                        }
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "description": "The unique IDs of the sites associated with the event",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the site",
                                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "sites": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the site",
                                                                    "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The name of the site",
                                                                    "example": "New York Site",
                                                                    "minLength": 1
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "responseHistory": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "status": {
                                                                    "type": "string",
                                                                    "description": "The status of the event",
                                                                    "example": "Pending",
                                                                    "enum": [
                                                                        "Pending",
                                                                        "InProgress",
                                                                        "Resolved"
                                                                    ]
                                                                },
                                                                "notes": {
                                                                    "type": "string",
                                                                    "description": "The notes for the event status",
                                                                    "example": "The event is pending"
                                                                },
                                                                "updatedBy": {
                                                                    "type": "string",
                                                                    "description": "The name of the person who updated the event status",
                                                                    "example": "Lisa Lake"
                                                                },
                                                                "updatedAt": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The timestamp of the event status update",
                                                                    "example": "2021-10-05T15:00:00.000Z"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "hidden": {
                                                        "type": "boolean",
                                                        "description": "Whether the event is hidden. False when no hidden flag is stored."
                                                    },
                                                    "eventDelayed": {
                                                        "type": "boolean",
                                                        "description": "Whether processing of the event was delayed"
                                                    },
                                                    "customEventConfigId": {
                                                        "type": "string",
                                                        "description": "The ID of the custom event definition that generated this event",
                                                        "example": "910a3230-2114-42c8-a097-70b2135db4da",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "originalEvent": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The ID of the original event",
                                                                "example": "9b568a66-8e61-46e7-8d5a-364e6d0850a4",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "eventType": {
                                                                "type": "string",
                                                                "description": "The type of the original event",
                                                                "example": "AccessGrantedEntryMade"
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/gateways": {
            "get": {
                "summary": "List gateways",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Devices"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the gateway.",
                                                        "example": "6aa04c16-6c32-46a6-bba9-d1b50b864ed7",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the gateway.",
                                                        "example": "HQ Gateway",
                                                        "minLength": 1
                                                    },
                                                    "iotDeviceId": {
                                                        "type": "string",
                                                        "description": "The IoT device ID of the gateway.",
                                                        "example": "123456",
                                                        "maxLength": 128
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of the gateway.",
                                                        "example": "Gateway",
                                                        "enum": [
                                                            "Gateway",
                                                            "Video"
                                                        ]
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the sites assigned to a gateway.",
                                                        "example": [
                                                            "404cee63-0696-4923-b4c6-09f7ec7e733c"
                                                        ],
                                                        "maxItems": 1,
                                                        "items": {
                                                            "type": "string",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "statuses": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The ID of the status.",
                                                                    "example": "FirmwareUpdateRequired"
                                                                },
                                                                "type": {
                                                                    "type": "string",
                                                                    "description": "The type of the status.",
                                                                    "example": "Boolean"
                                                                },
                                                                "value": {
                                                                    "type": "boolean",
                                                                    "description": "The current value of the status.",
                                                                    "example": true
                                                                },
                                                                "normalValue": {
                                                                    "type": "boolean",
                                                                    "description": "The expected normal value of the status.",
                                                                    "example": false
                                                                },
                                                                "lastModified": {
                                                                    "type": "string",
                                                                    "format": "date-time",
                                                                    "description": "The time the status value was last modified.",
                                                                    "example": "2026-04-12T12:08:00Z"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "version": {
                                                        "type": "integer",
                                                        "description": "An incrementing version number, included in updates to ensure atomicity.",
                                                        "example": 1,
                                                        "minimum": 1
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "version"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/holidays": {
            "get": {
                "summary": "List holidays",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Holidays"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the holiday",
                                                        "example": "310DE9A2-2BBA-4770-94F8-1B57D1D8AAC9",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the holiday",
                                                        "example": "Earth Day",
                                                        "minLength": 1,
                                                        "maxLength": 500,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "date": {
                                                        "type": "string",
                                                        "description": "The date of the holiday",
                                                        "example": "2025-04-22"
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "date"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add a new holiday",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the holiday",
                                        "example": "Earth Day",
                                        "minLength": 1,
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "date": {
                                        "type": "string",
                                        "description": "The date of the holiday",
                                        "example": "2025-04-22"
                                    }
                                },
                                "required": [
                                    "name",
                                    "date"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Holidays"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the holiday",
                                            "example": "310DE9A2-2BBA-4770-94F8-1B57D1D8AAC9",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/lockdowns": {
            "get": {
                "summary": "List lockdowns",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Lockdowns"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "Lockdown profile ID.",
                                                        "example": "1cdf7e99-830f-4b5f-ba4a-6c42cb57d1f4",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the lockdown profile.",
                                                        "example": "Exterior Lockdown",
                                                        "minLength": 1,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "deviceIdsList": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the device.",
                                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "Current status of the lockdown profile.",
                                                        "example": "Active"
                                                    },
                                                    "lastRunDate": {
                                                        "type": "string",
                                                        "description": "Time of last activation of the lockdown profile.",
                                                        "example": "2024-06-10T15:56:51.004+00:00",
                                                        "x-format": {
                                                            "isoDate": true
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "deviceIdsList",
                                                    "status"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/passes": {
            "get": {
                "summary": "List guest passes",
                "description": "#### Filtering fields and operators\n* usagesRemaining [eq]\n  * Supported values: integer (can be negative)\n  * Behavior: Filters by remaining guest pass usages computed as `(usageLimit - numberOfUsageRecords)`.\n  * Example: `usagesRemaining eq 10`",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the guest pass.",
                                                        "example": "6a60ee8b-9100-4d4e-bb28-9ff07045c331",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "label": {
                                                        "type": "string",
                                                        "description": "The label of the guest pass.",
                                                        "example": "Visitor Guest Pass"
                                                    },
                                                    "validFrom": {
                                                        "type": "string",
                                                        "description": "The valid from (start) timestamp of the guest pass.",
                                                        "example": "2021-01-01T00:00:00Z"
                                                    },
                                                    "validTo": {
                                                        "type": "string",
                                                        "description": "The valid to (end) timestamp of the guest pass.",
                                                        "example": "2021-01-02T00:00:00Z"
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "description": "When the pass was created",
                                                        "example": "2025-02-02T07:56:30.134+00:00",
                                                        "x-format": {
                                                            "isoDate": true
                                                        }
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "description": "The last time the pass was modified",
                                                        "example": "2025-02-02T07:54:09.441+00:00",
                                                        "x-format": {
                                                            "isoDate": true
                                                        }
                                                    },
                                                    "usageLimit": {
                                                        "type": "number",
                                                        "description": "The usage limit for reader access of the guest pass",
                                                        "example": "7"
                                                    },
                                                    "usages": {
                                                        "type": "array",
                                                        "description": "array of usage records",
                                                        "items": {
                                                            "type": "object"
                                                        }
                                                    },
                                                    "numberOfReaders": {
                                                        "type": "number",
                                                        "description": "The number of readers assigned to the guest pass",
                                                        "example": 2
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the sites the guest pass is associated with.",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the site",
                                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "label",
                                                    "validFrom",
                                                    "validTo",
                                                    "created",
                                                    "lastModified",
                                                    "numberOfReaders"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create a guest pass",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "label": {
                                        "type": "string",
                                        "description": "The label of the guest pass.",
                                        "example": "Visitor Guest Pass"
                                    },
                                    "validFrom": {
                                        "type": "string",
                                        "description": "The valid from (start) timestamp of the guest pass.",
                                        "example": "2021-01-01T00:00:00Z"
                                    },
                                    "validTo": {
                                        "type": "string",
                                        "description": "The valid to (end) timestamp of the guest pass.",
                                        "example": "2021-01-02T00:00:00Z"
                                    },
                                    "readers": {
                                        "type": "array",
                                        "description": "The list of readers to assign to the pass",
                                        "example": "[\"112ec58a-a012-1ac4-8223-c866d81332d1, 414ec59a-a022-1ac4-8223-c866d81332d5\"]",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the reader.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "usageLimit": {
                                        "type": "number",
                                        "description": "The usage limit for reader access of the guest pass",
                                        "example": "7"
                                    },
                                    "autoResetUsage": {
                                        "type": "boolean",
                                        "description": "Auto reset usage for a guest pass at the end of every day",
                                        "example": false
                                    },
                                    "emailRecipients": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "Email address to send guest pass to",
                                            "example": "example@email.com",
                                            "x-format": {
                                                "email": {
                                                    "tlds": false
                                                }
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "label",
                                    "validFrom",
                                    "validTo"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the guest pass.",
                                            "example": "6a60ee8b-9100-4d4e-bb28-9ff07045c331",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/reports": {
            "get": {
                "summary": "List reports",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Only retrieve reports with the given definitionId.",
                        "name": "definitionId",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "activityReport",
                                "auditReport",
                                "dailyUniqueAccessReport",
                                "deviceReport",
                                "peopleAccessReport",
                                "peopleReport"
                            ]
                        }
                    }
                ],
                "tags": [
                    "Reports"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the report.",
                                                        "example": "22caba50-a407-475e-af71-87149ec4efd1",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "definitionId": {
                                                        "type": "string",
                                                        "description": "The definitionId of the report.",
                                                        "example": "peopleReport",
                                                        "enum": [
                                                            "activityReport",
                                                            "auditReport",
                                                            "dailyUniqueAccessReport",
                                                            "deviceReport",
                                                            "peopleAccessReport",
                                                            "peopleReport"
                                                        ]
                                                    },
                                                    "formats": {
                                                        "type": "array",
                                                        "description": "The available formats of the report.",
                                                        "example": [
                                                            "pdf",
                                                            "xlsx",
                                                            "csv"
                                                        ],
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The format of the report.",
                                                            "example": "pdf",
                                                            "enum": [
                                                                "pdf",
                                                                "xlsx",
                                                                "csv"
                                                            ]
                                                        }
                                                    },
                                                    "status": {
                                                        "type": "string",
                                                        "description": "The status of the report",
                                                        "example": "available"
                                                    },
                                                    "startDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The start date of the report in ISO8601 format.",
                                                        "example": "2023-10-01T12:00:00Z"
                                                    },
                                                    "endDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The end date of the report in ISO8601 format.",
                                                        "example": "2023-10-01T12:00:00Z"
                                                    },
                                                    "createdAtDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The date and time that the report was created in ISO8601 format.",
                                                        "example": "2023-10-01T12:00:00Z"
                                                    },
                                                    "requestedDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The date and time that the report was requested in ISO8601 format.",
                                                        "example": "2023-10-01T12:00:00Z"
                                                    },
                                                    "expirationDate": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The date and time that the report will expire.",
                                                        "example": "2023-10-01T12:00:00Z"
                                                    },
                                                    "language": {
                                                        "type": "string",
                                                        "description": "The language of the report.",
                                                        "example": "en-US",
                                                        "default": "en-US"
                                                    },
                                                    "odataFilter": {
                                                        "type": "string",
                                                        "description": "OData filter string to apply to the report.",
                                                        "example": "timestamp ge '2025-11-01T00:00:00Z' and timestamp le '2025-11-25T00:00:00Z'"
                                                    },
                                                    "files": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "filePath": {
                                                                    "type": "string",
                                                                    "description": "The filepath of the report file."
                                                                },
                                                                "format": {
                                                                    "type": "string",
                                                                    "description": "The format of the report file.",
                                                                    "example": "pdf",
                                                                    "enum": [
                                                                        "pdf",
                                                                        "xlsx",
                                                                        "csv"
                                                                    ]
                                                                },
                                                                "status": {
                                                                    "type": "string",
                                                                    "description": "The status of the report file.",
                                                                    "example": "available"
                                                                }
                                                            }
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "status",
                                                    "createdAtDate",
                                                    "expirationDate",
                                                    "language"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Generate a new report",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "definitionId": {
                                        "type": "string",
                                        "description": "The definitionId of the report.",
                                        "example": "peopleReport",
                                        "enum": [
                                            "activityReport",
                                            "auditReport",
                                            "dailyUniqueAccessReport",
                                            "deviceReport",
                                            "peopleAccessReport",
                                            "peopleReport"
                                        ]
                                    },
                                    "formats": {
                                        "x-alternatives": [
                                            {
                                                "type": "array",
                                                "description": "The available formats of the report.",
                                                "example": [
                                                    "pdf",
                                                    "xlsx",
                                                    "csv"
                                                ],
                                                "minItems": 1,
                                                "items": {
                                                    "type": "string",
                                                    "description": "The format of the report.",
                                                    "example": "pdf",
                                                    "enum": [
                                                        "pdf",
                                                        "xlsx",
                                                        "csv"
                                                    ]
                                                }
                                            },
                                            {
                                                "x-alternatives": [
                                                    {
                                                        "type": "array",
                                                        "example": [
                                                            "pdf"
                                                        ],
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "string",
                                                            "enum": [
                                                                "pdf"
                                                            ]
                                                        }
                                                    },
                                                    {
                                                        "type": "array",
                                                        "example": [
                                                            "pdf",
                                                            "xlsx"
                                                        ],
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The format of the report.",
                                                            "example": "pdf",
                                                            "enum": [
                                                                "pdf",
                                                                "xlsx"
                                                            ]
                                                        }
                                                    }
                                                ],
                                                "type": "array",
                                                "example": [
                                                    "pdf"
                                                ],
                                                "minItems": 1,
                                                "items": {
                                                    "type": "string",
                                                    "enum": [
                                                        "pdf"
                                                    ]
                                                }
                                            }
                                        ],
                                        "type": "array",
                                        "description": "The available formats of the report.",
                                        "example": [
                                            "pdf",
                                            "xlsx",
                                            "csv"
                                        ],
                                        "minItems": 1,
                                        "items": {
                                            "type": "string",
                                            "description": "The format of the report.",
                                            "example": "pdf",
                                            "enum": [
                                                "pdf",
                                                "xlsx",
                                                "csv"
                                            ]
                                        }
                                    },
                                    "language": {
                                        "type": "string",
                                        "description": "The language of the report.",
                                        "example": "en-US",
                                        "default": "en-US"
                                    },
                                    "$filter": {
                                        "type": "string",
                                        "description": "OData filter string to apply to the report. If definitionId equals 'activityReport', the filter must include the start and end timestamps",
                                        "example": "timestamp ge '2025-11-01T00:00:00Z' and timestamp le '2025-11-25T00:00:00Z'"
                                    }
                                },
                                "required": [
                                    "definitionId",
                                    "formats"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Reports"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the report.",
                                            "example": "22caba50-a407-475e-af71-87149ec4efd1",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/schedules": {
            "get": {
                "summary": "List schedules",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Schedules"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the schedule",
                                                        "example": "8E947A0F-6EC6-41E7-9323-42C14BBDC429",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the schedule",
                                                        "example": "Day Shift",
                                                        "minLength": 1,
                                                        "maxLength": 500,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "color": {
                                                        "type": "string",
                                                        "description": "The hex color value of the schedule",
                                                        "example": "#A60000",
                                                        "pattern": "^#[A-Fa-f0-9]{3,6}$"
                                                    },
                                                    "intervals": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the interval",
                                                                    "example": "BF8801E3-862C-4AD8-819E-A64FB11BDC72",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "days": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "Sun": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Sunday is part of this schedule",
                                                                            "example": false
                                                                        },
                                                                        "Mon": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Monday is part of this schedule",
                                                                            "example": true
                                                                        },
                                                                        "Tue": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Tuesday is part of this schedule",
                                                                            "example": true
                                                                        },
                                                                        "Wed": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Wednesday is part of this schedule",
                                                                            "example": true
                                                                        },
                                                                        "Thu": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Thursday is part of this schedule",
                                                                            "example": true
                                                                        },
                                                                        "Fri": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Friday is part of this schedule",
                                                                            "example": true
                                                                        },
                                                                        "Sat": {
                                                                            "type": "boolean",
                                                                            "description": "Defines if Saturday is part of this schedule",
                                                                            "example": false
                                                                        }
                                                                    }
                                                                },
                                                                "startTime": {
                                                                    "type": "string",
                                                                    "description": "Time of day when the schedule starts to apply",
                                                                    "example": "10:00",
                                                                    "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                                },
                                                                "endTime": {
                                                                    "type": "string",
                                                                    "description": "Time of day when the schedule stops applying",
                                                                    "example": "11:00",
                                                                    "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "holidayApply": {
                                                        "type": "boolean",
                                                        "description": "Defines if holidays are treated as an exception to this schedule",
                                                        "example": true
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "color",
                                                    "intervals",
                                                    "holidayApply"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Add a new schedule",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the schedule",
                                        "example": "Day Shift",
                                        "minLength": 1,
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "color": {
                                        "type": "string",
                                        "description": "The hex color value of the schedule",
                                        "example": "#A60000",
                                        "pattern": "^#[A-Fa-f0-9]{3,6}$"
                                    },
                                    "intervals": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the interval",
                                                    "example": "BF8801E3-862C-4AD8-819E-A64FB11BDC72",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "days": {
                                                    "type": "object",
                                                    "properties": {
                                                        "Sun": {
                                                            "type": "boolean",
                                                            "description": "Defines if Sunday is part of this schedule",
                                                            "example": false
                                                        },
                                                        "Mon": {
                                                            "type": "boolean",
                                                            "description": "Defines if Monday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Tue": {
                                                            "type": "boolean",
                                                            "description": "Defines if Tuesday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Wed": {
                                                            "type": "boolean",
                                                            "description": "Defines if Wednesday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Thu": {
                                                            "type": "boolean",
                                                            "description": "Defines if Thursday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Fri": {
                                                            "type": "boolean",
                                                            "description": "Defines if Friday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Sat": {
                                                            "type": "boolean",
                                                            "description": "Defines if Saturday is part of this schedule",
                                                            "example": false
                                                        }
                                                    }
                                                },
                                                "startTime": {
                                                    "type": "string",
                                                    "description": "Time of day when the schedule starts to apply",
                                                    "example": "10:00",
                                                    "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                },
                                                "endTime": {
                                                    "type": "string",
                                                    "description": "Time of day when the schedule stops applying",
                                                    "example": "11:00",
                                                    "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                }
                                            }
                                        }
                                    },
                                    "holidayApply": {
                                        "type": "boolean",
                                        "description": "Defines if holidays are treated as an exception to this schedule",
                                        "example": true
                                    }
                                },
                                "required": [
                                    "name",
                                    "color",
                                    "intervals",
                                    "holidayApply"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Schedules"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the schedule",
                                            "example": "8E947A0F-6EC6-41E7-9323-42C14BBDC429",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/search": {
            "get": {
                "summary": "Search across various entities",
                "parameters": [
                    {
                        "description": "Search query string",
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Page number",
                        "name": "pageNumber",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Search"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "results": {
                                            "type": "array",
                                            "description": "Array of search results from all entity types",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "entityId": {
                                                        "type": "string",
                                                        "description": "Unique identifier of the entity",
                                                        "example": "550e8400-e29b-41d4-a716-446655440000"
                                                    },
                                                    "entityType": {
                                                        "type": "string",
                                                        "description": "Type of entity (e.g., gateways, people)",
                                                        "example": "people"
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "Name of the entity"
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "Specific type within the entity category"
                                                    },
                                                    "score": {
                                                        "type": "number",
                                                        "description": "Relevance score (optional)"
                                                    }
                                                }
                                            }
                                        },
                                        "pagination": {
                                            "type": "object",
                                            "description": "Pagination information",
                                            "properties": {
                                                "pageNumber": {
                                                    "type": "integer",
                                                    "description": "Current page number",
                                                    "example": 1
                                                },
                                                "hasMore": {
                                                    "type": "boolean",
                                                    "description": "Indicates if there are more results available",
                                                    "example": true
                                                },
                                                "errors": {
                                                    "type": "array",
                                                    "description": "Errors encountered during search (if any)",
                                                    "example": [],
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "entityType": {
                                                                "type": "string",
                                                                "description": "Entity type that encountered an error",
                                                                "example": "devices"
                                                            },
                                                            "error": {
                                                                "type": "string",
                                                                "description": "Error message",
                                                                "example": "Service unavailable"
                                                            }
                                                        }
                                                    }
                                                }
                                            },
                                            "required": [
                                                "pageNumber",
                                                "hasMore"
                                            ]
                                        },
                                        "q": {
                                            "type": "string",
                                            "description": "The search query that was executed"
                                        },
                                        "executionTime": {
                                            "type": "integer",
                                            "description": "Time taken to execute the search in milliseconds"
                                        }
                                    },
                                    "required": [
                                        "results",
                                        "pagination",
                                        "q",
                                        "executionTime"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/sites": {
            "get": {
                "summary": "List sites",
                "description": "#### Filtering fields and operators\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n  * Example: `searchName eq 'york'`\n* name [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n  * Example: `name eq 'New York'`\n\n#### Filtering examples:\n* searchName eq 'site'\n* name eq 'honeywell site'",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the site",
                                                        "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the site",
                                                        "example": "New York Site",
                                                        "minLength": 1
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create a new site",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the site",
                                        "example": "New York Site",
                                        "minLength": 1
                                    }
                                },
                                "required": [
                                    "name"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/spaces": {
            "get": {
                "summary": "List spaces",
                "description": "#### Filtering fields and operators\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n  * Example: `searchName eq 'Entrance'`\n* id [eq, in]\n  * Supported values: UUID\n  * Example: `id in ('674b990a-f921-4d28-b6fb-e3bc56bd8a85', '0ef28411-3022-430f-a7e9-12612a47b76a')`\n* siteId [eq]\n  * Supported values: UUID or `null`. When `null` is sent, it includes spaces assigned to the global site (no site assignment).\n  * Example: `siteId eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* hasMaxNumberOfPeople [eq]\n  * Supported values: `true` | `false`\n  * Behavior: Checks if the space has 5000 or more assigned people, as this is the maximum allowed.\n  * Example: `hasMaxNumberOfPeople eq true`\n* type [eq]\n  * Supported values: `area`, `parking_lot`, `building` , `location`, `region`\n  * Example: `type eq 'area'`\n\n#### Filtering examples:\n* searchName eq 'Main Entrance'\n* siteId eq null\n* (type eq 'building') and (searchName eq 'HQ')\n\n#### Query parameters (non-OData)\n* includeDevices (true|false) - Determines whether or not to include the list of devices assigned to the space in the response.\n* includePeopleGroups (true|false) - Determines whether or not to include the list of people groups assigned to this space in the response.\n* isDefault (true|false) - Filters spaces that are configured to be automatically added to people when they are created.",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "includeDevices",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "name": "includePeopleGroups",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    },
                    {
                        "description": "Indicates whether or not new people are automatically assigned to the group.",
                        "name": "isDefault",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Spaces"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the space",
                                                        "example": "8115F002-58A9-49EB-9EED-FA683C8A04EF",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the space",
                                                        "example": "Front Lobby",
                                                        "minLength": 1
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of space (area, parking_lot, building, location, or region)",
                                                        "example": "area",
                                                        "default": "area",
                                                        "enum": [
                                                            "area",
                                                            "parking_lot",
                                                            "building",
                                                            "location",
                                                            "region"
                                                        ]
                                                    },
                                                    "numberOfDevices": {
                                                        "type": "number",
                                                        "description": "The number of devices assigned to the space",
                                                        "example": 2
                                                    },
                                                    "numberOfInputs": {
                                                        "type": "number",
                                                        "description": "The number of inputs assigned to the space",
                                                        "example": 1
                                                    },
                                                    "numberOfOutputs": {
                                                        "type": "number",
                                                        "description": "The number of outputs assigned to the space",
                                                        "example": 2
                                                    },
                                                    "numberOfCameras": {
                                                        "type": "number",
                                                        "description": "The number of cameras assigned to the space",
                                                        "example": 1
                                                    },
                                                    "numberOfPeople": {
                                                        "type": "number",
                                                        "description": "The number of people assigned to the space",
                                                        "example": 3
                                                    },
                                                    "numberOfPeopleGroups": {
                                                        "type": "number",
                                                        "description": "The number of people groups assigned to the space",
                                                        "example": 2
                                                    },
                                                    "devices": {
                                                        "type": "array",
                                                        "description": "The list of deviceIds of devices assigned to the space",
                                                        "default": [],
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the device.",
                                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "peopleGroups": {
                                                        "type": "array",
                                                        "description": "The list of people groups the space is assigned to",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The unique ID of the group.",
                                                                    "example": "0978daa9-84d7-4636-94c0-b7419638b91e",
                                                                    "x-format": {
                                                                        "guid": true
                                                                    }
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The name of the people group.",
                                                                    "example": "General Employees",
                                                                    "minLength": 1
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "inputs": {
                                                        "type": "array",
                                                        "default": [],
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the device.",
                                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "isDefault": {
                                                        "type": "boolean",
                                                        "description": "True if this is a default space.",
                                                        "example": true,
                                                        "default": false
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the site that the space belongs to.",
                                                            "example": "344F7AF1-ED49-489A-8E80-6ADEEBB1CC60",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "type",
                                                    "numberOfDevices",
                                                    "numberOfInputs",
                                                    "numberOfOutputs",
                                                    "numberOfCameras",
                                                    "numberOfPeople",
                                                    "numberOfPeopleGroups",
                                                    "devices",
                                                    "peopleGroups",
                                                    "inputs",
                                                    "isDefault"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create a new space",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the space",
                                        "example": "Front Lobby",
                                        "minLength": 1
                                    },
                                    "type": {
                                        "type": "string",
                                        "description": "The type of space (area, parking_lot, building, location, or region)",
                                        "example": "area",
                                        "default": "area",
                                        "enum": [
                                            "area",
                                            "parking_lot",
                                            "building",
                                            "location",
                                            "region"
                                        ]
                                    },
                                    "people": {
                                        "type": "array",
                                        "description": "The list of personIds of people assigned to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "devices": {
                                        "type": "array",
                                        "description": "The list of deviceIds of devices assigned to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "cameras": {
                                        "type": "array",
                                        "description": "The list of deviceIds of cameras assigned to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "inputs": {
                                        "type": "array",
                                        "description": "The list of deviceIds of inputs assigned to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "outputs": {
                                        "type": "array",
                                        "description": "The list of deviceIds of outputs assigned to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "isDefault": {
                                        "type": "boolean",
                                        "description": "True if this is a default space.",
                                        "example": true,
                                        "default": false
                                    },
                                    "siteId": {
                                        "type": "string",
                                        "description": "The unique ID of the site that the space belongs to.",
                                        "example": "344F7AF1-ED49-489A-8E80-6ADEEBB1CC60",
                                        "x-format": {
                                            "guid": true
                                        }
                                    }
                                },
                                "required": [
                                    "name",
                                    "type"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Spaces"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the space",
                                            "example": "8115F002-58A9-49EB-9EED-FA683C8A04EF",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/subscriptions": {
            "get": {
                "summary": "List API subscriptions",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Subscriptions"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the subscription",
                                                        "example": "a8992a2d-0072-42a2-a295-fe9cff2b564f",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "productId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the associated product or integration",
                                                        "example": "b1234567-89ab-cdef-0123-456789abcdef",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "productName": {
                                                        "type": "string",
                                                        "description": "The name of the associated product or integration"
                                                    },
                                                    "policies": {
                                                        "type": "object",
                                                        "description": "The policies of the product.",
                                                        "properties": {
                                                            "rateLimit": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "renewalPeriod": {
                                                                        "type": "number",
                                                                        "description": "The time period in seconds during which the number of allowed requests should not exceed the value specified in calls"
                                                                    },
                                                                    "calls": {
                                                                        "type": "number",
                                                                        "description": "The maximum total number of calls allowed during the time interval specified in the renewal period"
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The created time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "lastUsed": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "When the subscription was last used."
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "productId",
                                                    "productName",
                                                    "policies",
                                                    "created",
                                                    "lastModified"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/automations/{id}": {
            "get": {
                "summary": "Get an automation",
                "parameters": [
                    {
                        "description": "The unique ID of the automation",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Automations"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the automation",
                                            "example": "f02a9bd8-301f-401c-a2c0-97082befd905",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the automation",
                                            "example": "Unlock Front Door",
                                            "maxLength": 500
                                        },
                                        "enabled": {
                                            "type": "boolean",
                                            "description": "True if automation is enabled",
                                            "example": true
                                        },
                                        "allowManualExecution": {
                                            "type": "boolean",
                                            "description": "True if automation can be manually executed",
                                            "example": true
                                        },
                                        "suppressAutomationTriggerEvents": {
                                            "type": "boolean",
                                            "description": "True if trigger events for the automation are suppressed"
                                        },
                                        "lastExecuted": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last executed time",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The created time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "enabled",
                                        "allowManualExecution",
                                        "suppressAutomationTriggerEvents",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/cardFormats/templates": {
            "get": {
                "summary": "List card format templates",
                "tags": [
                    "Card Formats"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "string",
                                                "description": "The unique ID of the card format template",
                                                "example": "00d983ea-1c69-4292-adb7-c836ddddd21b",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            },
                                            "name": {
                                                "type": "string",
                                                "description": "The name of the card format template",
                                                "example": "Template 1 Card Format"
                                            },
                                            "totalNumberBits": {
                                                "type": "number",
                                                "description": "The total number of bits for the format.",
                                                "example": 26
                                            },
                                            "facilityCodeStartBit": {
                                                "type": "number",
                                                "description": "The bit that the facility code starts at (base 0).",
                                                "example": 1
                                            },
                                            "facilityCodeLength": {
                                                "type": "number",
                                                "description": "The number of bits in the facility code.",
                                                "example": 1
                                            },
                                            "badgeIdStartBit": {
                                                "type": "number",
                                                "description": "The bit that the badge ID starts at (base 0).",
                                                "example": 2
                                            },
                                            "badgeIdLength": {
                                                "type": "number",
                                                "description": "The number of bits in the badge ID.",
                                                "example": 1
                                            },
                                            "issueCodeStartBit": {
                                                "type": "number",
                                                "description": "The bit that the issue code starts at (base 0).",
                                                "example": 3
                                            },
                                            "issueCodeLength": {
                                                "type": "number",
                                                "description": "The number of bits in the issue code.",
                                                "example": 1
                                            },
                                            "evenParityStartBit": {
                                                "type": "number",
                                                "description": "The bit that even parity calculations should start at (base 0).",
                                                "example": 4
                                            },
                                            "evenParityLength": {
                                                "type": "number",
                                                "description": "The number of bits used to compute even parity.",
                                                "example": 1
                                            },
                                            "oddParityStartBit": {
                                                "type": "number",
                                                "description": "The bit that odd parity calculations should start at (base 0).",
                                                "example": 5
                                            },
                                            "oddParityLength": {
                                                "type": "number",
                                                "description": "The number of bits used to compute odd parity.",
                                                "example": 1
                                            }
                                        },
                                        "required": [
                                            "id",
                                            "name"
                                        ]
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/cardFormats/{id}": {
            "get": {
                "summary": "Get a card format",
                "parameters": [
                    {
                        "description": "The unique ID of the card format",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Card Formats"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the card format",
                                            "example": "0a82a847-3933-43a6-b30f-98057441b0c5",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the card format",
                                            "example": "Employee Card Format",
                                            "minLength": 1,
                                            "maxLength": 500
                                        },
                                        "templateId": {
                                            "type": "string",
                                            "description": "The unique ID of the card format template",
                                            "example": "00d983ea-1c69-4292-adb7-c836ddddd21b",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "facilityCode": {
                                            "type": "number",
                                            "description": "The code of the facility.",
                                            "example": 1
                                        },
                                        "useBadgeOffset": {
                                            "type": "boolean",
                                            "description": "Indicates whether or not a badge offset is being used.",
                                            "example": true
                                        },
                                        "badgeOffset": {
                                            "type": "number",
                                            "description": "Offsets the badge ID by the value entered. Useful when there is a population of badges with the same badge ID, for example, when multiple independent systems are merged into one. It is important that the access control hardware is able to uniquely identify the card format with the offset by using different facility code or card format structure.",
                                            "example": 20
                                        },
                                        "totalNumberBits": {
                                            "type": "number",
                                            "description": "The total number of bits for the format.",
                                            "example": 26
                                        },
                                        "facilityCodeStartBit": {
                                            "type": "number",
                                            "description": "The bit that the facility code starts at (base 0).",
                                            "example": 1
                                        },
                                        "facilityCodeLength": {
                                            "type": "number",
                                            "description": "The number of bits in the facility code.",
                                            "example": 1
                                        },
                                        "badgeIdStartBit": {
                                            "type": "number",
                                            "description": "The bit that the badge ID starts at (base 0).",
                                            "example": 2
                                        },
                                        "badgeIdLength": {
                                            "type": "number",
                                            "description": "The number of bits in the badge ID.",
                                            "example": 1
                                        },
                                        "issueCodeStartBit": {
                                            "type": "number",
                                            "description": "The bit that the issue code starts at (base 0).",
                                            "example": 3
                                        },
                                        "issueCodeLength": {
                                            "type": "number",
                                            "description": "The number of bits in the issue code.",
                                            "example": 1
                                        },
                                        "evenParityStartBit": {
                                            "type": "number",
                                            "description": "The bit that even parity calculations should start at (base 0).",
                                            "example": 4
                                        },
                                        "evenParityLength": {
                                            "type": "number",
                                            "description": "The number of bits used to compute even parity.",
                                            "example": 1
                                        },
                                        "oddParityStartBit": {
                                            "type": "number",
                                            "description": "The bit that odd parity calculations should start at (base 0).",
                                            "example": 5
                                        },
                                        "oddParityLength": {
                                            "type": "number",
                                            "description": "The number of bits used to compute odd parity.",
                                            "example": 1
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "description": "The IDs of the sites the card format is associated with.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the site",
                                                "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "ignoreFacilityCodeCheck": {
                                            "type": "boolean",
                                            "description": "Indicates whether or not a facility code is being ignored.",
                                            "example": false
                                        },
                                        "combineFacilityCodeAndCardNumber": {
                                            "type": "boolean",
                                            "description": "Indicates whether or not combine to facility code and card mumber.",
                                            "example": false
                                        },
                                        "requireMatchingCardNumber": {
                                            "type": "boolean",
                                            "description": "Indicates whether or not to require a matching card number.",
                                            "example": false
                                        },
                                        "hidCorporate1000ParityCheck": {
                                            "type": "boolean",
                                            "description": "Indicates whether or not to perform an HID® Corporate 1000™ parity check."
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "templateId",
                                        "facilityCode",
                                        "useBadgeOffset",
                                        "badgeOffset",
                                        "totalNumberBits",
                                        "facilityCodeStartBit",
                                        "facilityCodeLength",
                                        "badgeIdStartBit",
                                        "badgeIdLength",
                                        "issueCodeStartBit",
                                        "issueCodeLength",
                                        "evenParityStartBit",
                                        "evenParityLength",
                                        "oddParityStartBit",
                                        "oddParityLength",
                                        "ignoreFacilityCodeCheck",
                                        "combineFacilityCodeAndCardNumber",
                                        "requireMatchingCardNumber"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a card format",
                "parameters": [
                    {
                        "description": "The unique ID of the card format",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the card format",
                                        "example": "Employee Card Format",
                                        "minLength": 1,
                                        "maxLength": 500
                                    },
                                    "templateId": {
                                        "type": "string",
                                        "description": "The unique ID of the card format template",
                                        "example": "00d983ea-1c69-4292-adb7-c836ddddd21b",
                                        "x-format": {
                                            "guid": true
                                        }
                                    },
                                    "facilityCode": {
                                        "type": "number",
                                        "description": "The code of the facility.",
                                        "example": 1
                                    },
                                    "useBadgeOffset": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not a badge offset is being used.",
                                        "example": true
                                    },
                                    "badgeOffset": {
                                        "type": "number",
                                        "description": "Offsets the badge ID by the value entered. Useful when there is a population of badges with the same badge ID, for example, when multiple independent systems are merged into one. It is important that the access control hardware is able to uniquely identify the card format with the offset by using different facility code or card format structure.",
                                        "example": 20
                                    },
                                    "addedSites": {
                                        "type": "array",
                                        "description": "The IDs of the sites being added to an existing card format.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedSites": {
                                        "type": "array",
                                        "description": "The IDs of the sites being removed from an existing card format.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "totalNumberBits": {
                                        "type": "number",
                                        "description": "The total number of bits for the format.",
                                        "example": 26
                                    },
                                    "facilityCodeStartBit": {
                                        "type": "number",
                                        "description": "The bit that the facility code starts at (base 0).",
                                        "example": 1
                                    },
                                    "facilityCodeLength": {
                                        "type": "number",
                                        "description": "The number of bits in the facility code.",
                                        "example": 1
                                    },
                                    "badgeIdStartBit": {
                                        "type": "number",
                                        "description": "The bit that the badge ID starts at (base 0).",
                                        "example": 2
                                    },
                                    "badgeIdLength": {
                                        "type": "number",
                                        "description": "The number of bits in the badge ID.",
                                        "example": 1
                                    },
                                    "issueCodeStartBit": {
                                        "type": "number",
                                        "description": "The bit that the issue code starts at (base 0).",
                                        "example": 3
                                    },
                                    "issueCodeLength": {
                                        "type": "number",
                                        "description": "The number of bits in the issue code.",
                                        "example": 1
                                    },
                                    "evenParityStartBit": {
                                        "type": "number",
                                        "description": "The bit that even parity calculations should start at (base 0).",
                                        "example": 4
                                    },
                                    "evenParityLength": {
                                        "type": "number",
                                        "description": "The number of bits used to compute even parity.",
                                        "example": 1
                                    },
                                    "oddParityStartBit": {
                                        "type": "number",
                                        "description": "The bit that odd parity calculations should start at (base 0).",
                                        "example": 5
                                    },
                                    "oddParityLength": {
                                        "type": "number",
                                        "description": "The number of bits used to compute odd parity.",
                                        "example": 1
                                    },
                                    "ignoreFacilityCodeCheck": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not a facility code is being ignored.",
                                        "example": false
                                    },
                                    "combineFacilityCodeAndCardNumber": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not combine to facility code and card mumber.",
                                        "example": false
                                    },
                                    "requireMatchingCardNumber": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not to require a matching card number.",
                                        "example": false
                                    },
                                    "hidCorporate1000ParityCheck": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not to perform an HID® Corporate 1000™ parity check."
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Card Formats"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a card format",
                "parameters": [
                    {
                        "description": "The unique ID of the card format",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Card Formats"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/clips/{id}": {
            "get": {
                "summary": "Get video clip details",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the clip",
                                            "example": "51adc2a1-fd5d-4da0-8373-629d7a7faf1d",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "cameraId": {
                                            "type": "string",
                                            "description": "The unique ID of the camera.",
                                            "example": "1c874a28-22d6-470c-8b1b-5b243aff487b",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "startTime": {
                                            "type": "string",
                                            "description": "The timestamp format of clip exports.",
                                            "example": "2025-02-24T18:23:10.248Z",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        },
                                        "endTime": {
                                            "type": "string",
                                            "description": "The timestamp format of clip exports.",
                                            "example": "2025-02-24T18:23:10.248Z",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        },
                                        "downloads": {
                                            "type": "integer",
                                            "description": "The number of times the clip has been downloaded.",
                                            "example": 3
                                        },
                                        "downloadLimit": {
                                            "type": "integer",
                                            "description": "The limit for clip downloads.",
                                            "example": 3
                                        },
                                        "status": {
                                            "type": "string",
                                            "description": "The status of the exported clip.",
                                            "example": "available"
                                        },
                                        "expires": {
                                            "type": "string",
                                            "description": "The date when the exported clip expires.",
                                            "example": "2025-02-24T18:17:47.474Z",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        },
                                        "size": {
                                            "type": "string",
                                            "description": "The size of the exported clip.",
                                            "example": "8257809"
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The created time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "isLimitSet": {
                                            "type": "boolean",
                                            "description": "Is limit set.",
                                            "example": true
                                        },
                                        "extendedStorageEnabled": {
                                            "type": "boolean",
                                            "description": "True if extended storage is enabled for the clip.",
                                            "default": false
                                        },
                                        "expirationDays": {
                                            "type": "integer",
                                            "description": "Specifies how long the file should live on the storage since creation date.",
                                            "example": "5",
                                            "minimum": 1,
                                            "maximum": 1095
                                        },
                                        "fileName": {
                                            "type": "string",
                                            "description": "The name of the file.",
                                            "example": "Axis_P1428-E_Network_Camera-cube_2025-03-25T17:14:49.000Z_2025-03-25T17:24:49.000Z.mp4"
                                        },
                                        "publicLinkId": {
                                            "type": "string",
                                            "description": "ID of the public link",
                                            "example": "c7712460-22e7-425e-8041-1d738cc5bda3",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "cameraId",
                                        "startTime",
                                        "endTime",
                                        "status",
                                        "expires",
                                        "size",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a video clip",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "downloadLimit": {
                                        "type": "integer",
                                        "description": "The limit for clip downloads.",
                                        "example": 3
                                    },
                                    "expirationDays": {
                                        "type": "integer",
                                        "description": "Specifies how long the file should live on the storage since creation date.",
                                        "example": "5",
                                        "minimum": 1,
                                        "maximum": 1095
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a video clip",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/controllerRules/{controllerRuleId}": {
            "get": {
                "summary": "Get details for a controller rule",
                "parameters": [
                    {
                        "description": "The unique ID of the controller rule",
                        "x-format": {
                            "guid": true
                        },
                        "name": "controllerRuleId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Controller Rules"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "rule": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the controller rule",
                                                    "example": "39380c62-bd7e-4958-9193-521389e95f8b",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the controller rule",
                                                    "example": "Unlock Door",
                                                    "minLength": 1,
                                                    "maxLength": 500
                                                },
                                                "deviceId": {
                                                    "type": "string",
                                                    "description": "The unique ID of the device executing the rule",
                                                    "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "lastExecutionTime": {
                                                    "type": "number",
                                                    "description": "Timestamp of the last time the controller rule was executed",
                                                    "example": 1741620696000
                                                },
                                                "enabled": {
                                                    "type": "boolean",
                                                    "description": "Indicates whether or not the rule will execute when its conditions are met",
                                                    "example": true,
                                                    "default": true
                                                },
                                                "canManuallyExecute": {
                                                    "type": "boolean",
                                                    "description": "Indicates whether or not the rule can be executed manually",
                                                    "example": true
                                                },
                                                "siteIds": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string",
                                                        "description": "The unique ID of the site",
                                                        "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    }
                                                },
                                                "actions": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of an action that belongs to a controller rule",
                                                                "example": "1dfa7eda-a76d-4750-8b25-bff936829e2f",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "actionId": {
                                                                "type": "string",
                                                                "description": "The ID of the action to execute",
                                                                "example": "SetTempReaderMode",
                                                                "minLength": 1,
                                                                "maxLength": 100
                                                            },
                                                            "parameters": {
                                                                "type": "array",
                                                                "items": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "id": {
                                                                            "type": "string",
                                                                            "description": "The ID of the parameter",
                                                                            "example": "Mode",
                                                                            "minLength": 1
                                                                        },
                                                                        "value": {
                                                                            "type": "string",
                                                                            "description": "The value of the parameter",
                                                                            "example": "Locked"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "id",
                                                                        "value"
                                                                    ]
                                                                }
                                                            }
                                                        },
                                                        "required": [
                                                            "actionId",
                                                            "parameters"
                                                        ]
                                                    }
                                                },
                                                "conditions": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the condition",
                                                                "example": "a1889c83-cb46-4cfd-bf9a-678cb37565f9",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "eventType": {
                                                                "type": "string",
                                                                "description": "The event type that will trigger associated actions",
                                                                "example": "DoorTemporarilyUnlockedNoEntryMade",
                                                                "minLength": 1
                                                            },
                                                            "deviceId": {
                                                                "type": "string",
                                                                "description": "The unique ID of the device.",
                                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                                "x-format": {
                                                                    "guid": true
                                                                }
                                                            },
                                                            "scheduleId": {
                                                                "type": "string",
                                                                "description": "The unique ID of the schedule or \"Always\"",
                                                                "example": "D7020B55-C97B-4941-8F6F-DFBB79C99487",
                                                                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|Always$"
                                                            }
                                                        },
                                                        "required": [
                                                            "eventType"
                                                        ]
                                                    }
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name",
                                                "enabled",
                                                "canManuallyExecute"
                                            ]
                                        },
                                        "devices": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "deviceId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the device.",
                                                        "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "hardwareId": {
                                                        "type": "object",
                                                        "properties": {
                                                            "controllerId": {
                                                                "type": "number",
                                                                "description": "The hardware ID of the controller",
                                                                "example": 1
                                                            },
                                                            "deviceId": {
                                                                "type": "number",
                                                                "description": "The hardware ID of the device",
                                                                "example": 0
                                                            }
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the device",
                                                        "example": "Lobby Access Controller"
                                                    },
                                                    "deviceType": {
                                                        "type": "string",
                                                        "description": "The type of device",
                                                        "example": "Reader",
                                                        "minLength": 1
                                                    }
                                                }
                                            }
                                        },
                                        "schedules": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the schedule",
                                                        "example": "Day Shift",
                                                        "minLength": 1,
                                                        "maxLength": 500,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "color": {
                                                        "type": "string",
                                                        "description": "The hex color value of the schedule",
                                                        "example": "#A60000",
                                                        "pattern": "^#[A-Fa-f0-9]{3,6}$"
                                                    },
                                                    "days": {
                                                        "type": "object",
                                                        "properties": {
                                                            "Sun": {
                                                                "type": "boolean",
                                                                "description": "Defines if Sunday is part of this schedule",
                                                                "example": false
                                                            },
                                                            "Mon": {
                                                                "type": "boolean",
                                                                "description": "Defines if Monday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Tue": {
                                                                "type": "boolean",
                                                                "description": "Defines if Tuesday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Wed": {
                                                                "type": "boolean",
                                                                "description": "Defines if Wednesday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Thu": {
                                                                "type": "boolean",
                                                                "description": "Defines if Thursday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Fri": {
                                                                "type": "boolean",
                                                                "description": "Defines if Friday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Sat": {
                                                                "type": "boolean",
                                                                "description": "Defines if Saturday is part of this schedule",
                                                                "example": false
                                                            }
                                                        }
                                                    },
                                                    "startTime": {
                                                        "type": "string",
                                                        "description": "Time of day when the schedule starts to apply",
                                                        "example": "10:00",
                                                        "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                    },
                                                    "endTime": {
                                                        "type": "string",
                                                        "description": "Time of day when the schedule stops applying",
                                                        "example": "11:00",
                                                        "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                    },
                                                    "holidayApply": {
                                                        "type": "boolean",
                                                        "description": "Defines if holidays are treated as an exception to this schedule",
                                                        "example": true
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "rule",
                                        "devices"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/customers/available": {
            "get": {
                "summary": "Get customers available to the current user",
                "parameters": [
                    {
                        "description": "The number of available customers to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 40
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "OData filter to be applied. Only supports the name field currently.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Customers"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "description": "The paged list of customers available to the current user.",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "customerId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the customer.",
                                                        "example": "d0e817a3-c28e-43d4-ac16-eadcd7cd1c39",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the customer.",
                                                        "example": "Maximum Security"
                                                    },
                                                    "color": {
                                                        "type": "string",
                                                        "description": "The color associated with the customer.",
                                                        "example": "#A60000"
                                                    }
                                                },
                                                "required": [
                                                    "customerId",
                                                    "name"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/customers/my": {
            "get": {
                "summary": "Get current customer",
                "tags": [
                    "Customers"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the customer.",
                                            "example": "d0e817a3-c28e-43d4-ac16-eadcd7cd1c39",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "resellerId": {
                                            "type": "string",
                                            "description": "The unique ID of the reseller.",
                                            "example": "89329bc0-50e0-4170-b7ea-f1af5b9bf717",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the customer.",
                                            "example": "Maximum Security"
                                        },
                                        "timeZone": {
                                            "type": "string",
                                            "description": "The time zone of the customer.",
                                            "example": "America/New_York",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        },
                                        "retentionPeriod": {
                                            "type": "integer",
                                            "description": "The retention period of the customer.",
                                            "example": 7776000
                                        },
                                        "externallyManagedPeopleLimit": {
                                            "type": "integer",
                                            "description": "The externally managed people limit of the customer.",
                                            "example": 2000
                                        },
                                        "includeDeviceLocalTime": {
                                            "type": "boolean",
                                            "description": "Whether device local time is included for the customer.",
                                            "example": true
                                        },
                                        "allowEventResponses": {
                                            "type": "boolean",
                                            "description": "Whether event responses are allowed for the customer.",
                                            "example": true
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "resellerId",
                                        "name",
                                        "timeZone",
                                        "retentionPeriod",
                                        "externallyManagedPeopleLimit",
                                        "includeDeviceLocalTime",
                                        "allowEventResponses"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/devices/{deviceId}": {
            "get": {
                "summary": "Get a device",
                "parameters": [
                    {
                        "description": "The unique ID of the device.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "deviceId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Whether to include device hierarchy details (parent/top-level).",
                        "name": "includeParentDeviceDetails",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    }
                ],
                "tags": [
                    "Devices"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the device.",
                                            "example": "Lobby Door Reader",
                                            "minLength": 1
                                        },
                                        "deviceType": {
                                            "type": "string",
                                            "description": "The type of device",
                                            "example": "Reader",
                                            "minLength": 1
                                        },
                                        "driver": {
                                            "type": "string",
                                            "description": "The name of the device driver.",
                                            "example": "Mercury"
                                        },
                                        "modelName": {
                                            "type": "string",
                                            "description": "The name of the device model.",
                                            "example": "Reader"
                                        },
                                        "gatewayId": {
                                            "type": "string",
                                            "description": "The unique ID of the gateway.",
                                            "example": "2e4d94f8-7979-44d3-a4e3-ea6d368149da",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the site",
                                                "example": "BA131D18-B982-423F-BC84-5816759E605B",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "timeZone": {
                                            "type": "string",
                                            "description": "The time zone of the device.",
                                            "example": "America/New_York"
                                        },
                                        "statuses": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The ID of the status.",
                                                        "example": "ReaderMode"
                                                    },
                                                    "conditionalProperties": {
                                                        "type": "string"
                                                    },
                                                    "constraints": {
                                                        "type": "string"
                                                    },
                                                    "forceDisplay": {
                                                        "type": "boolean"
                                                    },
                                                    "hidden": {
                                                        "type": "boolean"
                                                    },
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "normalValue": {
                                                        "type": "string"
                                                    },
                                                    "normalValues": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "value": {
                                                        "type": "string",
                                                        "description": "The current value of the status.",
                                                        "example": "CardOnly"
                                                    },
                                                    "valueName": {
                                                        "type": "string"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The time the status value was last modified.",
                                                        "example": "2025-03-03T16:41:00Z"
                                                    },
                                                    "trueName": {
                                                        "type": "string"
                                                    },
                                                    "falseName": {
                                                        "type": "string"
                                                    },
                                                    "values": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string"
                                                                },
                                                                "name": {
                                                                    "type": "string"
                                                                },
                                                                "healthStatus": {
                                                                    "type": "string"
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "commands": {
                                            "type": "array",
                                            "description": "The commands supported by the device and their parameters.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The id of the command.",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The localized name of the command."
                                                    },
                                                    "commandType": {
                                                        "type": "string",
                                                        "description": "The type of the command, such as config or shortLived."
                                                    },
                                                    "isQuickAction": {
                                                        "type": "boolean",
                                                        "description": "Whether the command is available as a quick action."
                                                    },
                                                    "parameters": {
                                                        "type": "array",
                                                        "description": "The parameters accepted by the command.",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "description": "The id of the command parameter."
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "description": "The localized name of the command parameter."
                                                                },
                                                                "values": {
                                                                    "type": "array",
                                                                    "description": "The possible values for an Enumeration parameter.",
                                                                    "items": {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "id": {
                                                                                "type": "string",
                                                                                "description": "The id of the enumeration value."
                                                                            },
                                                                            "name": {
                                                                                "type": "string",
                                                                                "description": "The localized name of the enumeration value."
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "id",
                                                                            "name"
                                                                        ]
                                                                    }
                                                                }
                                                            },
                                                            "required": [
                                                                "id",
                                                                "name"
                                                            ]
                                                        }
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name"
                                                ]
                                            }
                                        },
                                        "topLevelDevice": {
                                            "type": "object",
                                            "description": "The top-level device related to this device.",
                                            "example": {
                                                "id": "b7e133aa-532a-4d3a-843c-5ca5b04dd5f5",
                                                "name": "NY Access Gateway",
                                                "type": "Gateway",
                                                "model": "Standard"
                                            },
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the related device.",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the related device."
                                                },
                                                "deviceType": {
                                                    "type": "string",
                                                    "description": "The device type of the related device."
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the related device."
                                                },
                                                "model": {
                                                    "type": "string",
                                                    "description": "The model of the related device."
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name"
                                            ]
                                        },
                                        "parentDevice": {
                                            "type": "object",
                                            "description": "The parent device related to this device.",
                                            "example": {
                                                "id": "6ae10eb8-805c-4466-bcc2-047543440307",
                                                "name": "Retail Store Controller",
                                                "deviceType": "AccessController",
                                                "model": "LnlX2220"
                                            },
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the related device.",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the related device."
                                                },
                                                "deviceType": {
                                                    "type": "string",
                                                    "description": "The device type of the related device."
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the related device."
                                                },
                                                "model": {
                                                    "type": "string",
                                                    "description": "The model of the related device."
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "name"
                                            ]
                                        },
                                        "hardwareId": {
                                            "type": "object",
                                            "description": "The hardware identifier of the device. Returned when available.",
                                            "properties": {
                                                "deviceId": {
                                                    "type": "string",
                                                    "x-alternatives": [
                                                        {
                                                            "type": "string"
                                                        },
                                                        {
                                                            "type": "number"
                                                        }
                                                    ]
                                                }
                                            }
                                        },
                                        "streamsDetails": {
                                            "type": "object",
                                            "description": "The stream details keyed by stream index. The keys are the supported stream indexes: lower indexes are main streams and higher are substreams.",
                                            "example": {
                                                "1": {},
                                                "2": {}
                                            }
                                        },
                                        "iceServers": {
                                            "type": "object",
                                            "description": "ICE servers for WebRTC. Returned when the device has at least one stream and ICE servers are available.",
                                            "properties": {
                                                "username": {
                                                    "type": "string",
                                                    "description": "The TURN username. Empty when only STUN is available."
                                                },
                                                "credential": {
                                                    "type": "string",
                                                    "description": "The TURN credential. Empty when only STUN is available."
                                                },
                                                "ttl": {
                                                    "type": "number",
                                                    "description": "The lifetime of the credentials in seconds.",
                                                    "example": 3600
                                                },
                                                "urls": {
                                                    "type": "array",
                                                    "description": "The STUN/TURN server URLs.",
                                                    "example": [
                                                        "stun:global.stun.twilio.com:3478"
                                                    ],
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "deviceType",
                                        "modelName"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/events/count": {
            "get": {
                "summary": "Get object with numbers of events within a custom date range, defaulting to the last 24 hours (by customerId)",
                "description": "#### Filtering fields and operators\n* timestamp [gt, lt, ge, le]\n    * Value format: ISO 8601 with timezone (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds, or an offset like `-05:00`)\n    * Example: `timestamp ge '2025-03-03T16:15:59.123Z'`\n* eventProcessedTimestamp [gt, lt, ge, le]\n    * Value format: ISO 8601 with timezone (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds, or an offset like `+01:00`)\n    * Example: `eventProcessedTimestamp lt '2025-03-04T14:01:29Z'`\n* personId [eq, ne, in]\n    * Supported values: UUID (e.g., `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`)\n    * Example: `personId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91'`\n* spaceId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `spaceId in ('674b990a-f921-4d28-b6fb-e3bc56bd8a85','0ef28411-3022-430f-a7e9-12612a47b76a')`\n* deviceId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `deviceId ne 'aede1b34-e7b9-4d17-af9f-bfc60a429444'`\n* deviceName [eq, ne, in]\n    * Supported values: string (1-500 chars). Matching is case-insensitive.\n    * Example: `deviceName eq 'Front Door Reader'`\n* deviceType [eq, in]\n    * Supported values: string (1-500 chars)\n    * Example: `deviceType eq 'DoorReader'`\n* guestPassId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `guestPassId in ('d9b22d26-d64d-4e8e-a306-9abca8a0d03b')`\n* severity [eq, ne, in]\n    * Supported values: `Critical`, `High`, `Medium`, `Low`\n    * Example: `severity in ('High','Critical')`\n* eventType [eq, ne, in]\n    * Supported values: string (1-500 chars)\n    * Example: `eventType eq 'AccessGrantedReaderUnlocked'`\n* originalEventType [eq, ne, in]\n    * Supported values: string (1-500 chars). Filters custom events by their source event type.\n    * Example: `originalEventType eq 'AccessGrantedEntryMade'`\n* customEventConfigId [eq, ne, in]\n    * Supported values: UUID\n    * Example: `customEventConfigId eq 'e3e8b4b3-d35a-45b7-82cf-7bd55ec68ae2'`\n* hasSpace [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasSpace eq true`\n* hasPerson [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasPerson eq false`\n* hasDevice [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasDevice eq true`\n* searchText [eq]\n    * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n    * Example: `searchText eq 'door'`\n* responseStatus [eq]\n    * Supported values: `Pending`, `InProgress`, `Resolved`\n    * Example: `responseStatus eq 'Pending'`\n* siteId [in]\n    * Supported values: UUID\n    * Example: `siteId in ('8993ba6a-00fe-4f42-b665-bbd0cb90bd29','d9b22d26-d64d-4e8e-a306-9abca8a0d03b')`\n\n#### Filtering examples\n* (eventProcessedTimestamp gt '2025-03-04T14:01:29Z') and (eventType in\n    ('AccessGrantedEntryMadePINUsed','AccessGrantedNoEntryMadePINUsed')) and\n    (personId eq 'cfd4cda6-6211-442c-80e1-e1bd7576b3b8')\n\n#### Query parameters (non-OData)\n* $sortBy - Field to sort results by\n* $sortDirection - Sort direction\n* includeParentDeviceDetails (true|false) - Determines whether or not to include\n    device hierarchy details (parent/top-level).\n* includeHidden (true|false) - Determines whether or not to include custom events\n    whose definition is hidden. Defaults to false.",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "count": {
                                            "type": "number",
                                            "description": "Event count.",
                                            "example": 0
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/events/maps": {
            "get": {
                "summary": "Get event maps",
                "parameters": [
                    {
                        "description": "The type of event map.",
                        "name": "eventMapType",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "map": {
                                            "type": "object",
                                            "description": "The elements to OnGuard event map"
                                        },
                                        "version": {
                                            "type": "string",
                                            "description": "The version of map"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/events/types": {
            "get": {
                "summary": "List event types",
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "description": "Translations of event types"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/events/{id}": {
            "get": {
                "summary": "Get details for an event",
                "parameters": [
                    {
                        "description": "The unique ID of the event",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Whether to include device hierarchy details (parent/top-level).",
                        "name": "includeParentDeviceDetails",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "default": false
                        }
                    }
                ],
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the event",
                                            "example": "8835d4fa-8d69-4ff5-9b6a-468dc5f175fd",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "eventType": {
                                            "type": "string",
                                            "description": "The type of event",
                                            "example": "AccessGrantedEntryMade"
                                        },
                                        "eventTypeLocalized": {
                                            "type": "string",
                                            "description": "The localized event type",
                                            "example": "Access Granted - Entry Occurred"
                                        },
                                        "severity": {
                                            "type": "string",
                                            "description": "The severity of the event",
                                            "example": "Low"
                                        },
                                        "timestamp": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The timestamp of when the event occurred",
                                            "example": "2021-10-05T15:00:00.000Z"
                                        },
                                        "timeZone": {
                                            "type": "string",
                                            "description": "The IANA time zone code of where the event occurred",
                                            "example": "America/New_York"
                                        },
                                        "processedTimestamp": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The timestamp of when the event was processed",
                                            "example": "2021-10-05T15:00:00.000Z"
                                        },
                                        "automation": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the automation",
                                                    "example": "f02a9bd8-301f-401c-a2c0-97082befd905",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the automation",
                                                    "example": "Unlock Front Door",
                                                    "maxLength": 500
                                                }
                                            }
                                        },
                                        "trigger": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the trigger",
                                                    "example": "e92ea4dc-f70f-436a-91d9-ddbde2136da2",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the trigger",
                                                    "example": "AugmentedEvent"
                                                }
                                            }
                                        },
                                        "device": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the device.",
                                                    "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of device",
                                                    "example": "Reader",
                                                    "minLength": 1
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the device.",
                                                    "example": "Lobby Door Reader",
                                                    "minLength": 1
                                                },
                                                "gatewayId": {
                                                    "type": "string",
                                                    "description": "The unique ID of the gateway.",
                                                    "example": "2e4d94f8-7979-44d3-a4e3-ea6d368149da",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "parentDevice": {
                                                    "type": "object",
                                                    "example": {
                                                        "id": "6ae10eb8-805c-4466-bcc2-047543440307",
                                                        "name": "Retail Store Controller",
                                                        "deviceType": "AccessController",
                                                        "model": "LnlX2220"
                                                    },
                                                    "properties": {
                                                        "id": {
                                                            "type": "string",
                                                            "description": "The unique ID of the related device.",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "description": "The name of the related device."
                                                        },
                                                        "deviceType": {
                                                            "type": "string",
                                                            "description": "The device type of the related device."
                                                        },
                                                        "type": {
                                                            "type": "string",
                                                            "description": "The type of the related device."
                                                        },
                                                        "model": {
                                                            "type": "string",
                                                            "description": "The model of the related device."
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name"
                                                    ]
                                                },
                                                "topLevelDevice": {
                                                    "type": "object",
                                                    "example": {
                                                        "id": "b7e133aa-532a-4d3a-843c-5ca5b04dd5f5",
                                                        "name": "NY Access Gateway",
                                                        "type": "Gateway",
                                                        "model": "Standard"
                                                    },
                                                    "properties": {
                                                        "id": {
                                                            "type": "string",
                                                            "description": "The unique ID of the related device.",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "description": "The name of the related device."
                                                        },
                                                        "deviceType": {
                                                            "type": "string",
                                                            "description": "The device type of the related device."
                                                        },
                                                        "type": {
                                                            "type": "string",
                                                            "description": "The type of the related device."
                                                        },
                                                        "model": {
                                                            "type": "string",
                                                            "description": "The model of the related device."
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name"
                                                    ]
                                                }
                                            }
                                        },
                                        "space": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the space",
                                                    "example": "8115F002-58A9-49EB-9EED-FA683C8A04EF",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the space",
                                                    "example": "Front Lobby",
                                                    "minLength": 1
                                                }
                                            }
                                        },
                                        "cameras": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the camera.",
                                                        "example": "1c874a28-22d6-470c-8b1b-5b243aff487b",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "cameraUuid": {
                                                        "type": "string",
                                                        "description": "The Rhombus camera UUID. Only present for Rhombus cameras and video intercoms.",
                                                        "example": "rhombus-60a3c159-ae79-4857-9e32-ef2042f90a3d"
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the camera",
                                                        "example": "Lobby Camera 1"
                                                    }
                                                }
                                            }
                                        },
                                        "credential": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the credential.",
                                                    "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "type": {
                                                    "type": "string",
                                                    "description": "The type of the credential.",
                                                    "enum": [
                                                        "PHYSICAL",
                                                        "PIN",
                                                        "EXTERNAL",
                                                        "BLUE_DIAMOND",
                                                        "BLUE_DIAMOND_NFC",
                                                        "BLUE_DIAMOND_INSTALL"
                                                    ]
                                                },
                                                "label": {
                                                    "type": "string",
                                                    "description": "The optional label of the credential. Must not be only whitespace.",
                                                    "example": "My Badge",
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                },
                                                "credentialStatus": {
                                                    "type": "string",
                                                    "description": "The value of the credential status.",
                                                    "example": "Active",
                                                    "enum": [
                                                        "Active",
                                                        "Lost",
                                                        "Stolen",
                                                        "Terminated",
                                                        "Damaged",
                                                        "Other"
                                                    ]
                                                },
                                                "badgeId": {
                                                    "type": "string",
                                                    "description": "The badge ID of the credential",
                                                    "example": "12345",
                                                    "pattern": "^[0-9]{1,17}$"
                                                }
                                            }
                                        },
                                        "person": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the person.",
                                                    "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "firstName": {
                                                    "type": "string",
                                                    "description": "The first name of the person.",
                                                    "example": "John",
                                                    "maxLength": 500
                                                },
                                                "lastName": {
                                                    "type": "string",
                                                    "description": "The last name of the person.",
                                                    "example": "Doe",
                                                    "maxLength": 500
                                                },
                                                "hasPhoto": {
                                                    "type": "boolean",
                                                    "description": "Whether the person has a photo.",
                                                    "example": false
                                                }
                                            }
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "description": "The unique IDs of the sites associated with the event",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the site",
                                                "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "sites": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the site",
                                                        "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the site",
                                                        "example": "New York Site",
                                                        "minLength": 1
                                                    }
                                                }
                                            }
                                        },
                                        "responseHistory": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "status": {
                                                        "type": "string",
                                                        "description": "The status of the event",
                                                        "example": "Pending",
                                                        "enum": [
                                                            "Pending",
                                                            "InProgress",
                                                            "Resolved"
                                                        ]
                                                    },
                                                    "notes": {
                                                        "type": "string",
                                                        "description": "The notes for the event status",
                                                        "example": "The event is pending"
                                                    },
                                                    "updatedBy": {
                                                        "type": "string",
                                                        "description": "The name of the person who updated the event status",
                                                        "example": "Lisa Lake"
                                                    },
                                                    "updatedAt": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The timestamp of the event status update",
                                                        "example": "2021-10-05T15:00:00.000Z"
                                                    }
                                                }
                                            }
                                        },
                                        "hidden": {
                                            "type": "boolean",
                                            "description": "Whether the event is hidden. False when no hidden flag is stored."
                                        },
                                        "eventDelayed": {
                                            "type": "boolean",
                                            "description": "Whether processing of the event was delayed"
                                        },
                                        "customEventConfigId": {
                                            "type": "string",
                                            "description": "The ID of the custom event definition that generated this event",
                                            "example": "910a3230-2114-42c8-a097-70b2135db4da",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "originalEvent": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The ID of the original event",
                                                    "example": "9b568a66-8e61-46e7-8d5a-364e6d0850a4",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "eventType": {
                                                    "type": "string",
                                                    "description": "The type of the original event",
                                                    "example": "AccessGrantedEntryMade"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update event response status and optionally add notes",
                "parameters": [
                    {
                        "description": "The unique ID of the event",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "status": {
                                        "type": "string",
                                        "description": "The status of the event",
                                        "example": "Pending",
                                        "enum": [
                                            "Pending",
                                            "InProgress",
                                            "Resolved"
                                        ]
                                    },
                                    "notes": {
                                        "type": "string",
                                        "description": "The notes for the event status",
                                        "example": "The event is pending"
                                    }
                                },
                                "required": [
                                    "status"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Events"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/gateways/{gatewayId}": {
            "get": {
                "summary": "Get a gateway",
                "parameters": [
                    {
                        "description": "The unique ID of the gateway.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "gatewayId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Devices"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the gateway.",
                                            "example": "6aa04c16-6c32-46a6-bba9-d1b50b864ed7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the gateway.",
                                            "example": "HQ Gateway",
                                            "minLength": 1
                                        },
                                        "iotDeviceId": {
                                            "type": "string",
                                            "description": "The IoT device ID of the gateway.",
                                            "example": "123456",
                                            "maxLength": 128
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The type of the gateway.",
                                            "example": "Gateway",
                                            "enum": [
                                                "Gateway",
                                                "Video"
                                            ]
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "description": "The IDs of the sites assigned to a gateway.",
                                            "example": [
                                                "404cee63-0696-4923-b4c6-09f7ec7e733c"
                                            ],
                                            "maxItems": 1,
                                            "items": {
                                                "type": "string",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "statuses": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The ID of the status.",
                                                        "example": "FirmwareUpdateRequired"
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of the status.",
                                                        "example": "Boolean"
                                                    },
                                                    "value": {
                                                        "type": "boolean",
                                                        "description": "The current value of the status.",
                                                        "example": true
                                                    },
                                                    "normalValue": {
                                                        "type": "boolean",
                                                        "description": "The expected normal value of the status.",
                                                        "example": false
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The time the status value was last modified.",
                                                        "example": "2026-04-12T12:08:00Z"
                                                    }
                                                }
                                            }
                                        },
                                        "version": {
                                            "type": "integer",
                                            "description": "An incrementing version number, included in updates to ensure atomicity.",
                                            "example": 1,
                                            "minimum": 1
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "version"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/holidays/{id}": {
            "get": {
                "summary": "Get a holiday",
                "parameters": [
                    {
                        "description": "The unique ID of the holiday",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Holidays"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the holiday",
                                            "example": "310DE9A2-2BBA-4770-94F8-1B57D1D8AAC9",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the holiday",
                                            "example": "Earth Day",
                                            "minLength": 1,
                                            "maxLength": 500,
                                            "pattern": "^(?!\\s*$).+"
                                        },
                                        "date": {
                                            "type": "string",
                                            "description": "The date of the holiday",
                                            "example": "2025-04-22"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "date"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a holiday",
                "parameters": [
                    {
                        "description": "The unique ID of the holiday",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the holiday",
                                        "example": "Earth Day",
                                        "minLength": 1,
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "date": {
                                        "type": "string",
                                        "description": "The date of the holiday",
                                        "example": "2025-04-22"
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Holidays"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a holiday",
                "parameters": [
                    {
                        "description": "The unique ID of the holiday",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Holidays"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/lockdowns/{id}": {
            "get": {
                "summary": "Get a lockdown",
                "parameters": [
                    {
                        "description": "Lockdown profile ID.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Lockdowns"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "Lockdown profile ID.",
                                            "example": "1cdf7e99-830f-4b5f-ba4a-6c42cb57d1f4",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the lockdown profile.",
                                            "example": "Exterior Lockdown",
                                            "minLength": 1,
                                            "pattern": "^(?!\\s*$).+"
                                        },
                                        "deviceIdsList": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the device.",
                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "status": {
                                            "type": "string",
                                            "description": "Current status of the lockdown profile.",
                                            "example": "Active"
                                        },
                                        "lastRunDate": {
                                            "type": "string",
                                            "description": "Time of last activation of the lockdown profile.",
                                            "example": "2024-06-10T15:56:51.004+00:00",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "deviceIdsList",
                                        "status"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/passes/availableDevices": {
            "get": {
                "summary": "List devices available for a guest pass",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "deviceType": {
                                                        "type": "string",
                                                        "description": "The type of device",
                                                        "example": "Reader",
                                                        "minLength": 1
                                                    },
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the device.",
                                                        "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the device.",
                                                        "example": "Lobby Door Reader",
                                                        "minLength": 1
                                                    },
                                                    "hardwareId": {
                                                        "type": "string",
                                                        "description": "The hardware ID of the device, used by the gateway.",
                                                        "example": "1",
                                                        "maxLength": 128
                                                    },
                                                    "gatewayId": {
                                                        "type": "string",
                                                        "description": "The unique ID of the gateway.",
                                                        "example": "2e4d94f8-7979-44d3-a4e3-ea6d368149da",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "gatewayIotDeviceId": {
                                                        "type": "string",
                                                        "description": "The IoT device ID of the gateway.",
                                                        "example": "173536",
                                                        "maxLength": 128
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/passes/{id}": {
            "get": {
                "summary": "Get a guest pass",
                "parameters": [
                    {
                        "description": "The unique ID of the guest pass.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the guest pass.",
                                            "example": "6a60ee8b-9100-4d4e-bb28-9ff07045c331",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "label": {
                                            "type": "string",
                                            "description": "The label of the guest pass.",
                                            "example": "Visitor Guest Pass"
                                        },
                                        "validFrom": {
                                            "type": "string",
                                            "description": "The valid from (start) timestamp of the guest pass.",
                                            "example": "2021-01-01T00:00:00Z"
                                        },
                                        "validTo": {
                                            "type": "string",
                                            "description": "The valid to (end) timestamp of the guest pass.",
                                            "example": "2021-01-02T00:00:00Z"
                                        },
                                        "created": {
                                            "type": "string",
                                            "description": "When the pass was created",
                                            "example": "2025-02-02T07:56:30.134+00:00",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "description": "The last time the pass was modified",
                                            "example": "2025-02-02T07:54:09.441+00:00",
                                            "x-format": {
                                                "isoDate": true
                                            }
                                        },
                                        "readers": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the reader.",
                                                        "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "Name of the device",
                                                        "example": "Front Door"
                                                    }
                                                }
                                            }
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "description": "The IDs of the sites the guest pass is associated with.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the site",
                                                "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "label",
                                        "validFrom",
                                        "validTo",
                                        "created",
                                        "lastModified",
                                        "readers"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a guest pass",
                "parameters": [
                    {
                        "description": "The unique ID of the guest pass.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "label": {
                                        "type": "string",
                                        "description": "The label of the guest pass.",
                                        "example": "Visitor Guest Pass"
                                    },
                                    "validFrom": {
                                        "type": "string",
                                        "description": "The valid from (start) timestamp of the guest pass.",
                                        "example": "2021-01-01T00:00:00Z"
                                    },
                                    "validTo": {
                                        "type": "string",
                                        "description": "The valid to (end) timestamp of the guest pass.",
                                        "example": "2021-01-02T00:00:00Z"
                                    },
                                    "addedReaders": {
                                        "type": "array",
                                        "description": "The list of readers to assign to the pass",
                                        "example": "[\"112ec58a-a012-1ac4-8223-c866d81332d1, 414ec59a-a022-1ac4-8223-c866d81332d5\"]",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the reader.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedReaders": {
                                        "type": "array",
                                        "description": "The list of readers to remove from the pass",
                                        "example": "[\"112ec58a-a012-1ac4-8223-c866d81332d1, 414ec59a-a022-1ac4-8223-c866d81332d5\"]",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the reader.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "usageLimit": {
                                        "type": "number",
                                        "description": "The usage limit for reader access of the guest pass",
                                        "example": "7"
                                    },
                                    "autoResetUsage": {
                                        "type": "boolean",
                                        "description": "Auto reset usage for a guest pass at the end of every day",
                                        "example": false
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a guest pass",
                "parameters": [
                    {
                        "description": "The unique ID of the guest pass.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/count": {
            "get": {
                "summary": "Get count of people",
                "description": "#### Filtering fields and operators\n* hasSpaces [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasSpaces eq true`\n* hasCredentials [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasCredentials eq false`\n* role [eq]\n    * Supported values: `Admin`, `Operator`, `Monitor`, `Installer`, `Auditor`\n    * Example: `role eq 'Operator'`\n* isSiteUser [eq]\n    * Supported values: `true` | `false`\n    * Example: `isSiteUser eq true`\n* siteId [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it includes people assigned to the global site (no site assignment).\n    * Example: `siteId eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* externallyManaged [eq]\n    * Supported values: `true` | `false`\n    * Example: `externallyManaged eq true`\n* userId [eq, ne]\n    * Supported values: `null`\n    * Example: `userId eq null`\n* invitation [eq]\n    * Supported values: `true` | `false`\n    * Example: `invitation eq true`\n* search [eq]\n    * Supported values: string (1-500 chars). Performs case-insensitive substring match across\n        first name, last name, email, externalId, username, and custom fields.\n    * Example: `search eq 'smith'`\n* searchFirstName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchFirstName eq 'jo'`\n* firstName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `firstName eq 'John'`\n* searchLastName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchLastName eq 'smi'`\n* lastName [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `lastName eq 'Smith'`\n* searchEmail [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchEmail eq '@example.com'`\n* email [eq]\n  * Supported values: string (1-500 chars). Case-insensitive exact match.\n    * Example: `email eq 'john.smith@example.com'`\n* searchExternalId [eq]\n  * Supported values: string (1-500 chars). Case-insensitive substring match.\n    * Example: `searchExternalId eq 'EMP'`\n* personId [eq, ne, in]\n  * Supported values: UUID\n    * Example: `personId in ('c33d7653-8cf8-4be2-99f8-7f2ad7250559','a307242e-b008-4c19-9dd0-24ae67545313')`\n* loginType [eq]\n    * Supported values: `local` | `sso`\n    * Example: `loginType eq 'sso'`\n* login [eq]\n    * Supported values: `hasLogin`, `noLogin`, `invitationSent`, `internalLogin`, `externalLogin`\n    * Example: `login eq 'hasLogin'`\n* hasEmail [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasEmail eq true`\n* hasExternalId [eq]\n    * Supported values: `true` | `false`\n    * Example: `hasExternalId eq false`\n* searchCustomFields [eq]\n  * Supported values: string (1-500 chars)\n    * Example: `searchCustomFields eq 'BadgeType'`\n* permission [eq]\n    * Supported values: permission name string. Common values include `Identity`, `ViewPII`,\n        `ManageAccess`, `ManagePeople`, `Command`, `Monitor`, `ManageDevices`,\n        `ManageSystem`, `AuditReports`, `ExternalManagement`, `ViewVideo`, `ManageVideo`,\n        `ManageReports`.\n    * Example: `permission eq 'ManagePeople'`\n* isActive [eq]\n    * Supported values: `true` | `false`\n    * Example: `isActive eq true`\n* userName [eq]\n  * Supported values: string (1-500 chars)\n    * Example: `userName eq 'jsmith'`\n* externalId [eq, in]\n  * Supported values: string (1-500 chars)\n    * Example: `externalId in ('EMP001','EMP002','EMP003')`\n* spaceId [eq, in]\n  * Supported values: UUID\n    * Example: `spaceId eq '0ef28411-3022-430f-a7e9-12612a47b76a'`\n* groupId [eq, in]\n  * Supported values: UUID\n    * Example: `groupId in ('2692764a-fea7-4aee-8dab-b22dc3c57e91')`\n* lastModified [gt, lt]\n    * Supported values: ISO 8601 UTC timestamp (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds)\n    * Example: `lastModified lt '2026-01-04T10:02:29Z'`\n* customFields > custom_[identifier] [eq, ne, in] (text type) | [gt, ge, lt, le] (date type)\n    * Supported values: string (1-500 chars) for text fields; ISO 8601 UTC date format for date\n        fields (e.g., `YYYY-MM-DDTHH:mm:ssZ`). Text field matching is case-insensitive. Date field\n        comparisons ignore the time portion.\n    * Note: The filter requires the `custom_` prefix followed by the field identifier (e.g., `custom_department` or `custom_joinDate`).\n    * Examples: `custom_department eq 'Engineering'` or `custom_joinDate ge '2020-01-01T00:00:00Z'`\n\n#### Filtering examples\n* `(hasSpaces eq true) and (search eq 'name') and\n    (personId eq 'a307242e-b008-4c19-9dd0-24ae67545313') and (loginType eq 'sso') and\n    (externalId in ('EMP001','EMP002','EMP003'))`\n\n#### Query parameters (non-OData)\n* includeCredentials (true|false) - Include credential information in the response\n* includeSpaces (true|false) - Include space information in the response\n* credentialFilter - Filter people by credentials using an OData-style filter expression.\n  * Supported credential filters, operators, and values:\n    * personId [eq, ne, in]\n      * Supported values: UUID\n            * Example: `personId eq '2692764a-fea7-4aee-8dab-b22dc3c57e91'`\n    * type [eq, ne, in]\n            * Supported values: `BLUE_DIAMOND`, `BLUE_DIAMOND_INSTALL`, `PHYSICAL`, `EXTERNAL`, `PIN`\n            * Example: `type in ('PHYSICAL','BLUE_DIAMOND')`\n    * badgeId [eq, ne]\n      * Supported values: string (1-50 chars)\n            * Example: `badgeId eq '529'`\n    * credentialStatus [eq, ne]\n            * Supported values: `Active`, `Damaged`, `Other`, `Active Updated`, `Lost`, `Stolen`\n            * Example: `credentialStatus eq 'Active'`\n    * label [eq]\n      * Supported values: string (1-500 chars)\n            * Example: `label eq 'Front Desk Badge'`\n    * lastActivated [eq, gt, lt, ge, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2020-01-01T00:00:00.000Z`, milliseconds optional)\n            * Example: `lastActivated ge 2020-01-01T00:00:00.000Z`\n    * expirationTimestamp [eq, gt, lt, ge, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2025-12-24T19:31:03.737Z`) or an epoch timestamp (milliseconds)\n            * Example: `expirationTimestamp lt 2025-12-24T19:31:03.737Z`\n    * created [gt, ge, lt, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2020-01-01T00:00:00.000Z`)\n            * Example: `created gt 2025-12-24T19:31:03.737Z`\n    * lastModified [gt, ge, lt, le]\n            * Supported values: ISO 8601 UTC timestamp (e.g., `2026-01-01T00:00:00.000Z`)\n            * Example: `lastModified gt 2025-12-24T19:31:03.737Z`\n    * Example (combined): `credentialStatus eq 'Active' and type eq 'PHYSICAL' and lastActivated ge 2020-01-01T00:00:00.000Z`\n* sortBy - Field to sort results by\n* sortDirection - Sort direction",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "count": {
                                            "type": "number",
                                            "description": "People count.",
                                            "example": 0
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/customFields": {
            "get": {
                "summary": "List custom fields configured for people",
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "string",
                                                "description": "The unique ID of a custom field for a person.",
                                                "example": "df8ebe38-5395-44df-8efc-f37de32961f2",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            },
                                            "displayName": {
                                                "type": "string",
                                                "description": "The display name of the custom field of a person.",
                                                "example": "Department",
                                                "maxLength": 500
                                            },
                                            "identifier": {
                                                "type": "string",
                                                "description": "The identifier of a custom field.",
                                                "example": "department",
                                                "maxLength": 100,
                                                "pattern": "^[a-zA-Z0-9_]{1,50}$"
                                            },
                                            "required": {
                                                "type": "boolean",
                                                "description": "Weather the custom field is required while creating a person.",
                                                "example": false
                                            },
                                            "fieldType": {
                                                "type": "string",
                                                "description": "The type of the custom field of a person.",
                                                "example": "date"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/groups": {
            "get": {
                "summary": "List people groups",
                "description": "#### Filtering fields and operators\n* personId [eq, ne]\n  * Supported values: UUID\n    * Example: `personId eq 'c33d7653-8cf8-4be2-99f8-7f2ad7250559'`\n* id [eq, ne, in]\n  * Supported values: UUID\n    * Example: `id in ('674b990a-f921-4d28-b6fb-e3bc56bd8a85','0ef28411-3022-430f-a7e9-12612a47b76a')`\n* name [eq]\n  * Supported values: string (1-500 chars). Exact match.\n    * Example: `name eq 'Engineering Team'`\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n    * Example: `searchName eq 'engineer'`\n* siteId [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it includes people groups assigned to the global site (no site assignment).\n    * Example: `siteId eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* excludeSite [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it excludes people groups assigned to the global site (no site assignment).\n    * Example: `excludeSite eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* lastModified [gt, ge, lt, le]\n    * Supported values: ISO 8601 UTC timestamp (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds)\n    * Example: `lastModified lt '2026-01-04T10:02:29Z'`\n* created [gt, ge, lt, le]\n    * Supported values: ISO 8601 UTC timestamp (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds)\n    * Example: `created gt '2026-01-04T10:02:29Z'`\n\n#### Filtering examples\n* `(searchName eq 'Engineering') and (siteId eq null)`\n* `(personId eq 'c33d7653-8cf8-4be2-99f8-7f2ad7250559') and (excludeSite eq '2221bd28-2688-4569-a836-44d8174f3f61')`\n\n#### Query parameters (non-OData)\n* isDefault (true|false) - Filter groups configured to be automatically added to people when they are created\n* includePeople (true|false) - @deprecated - Include group membership details in the response\n* includeSpaces (true|false) - Include space assignment details in the response\n* includeDevices (true|false) - Include device details in the response",
                "parameters": [
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Indicates whether or not new people are automatically assigned to the group.",
                        "name": "isDefault",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Whether to include the people assigned to the group in the response.",
                        "name": "includePeople",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "Whether to include the spaces assigned to the person in the response.",
                        "name": "includeSpaces",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    },
                    {
                        "description": "Whether to include the devices assigned to the group in the response.",
                        "name": "includeDevices",
                        "in": "query",
                        "schema": {
                            "type": "boolean"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the group.",
                                                        "example": "0978daa9-84d7-4636-94c0-b7419638b91e",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the people group.",
                                                        "example": "General Employees",
                                                        "minLength": 1
                                                    },
                                                    "isDefault": {
                                                        "type": "boolean",
                                                        "description": "Indicates whether or not new people are automatically assigned to the group.",
                                                        "example": false
                                                    },
                                                    "isFirstCardUnlock": {
                                                        "type": "boolean",
                                                        "description": "Indicates whether the group is authorized for first card unlock.",
                                                        "example": false
                                                    },
                                                    "doubleCardPresentationAuthorized": {
                                                        "type": "boolean",
                                                        "description": "Indicates whether the group is authorized for double card presentation.",
                                                        "example": "false"
                                                    },
                                                    "numberOfPeople": {
                                                        "type": "integer",
                                                        "description": "A count of the number of people assigned to the group.",
                                                        "example": 5
                                                    },
                                                    "numberOfTemporaryPeople": {
                                                        "type": "integer",
                                                        "description": "A count of the number of people assigned to the group.",
                                                        "example": 5
                                                    },
                                                    "numberOfActivePeople": {
                                                        "type": "integer",
                                                        "description": "A count of the number of people assigned to the group.",
                                                        "example": 5
                                                    },
                                                    "numberOfSpaces": {
                                                        "type": "integer",
                                                        "description": "A count of the number of spaces assigned to the group.",
                                                        "example": 3
                                                    },
                                                    "numberOfDevices": {
                                                        "type": "integer",
                                                        "description": "A count of the number of devices assigned to the group.",
                                                        "example": 4
                                                    },
                                                    "space": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the space",
                                                            "example": "2C75233B-BB93-4E91-ADF3-271852FFD3C6",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "devices": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the device",
                                                            "example": "8605707D-662D-4AB8-ADAA-B91F4FF07EC7",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "siteIds": {
                                                        "type": "array",
                                                        "description": "The IDs of the sites the people group is associated with.",
                                                        "items": {
                                                            "type": "string",
                                                            "description": "The unique ID of the site",
                                                            "example": "5071341E-5046-4F84-9DDA-DF8A6D9483EB",
                                                            "x-format": {
                                                                "guid": true
                                                            }
                                                        }
                                                    },
                                                    "schedule": {
                                                        "type": "object",
                                                        "properties": {
                                                            "id": {
                                                                "type": "string",
                                                                "description": "The unique ID of the schedule or \"Always\"",
                                                                "example": "D7020B55-C97B-4941-8F6F-DFBB79C99487",
                                                                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|Always$"
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "description": "The name of the schedule",
                                                                "example": "Day Shift",
                                                                "minLength": 1,
                                                                "maxLength": 500,
                                                                "pattern": "^(?!\\s*$).+"
                                                            }
                                                        }
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The created time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last modified time.",
                                                        "example": "2021-12-01T00:00:00.000Z"
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "name",
                                                    "isDefault",
                                                    "isFirstCardUnlock",
                                                    "doubleCardPresentationAuthorized",
                                                    "numberOfPeople",
                                                    "numberOfTemporaryPeople",
                                                    "numberOfActivePeople",
                                                    "numberOfSpaces",
                                                    "numberOfDevices",
                                                    "schedule",
                                                    "created",
                                                    "lastModified"
                                                ]
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Create people group",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the people group.",
                                        "example": "General Employees",
                                        "minLength": 1
                                    },
                                    "isDefault": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not new people are automatically assigned to the group.",
                                        "example": false
                                    },
                                    "people": {
                                        "type": "array",
                                        "description": "A list of people IDs",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "temporaryPeople": {
                                        "type": "array",
                                        "description": "A list of temporary people assignments",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "personId": {
                                                    "type": "string",
                                                    "description": "The unique ID of the person.",
                                                    "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "example": "2018-05-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "personId"
                                            ]
                                        }
                                    },
                                    "spaces": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the space",
                                            "example": "2C75233B-BB93-4E91-ADF3-271852FFD3C6",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "devices": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device",
                                            "example": "8605707D-662D-4AB8-ADAA-B91F4FF07EC7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "siteIds": {
                                        "type": "array",
                                        "description": "The IDs of the sites the people group is associated with.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "5071341E-5046-4F84-9DDA-DF8A6D9483EB",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "scheduleId": {
                                        "type": "string",
                                        "description": "The unique ID of the schedule or \"Always\"",
                                        "example": "D7020B55-C97B-4941-8F6F-DFBB79C99487",
                                        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|Always$"
                                    },
                                    "assignAllPeople": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is assigned to every person.",
                                        "example": false
                                    },
                                    "isFirstCardUnlock": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is authorized for first card unlock.",
                                        "example": false
                                    },
                                    "doubleCardPresentationAuthorized": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is authorized for double card presentation.",
                                        "example": "false"
                                    },
                                    "lockedDoorOverride": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is authorized for overriding locked doors.",
                                        "example": false
                                    }
                                },
                                "required": [
                                    "name",
                                    "isDefault",
                                    "people",
                                    "spaces",
                                    "scheduleId",
                                    "assignAllPeople",
                                    "isFirstCardUnlock",
                                    "doubleCardPresentationAuthorized",
                                    "lockedDoorOverride"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the group.",
                                            "example": "0978daa9-84d7-4636-94c0-b7419638b91e",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/schedules/{id}": {
            "get": {
                "summary": "Get a schedule",
                "parameters": [
                    {
                        "description": "The unique ID of the schedule",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Schedules"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the schedule",
                                            "example": "8E947A0F-6EC6-41E7-9323-42C14BBDC429",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the schedule",
                                            "example": "Day Shift",
                                            "minLength": 1,
                                            "maxLength": 500,
                                            "pattern": "^(?!\\s*$).+"
                                        },
                                        "color": {
                                            "type": "string",
                                            "description": "The hex color value of the schedule",
                                            "example": "#A60000",
                                            "pattern": "^#[A-Fa-f0-9]{3,6}$"
                                        },
                                        "intervals": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the interval",
                                                        "example": "BF8801E3-862C-4AD8-819E-A64FB11BDC72",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "days": {
                                                        "type": "object",
                                                        "properties": {
                                                            "Sun": {
                                                                "type": "boolean",
                                                                "description": "Defines if Sunday is part of this schedule",
                                                                "example": false
                                                            },
                                                            "Mon": {
                                                                "type": "boolean",
                                                                "description": "Defines if Monday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Tue": {
                                                                "type": "boolean",
                                                                "description": "Defines if Tuesday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Wed": {
                                                                "type": "boolean",
                                                                "description": "Defines if Wednesday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Thu": {
                                                                "type": "boolean",
                                                                "description": "Defines if Thursday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Fri": {
                                                                "type": "boolean",
                                                                "description": "Defines if Friday is part of this schedule",
                                                                "example": true
                                                            },
                                                            "Sat": {
                                                                "type": "boolean",
                                                                "description": "Defines if Saturday is part of this schedule",
                                                                "example": false
                                                            }
                                                        }
                                                    },
                                                    "startTime": {
                                                        "type": "string",
                                                        "description": "Time of day when the schedule starts to apply",
                                                        "example": "10:00",
                                                        "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                    },
                                                    "endTime": {
                                                        "type": "string",
                                                        "description": "Time of day when the schedule stops applying",
                                                        "example": "11:00",
                                                        "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                    }
                                                }
                                            }
                                        },
                                        "holidayApply": {
                                            "type": "boolean",
                                            "description": "Defines if holidays are treated as an exception to this schedule",
                                            "example": true
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "color",
                                        "intervals",
                                        "holidayApply"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a schedule",
                "parameters": [
                    {
                        "description": "The unique ID of the schedule",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the schedule",
                                        "example": "Day Shift",
                                        "minLength": 1,
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "color": {
                                        "type": "string",
                                        "description": "The hex color value of the schedule",
                                        "example": "#A60000",
                                        "pattern": "^#[A-Fa-f0-9]{3,6}$"
                                    },
                                    "intervals": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the interval",
                                                    "example": "BF8801E3-862C-4AD8-819E-A64FB11BDC72",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "days": {
                                                    "type": "object",
                                                    "properties": {
                                                        "Sun": {
                                                            "type": "boolean",
                                                            "description": "Defines if Sunday is part of this schedule",
                                                            "example": false
                                                        },
                                                        "Mon": {
                                                            "type": "boolean",
                                                            "description": "Defines if Monday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Tue": {
                                                            "type": "boolean",
                                                            "description": "Defines if Tuesday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Wed": {
                                                            "type": "boolean",
                                                            "description": "Defines if Wednesday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Thu": {
                                                            "type": "boolean",
                                                            "description": "Defines if Thursday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Fri": {
                                                            "type": "boolean",
                                                            "description": "Defines if Friday is part of this schedule",
                                                            "example": true
                                                        },
                                                        "Sat": {
                                                            "type": "boolean",
                                                            "description": "Defines if Saturday is part of this schedule",
                                                            "example": false
                                                        }
                                                    }
                                                },
                                                "startTime": {
                                                    "type": "string",
                                                    "description": "Time of day when the schedule starts to apply",
                                                    "example": "10:00",
                                                    "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                },
                                                "endTime": {
                                                    "type": "string",
                                                    "description": "Time of day when the schedule stops applying",
                                                    "example": "11:00",
                                                    "pattern": "^(?:2[0-3]|[01][0-9]):[0-5][0-9]$"
                                                }
                                            }
                                        }
                                    },
                                    "holidayApply": {
                                        "type": "boolean",
                                        "description": "Defines if holidays are treated as an exception to this schedule",
                                        "example": true
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Schedules"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a schedule",
                "parameters": [
                    {
                        "description": "The unique ID of the schedule",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Schedules"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/sharedClip/{id}": {
            "get": {
                "summary": "Get a public URL for a video clip",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "ID of the public link",
                        "x-format": {
                            "guid": true
                        },
                        "name": "publicLinkId",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": ""
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Generate a new public URL for a video clip",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": ""
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Remove a public URL for a video clip",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/sites/{id}": {
            "get": {
                "summary": "Get a site",
                "parameters": [
                    {
                        "description": "The unique ID of the site",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "346C9887-ADC0-4997-BE47-0AC22A745BD7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the site",
                                            "example": "New York Site",
                                            "minLength": 1
                                        },
                                        "numberOfSpaces": {
                                            "type": "number",
                                            "description": "The number of spaces in the site",
                                            "example": 5
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a site",
                "parameters": [
                    {
                        "description": "The unique ID of the site",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the site",
                                        "example": "New York Site",
                                        "minLength": 1
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a site",
                "parameters": [
                    {
                        "description": "The unique ID of the site",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/spaces/count": {
            "get": {
                "summary": "Get count of spaces",
                "description": "#### Filtering fields and operators\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n  * Example: `searchName eq 'Entrance'`\n* id [eq, in]\n  * Supported values: UUID\n  * Example: `id in ('674b990a-f921-4d28-b6fb-e3bc56bd8a85', '0ef28411-3022-430f-a7e9-12612a47b76a')`\n* siteId [eq]\n  * Supported values: UUID or `null`. When `null` is sent, it includes spaces assigned to the global site (no site assignment).\n  * Example: `siteId eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* hasMaxNumberOfPeople [eq]\n  * Supported values: `true` | `false`\n  * Behavior: Checks if the space has 5000 or more assigned people, as this is the maximum allowed.\n  * Example: `hasMaxNumberOfPeople eq true`\n* type [eq]\n  * Supported values: `area`, `parking_lot`, `building` , `location`, `region`\n  * Example: `type eq 'area'`\n\n#### Filtering examples:\n* searchName eq 'Main Entrance'\n* siteId eq null\n* (type eq 'building') and (searchName eq 'HQ')\n\n#### Query parameters (non-OData)\n* includeDevices (true|false) - Determines whether or not to include the list of devices assigned to the space in the response.\n* includePeopleGroups (true|false) - Determines whether or not to include the list of people groups assigned to this space in the response.\n* isDefault (true|false) - Filters spaces that are configured to be automatically added to people when they are created.",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Spaces"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "count": {
                                            "type": "number",
                                            "description": "Space count.",
                                            "example": 0
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/spaces/{id}": {
            "get": {
                "summary": "Get a space",
                "parameters": [
                    {
                        "description": "The unique ID of the space",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Spaces"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the space",
                                            "example": "8115F002-58A9-49EB-9EED-FA683C8A04EF",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the space",
                                            "example": "Front Lobby",
                                            "minLength": 1
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The type of space (area, parking_lot, building, location, or region)",
                                            "example": "area",
                                            "default": "area",
                                            "enum": [
                                                "area",
                                                "parking_lot",
                                                "building",
                                                "location",
                                                "region"
                                            ]
                                        },
                                        "devices": {
                                            "type": "array",
                                            "description": "The list of deviceIds of devices assigned to the space",
                                            "default": [],
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the device.",
                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "inputs": {
                                            "type": "array",
                                            "description": "The list of deviceIds of inputs assigned to the space",
                                            "default": [],
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the device.",
                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "outputs": {
                                            "type": "array",
                                            "description": "The list of deviceIds of outputs assigned to the space",
                                            "default": [],
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the device.",
                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "cameras": {
                                            "type": "array",
                                            "description": "The list of deviceIds of cameras assigned to the space",
                                            "default": [],
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the device.",
                                                "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "people": {
                                            "type": "array",
                                            "description": "The list of personIds of people assigned to the space",
                                            "default": [],
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the person.",
                                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "peopleGroups": {
                                            "type": "array",
                                            "description": "The list of people groups the space is assigned to",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the group.",
                                                        "example": "0978daa9-84d7-4636-94c0-b7419638b91e",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the people group.",
                                                        "example": "General Employees",
                                                        "minLength": 1
                                                    }
                                                }
                                            }
                                        },
                                        "isDefault": {
                                            "type": "boolean",
                                            "description": "True if this is a default space.",
                                            "example": true,
                                            "default": false
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the site that the space belongs to.",
                                                "example": "344F7AF1-ED49-489A-8E80-6ADEEBB1CC60",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "type",
                                        "devices",
                                        "inputs",
                                        "outputs",
                                        "cameras",
                                        "people",
                                        "peopleGroups",
                                        "isDefault"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a space",
                "parameters": [
                    {
                        "description": "The unique ID of the space",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the space",
                                        "example": "Front Lobby",
                                        "minLength": 1
                                    },
                                    "type": {
                                        "type": "string",
                                        "description": "The type of space (area, parking_lot, building, location, or region)",
                                        "example": "area",
                                        "default": "area",
                                        "enum": [
                                            "area",
                                            "parking_lot",
                                            "building",
                                            "location",
                                            "region"
                                        ]
                                    },
                                    "addedPeople": {
                                        "type": "array",
                                        "description": "The list of personIds of people to assign to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedPeople": {
                                        "type": "array",
                                        "description": "The list of personIds of people to remove from the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedDevices": {
                                        "type": "array",
                                        "description": "The list of deviceIds of devices to assign to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedDevices": {
                                        "type": "array",
                                        "description": "The list of deviceIds of devices to remove from the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedCameras": {
                                        "type": "array",
                                        "description": "The list of deviceIds of cameras to assign to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedCameras": {
                                        "type": "array",
                                        "description": "The list of deviceIds of cameras to remove from the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedInputs": {
                                        "type": "array",
                                        "description": "The list of deviceIds of inputs to assign to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedInputs": {
                                        "type": "array",
                                        "description": "The list of deviceIds of inputs to remove from the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedOutputs": {
                                        "type": "array",
                                        "description": "The list of deviceIds of outputs to assign to the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedOutputs": {
                                        "type": "array",
                                        "description": "The list of deviceIds of outputs to remove from the space",
                                        "default": [],
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device.",
                                            "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "isDefault": {
                                        "type": "boolean",
                                        "description": "True if this is a default space.",
                                        "example": true,
                                        "default": false
                                    },
                                    "siteId": {
                                        "type": "string",
                                        "description": "The unique ID of the site that the space belongs to.",
                                        "example": "344F7AF1-ED49-489A-8E80-6ADEEBB1CC60",
                                        "x-format": {
                                            "guid": true
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Spaces"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a space",
                "parameters": [
                    {
                        "description": "The unique ID of the space",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Spaces"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/subscriptions/my": {
            "get": {
                "summary": "Get the API subscription associated with the current key",
                "tags": [
                    "Subscriptions"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the subscription",
                                            "example": "a8992a2d-0072-42a2-a295-fe9cff2b564f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "productId": {
                                            "type": "string",
                                            "description": "The unique ID of the associated product or integration",
                                            "example": "b1234567-89ab-cdef-0123-456789abcdef",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "productName": {
                                            "type": "string",
                                            "description": "The name of the associated product or integration"
                                        },
                                        "activeKey": {
                                            "type": "string",
                                            "description": "Whether the primary or secondary API key is being used to make this request.",
                                            "enum": [
                                                "primary",
                                                "secondary"
                                            ]
                                        },
                                        "policies": {
                                            "type": "object",
                                            "description": "The policies of the product.",
                                            "properties": {
                                                "rateLimit": {
                                                    "type": "object",
                                                    "properties": {
                                                        "renewalPeriod": {
                                                            "type": "number",
                                                            "description": "The time period in seconds during which the number of allowed requests should not exceed the value specified in calls"
                                                        },
                                                        "calls": {
                                                            "type": "number",
                                                            "description": "The maximum total number of calls allowed during the time interval specified in the renewal period"
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The created time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastUsed": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "When the subscription was last used."
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "productId",
                                        "productName",
                                        "activeKey",
                                        "policies",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/subscriptions/{id}": {
            "get": {
                "summary": "Get an API subscription",
                "parameters": [
                    {
                        "description": "The unique ID of the subscription",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Subscriptions"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the subscription",
                                            "example": "a8992a2d-0072-42a2-a295-fe9cff2b564f",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "productId": {
                                            "type": "string",
                                            "description": "The unique ID of the associated product or integration",
                                            "example": "b1234567-89ab-cdef-0123-456789abcdef",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "productName": {
                                            "type": "string",
                                            "description": "The name of the associated product or integration"
                                        },
                                        "policies": {
                                            "type": "object",
                                            "description": "The policies of the product.",
                                            "properties": {
                                                "rateLimit": {
                                                    "type": "object",
                                                    "properties": {
                                                        "renewalPeriod": {
                                                            "type": "number",
                                                            "description": "The time period in seconds during which the number of allowed requests should not exceed the value specified in calls"
                                                        },
                                                        "calls": {
                                                            "type": "number",
                                                            "description": "The maximum total number of calls allowed during the time interval specified in the renewal period"
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The created time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastUsed": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "When the subscription was last used."
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "productId",
                                        "productName",
                                        "policies",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/clips/{id}/url": {
            "get": {
                "summary": "Get a direct video clip download URL",
                "parameters": [
                    {
                        "description": "The unique ID of the clip",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Video Clips"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/passes/{id}/link": {
            "get": {
                "summary": "Get a guest pass link",
                "parameters": [
                    {
                        "description": "The unique ID of the guest pass.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "link": {
                                            "type": "string",
                                            "description": "The link to a guest pass."
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/groups/count": {
            "get": {
                "summary": "Get count of people groups",
                "description": "#### Filtering fields and operators\n* personId [eq, ne]\n  * Supported values: UUID\n    * Example: `personId eq 'c33d7653-8cf8-4be2-99f8-7f2ad7250559'`\n* id [eq, ne, in]\n  * Supported values: UUID\n    * Example: `id in ('674b990a-f921-4d28-b6fb-e3bc56bd8a85','0ef28411-3022-430f-a7e9-12612a47b76a')`\n* name [eq]\n  * Supported values: string (1-500 chars). Exact match.\n    * Example: `name eq 'Engineering Team'`\n* searchName [eq]\n  * Supported values: string (1-500 chars). Performs case-insensitive substring match.\n    * Example: `searchName eq 'engineer'`\n* siteId [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it includes people groups assigned to the global site (no site assignment).\n    * Example: `siteId eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* excludeSite [eq]\n    * Supported values: UUID or `null`. When `null` is sent, it excludes people groups assigned to the global site (no site assignment).\n    * Example: `excludeSite eq '2221bd28-2688-4569-a836-44d8174f3f61'`\n* lastModified [gt, ge, lt, le]\n    * Supported values: ISO 8601 UTC timestamp (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds)\n    * Example: `lastModified lt '2026-01-04T10:02:29Z'`\n* created [gt, ge, lt, le]\n    * Supported values: ISO 8601 UTC timestamp (e.g., `YYYY-MM-DDTHH:mm:ssZ`, optional milliseconds)\n    * Example: `created gt '2026-01-04T10:02:29Z'`\n\n#### Filtering examples\n* `(searchName eq 'Engineering') and (siteId eq null)`\n* `(personId eq 'c33d7653-8cf8-4be2-99f8-7f2ad7250559') and (excludeSite eq '2221bd28-2688-4569-a836-44d8174f3f61')`\n\n#### Query parameters (non-OData)\n* isDefault (true|false) - Filter groups configured to be automatically added to people when they are created\n* includePeople (true|false) - @deprecated - Include group membership details in the response\n* includeSpaces (true|false) - Include space assignment details in the response\n* includeDevices (true|false) - Include device details in the response",
                "parameters": [
                    {
                        "description": "OData filter to be applied.",
                        "name": "$filter",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "count": {
                                            "type": "number",
                                            "description": "People group count",
                                            "example": 0
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/groups/{groupId}": {
            "get": {
                "summary": "Get a people group",
                "parameters": [
                    {
                        "description": "The unique ID of the group.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "groupId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the group.",
                                            "example": "0978daa9-84d7-4636-94c0-b7419638b91e",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "name": {
                                            "type": "string",
                                            "description": "The name of the people group.",
                                            "example": "General Employees",
                                            "minLength": 1
                                        },
                                        "spaces": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the space",
                                                "example": "2C75233B-BB93-4E91-ADF3-271852FFD3C6",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "devices": {
                                            "type": "array",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the device",
                                                "example": "8605707D-662D-4AB8-ADAA-B91F4FF07EC7",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "people": {
                                            "type": "array",
                                            "description": "A list of people IDs",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the person.",
                                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "siteIds": {
                                            "type": "array",
                                            "description": "The IDs of the sites the people group is associated with.",
                                            "items": {
                                                "type": "string",
                                                "description": "The unique ID of the site",
                                                "example": "5071341E-5046-4F84-9DDA-DF8A6D9483EB",
                                                "x-format": {
                                                    "guid": true
                                                }
                                            }
                                        },
                                        "schedule": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string",
                                                    "description": "The unique ID of the schedule or \"Always\"",
                                                    "example": "D7020B55-C97B-4941-8F6F-DFBB79C99487",
                                                    "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|Always$"
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "description": "The name of the schedule",
                                                    "example": "Day Shift",
                                                    "minLength": 1,
                                                    "maxLength": 500,
                                                    "pattern": "^(?!\\s*$).+"
                                                }
                                            }
                                        },
                                        "isDefault": {
                                            "type": "boolean",
                                            "description": "Indicates whether or not new people are automatically assigned to the group.",
                                            "example": false
                                        },
                                        "isFirstCardUnlock": {
                                            "type": "boolean",
                                            "description": "Indicates whether the group is authorized for first card unlock.",
                                            "example": false
                                        },
                                        "doubleCardPresentationAuthorized": {
                                            "type": "boolean",
                                            "description": "Indicates whether the group is authorized for double card presentation.",
                                            "example": "false"
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The created time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last modified time.",
                                            "example": "2021-12-01T00:00:00.000Z"
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "name",
                                        "spaces",
                                        "devices",
                                        "people",
                                        "schedule",
                                        "isDefault",
                                        "isFirstCardUnlock",
                                        "doubleCardPresentationAuthorized",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a people group",
                "parameters": [
                    {
                        "description": "The unique ID of the group.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "groupId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "description": "The name of the people group.",
                                        "example": "General Employees",
                                        "minLength": 1
                                    },
                                    "isDefault": {
                                        "type": "boolean",
                                        "description": "Indicates whether or not new people are automatically assigned to the group.",
                                        "example": false
                                    },
                                    "scheduleId": {
                                        "type": "string",
                                        "description": "The unique ID of the schedule or \"Always\"",
                                        "example": "D7020B55-C97B-4941-8F6F-DFBB79C99487",
                                        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|Always$"
                                    },
                                    "addedPeople": {
                                        "type": "array",
                                        "description": "A list of people IDs",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedPeople": {
                                        "type": "array",
                                        "description": "A list of people IDs",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the person.",
                                            "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedTemporaryPeople": {
                                        "type": "array",
                                        "description": "A list of temporary people assignments",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "personId": {
                                                    "type": "string",
                                                    "description": "The unique ID of the person.",
                                                    "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "example": "2018-05-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "personId"
                                            ]
                                        }
                                    },
                                    "removedTemporaryPeople": {
                                        "type": "array",
                                        "description": "A list of temporary people assignments",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "personId": {
                                                    "type": "string",
                                                    "description": "The unique ID of the person.",
                                                    "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                                    "x-format": {
                                                        "guid": true
                                                    }
                                                },
                                                "startDate": {
                                                    "type": "string",
                                                    "example": "2018-05-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "endDate": {
                                                    "type": "string",
                                                    "example": "2018-06-29",
                                                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                                                },
                                                "timeZone": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "personId"
                                            ]
                                        }
                                    },
                                    "addedSpaces": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the space",
                                            "example": "2C75233B-BB93-4E91-ADF3-271852FFD3C6",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedSpaces": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the space",
                                            "example": "2C75233B-BB93-4E91-ADF3-271852FFD3C6",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedDevices": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device",
                                            "example": "8605707D-662D-4AB8-ADAA-B91F4FF07EC7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedDevices": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the device",
                                            "example": "8605707D-662D-4AB8-ADAA-B91F4FF07EC7",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "addedSites": {
                                        "type": "array",
                                        "description": "The IDs of the sites being added to an existing people group.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "5071341E-5046-4F84-9DDA-DF8A6D9483EB",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "removedSites": {
                                        "type": "array",
                                        "description": "The IDs of the sites being removed from an existing people group.",
                                        "items": {
                                            "type": "string",
                                            "description": "The unique ID of the site",
                                            "example": "5071341E-5046-4F84-9DDA-DF8A6D9483EB",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "isFirstCardUnlock": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is authorized for first card unlock.",
                                        "example": false
                                    },
                                    "doubleCardPresentationAuthorized": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is authorized for double card presentation.",
                                        "example": "false"
                                    },
                                    "lockedDoorOverride": {
                                        "type": "boolean",
                                        "description": "Indicates whether the group is authorized for overriding locked doors.",
                                        "example": false
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete a people group",
                "parameters": [
                    {
                        "description": "The unique ID of the group.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "groupId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/photo": {
            "get": {
                "summary": "Get the photo of a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string",
                                    "description": "Base64-encoded photo of a person."
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Upload a photo of a person (<2MB)",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "$ref": "#/components/requestBodies/Body"
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "201": {
                        "description": "Photo uploaded successfully"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Delete the photo of a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Add or update the photo of a person (<2MB)",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "photo": {
                                        "type": "string",
                                        "description": "Base64-encoded photo of a person."
                                    }
                                },
                                "required": [
                                    "photo"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/credentials": {
            "get": {
                "summary": "Get the credentials assigned to a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the credential.",
                                                        "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "externalId": {
                                                        "type": "string",
                                                        "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                                        "example": "BADGE-001",
                                                        "minLength": 1,
                                                        "maxLength": 100
                                                    },
                                                    "personExternalId": {
                                                        "type": "string",
                                                        "description": "The external ID of the person.",
                                                        "example": "12345",
                                                        "minLength": 1,
                                                        "maxLength": 500
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of the credential.",
                                                        "enum": [
                                                            "PHYSICAL",
                                                            "PIN",
                                                            "EXTERNAL",
                                                            "BLUE_DIAMOND",
                                                            "BLUE_DIAMOND_NFC",
                                                            "BLUE_DIAMOND_INSTALL"
                                                        ]
                                                    },
                                                    "label": {
                                                        "type": "string",
                                                        "description": "The optional label of the credential. Must not be only whitespace.",
                                                        "example": "My Badge",
                                                        "maxLength": 500,
                                                        "pattern": "^(?!\\s*$).+"
                                                    },
                                                    "badgeId": {
                                                        "type": "string",
                                                        "description": "The badge ID of the credential",
                                                        "example": "12345",
                                                        "pattern": "^[0-9]{1,17}$"
                                                    },
                                                    "credentialStatus": {
                                                        "type": "string",
                                                        "description": "The value of the credential status.",
                                                        "example": "Active",
                                                        "enum": [
                                                            "Active",
                                                            "Lost",
                                                            "Stolen",
                                                            "Terminated",
                                                            "Damaged",
                                                            "Other"
                                                        ]
                                                    },
                                                    "walletType": {
                                                        "type": "string",
                                                        "description": "The wallet ecosystem associated with the credential.",
                                                        "enum": [
                                                            "NONE",
                                                            "APPLE",
                                                            "GOOGLE"
                                                        ]
                                                    },
                                                    "walletStatus": {
                                                        "type": "string",
                                                        "description": "The wallet invitation or provisioning status associated with the credential.",
                                                        "enum": [
                                                            "INVITATION_PENDING",
                                                            "INVITATION_EXPIRED",
                                                            "ACTIVE",
                                                            "SUSPENDED",
                                                            "REMOVED",
                                                            "FAILURE"
                                                        ]
                                                    },
                                                    "lastActivated": {
                                                        "type": "integer",
                                                        "description": "The last time the credential was activated.",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "lastDeactivated": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last time the credential was deactivated.",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "expirationTimestamp": {
                                                        "type": "integer",
                                                        "description": "Each controller will expire the credential at this time in its own time zone.",
                                                        "example": "1633423600000"
                                                    },
                                                    "created": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The time the credential was created",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    },
                                                    "lastModified": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "description": "The last time the credential was modified",
                                                        "example": "2025-03-26T13:51:55.474Z"
                                                    }
                                                }
                                            }
                                        },
                                        "count": {
                                            "type": "number",
                                            "description": "The number of credentials for a person.",
                                            "example": 1
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "count"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "summary": "Issue a new mobile credential to a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "description": "The type of the mobile credential.",
                                        "enum": [
                                            "BLUE_DIAMOND",
                                            "BLUE_DIAMOND_NFC"
                                        ]
                                    },
                                    "shouldReturnProvisioningUrl": {
                                        "type": "boolean",
                                        "description": "Return a web provisioning URL instead of sending email. Optional; omitted or false sends email. Supported only for BLUE_DIAMOND_NFC, including bundles of that type."
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address where the credential will be sent. Optional and not used for delivery when shouldReturnProvisioningUrl is true.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "credentialBundleId": {
                                        "type": "string",
                                        "description": "Mode 3 existing credential bundle ID.",
                                        "x-format": {
                                            "guid": true
                                        }
                                    },
                                    "externalId": {
                                        "type": "string",
                                        "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                        "example": "BADGE-001",
                                        "minLength": 1,
                                        "maxLength": 100
                                    },
                                    "expirationTimestamp": {
                                        "type": "integer",
                                        "description": "Each controller will expire the credential at this time in its own time zone.",
                                        "example": "1633423600000"
                                    },
                                    "badgeId": {
                                        "type": "string",
                                        "description": "The badge ID of the credential",
                                        "example": "12345",
                                        "pattern": "^[0-9]{1,17}$"
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the credential.",
                                            "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "externalId": {
                                            "type": "string",
                                            "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                            "example": "BADGE-001",
                                            "minLength": 1,
                                            "maxLength": 100
                                        },
                                        "personId": {
                                            "type": "string",
                                            "description": "The unique ID of the person assigned the credential.",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The type of the credential.",
                                            "enum": [
                                                "PHYSICAL",
                                                "PIN",
                                                "EXTERNAL",
                                                "BLUE_DIAMOND",
                                                "BLUE_DIAMOND_NFC",
                                                "BLUE_DIAMOND_INSTALL"
                                            ]
                                        },
                                        "badgeId": {
                                            "type": "string",
                                            "description": "The badge ID of the credential",
                                            "example": "12345",
                                            "pattern": "^[0-9]{1,17}$"
                                        },
                                        "credentialStatus": {
                                            "type": "string",
                                            "description": "The value of the credential status.",
                                            "example": "Active",
                                            "enum": [
                                                "Active",
                                                "Lost",
                                                "Stolen",
                                                "Terminated",
                                                "Damaged",
                                                "Other"
                                            ]
                                        },
                                        "expirationTimestamp": {
                                            "type": "integer",
                                            "description": "Each controller will expire the credential at this time in its own time zone.",
                                            "example": "1633423600000"
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The time the credential was created",
                                            "example": "2025-03-26T13:51:55.474Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last time the credential was modified",
                                            "example": "2025-03-26T13:51:55.474Z"
                                        },
                                        "provisioningUrl": {
                                            "type": "string",
                                            "description": "The web provisioning URL, returned only when shouldReturnProvisioningUrl is true. Preserve the full URL, including its fragment.",
                                            "x-format": {
                                                "uri": {
                                                    "scheme": [
                                                        "https"
                                                    ]
                                                }
                                            }
                                        }
                                    },
                                    "required": [
                                        "id",
                                        "personId",
                                        "type",
                                        "credentialStatus",
                                        "created",
                                        "lastModified"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/sites/{id}/spaces": {
            "get": {
                "summary": "Get the spaces belonging to a site",
                "parameters": [
                    {
                        "description": "The unique ID of the site",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the space",
                                                        "example": "8115F002-58A9-49EB-9EED-FA683C8A04EF",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "isDefault": {
                                                        "type": "boolean",
                                                        "description": "True if this is a default space.",
                                                        "example": true,
                                                        "default": false
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the space",
                                                        "example": "Front Lobby",
                                                        "minLength": 1
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of space (area, parking_lot, building, location, or region)",
                                                        "example": "area",
                                                        "default": "area",
                                                        "enum": [
                                                            "area",
                                                            "parking_lot",
                                                            "building",
                                                            "location",
                                                            "region"
                                                        ]
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/sites/{id}/devices": {
            "get": {
                "summary": "Get the devices for a site",
                "parameters": [
                    {
                        "description": "The unique ID of the site",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the device.",
                                                        "example": "a1884ed4-994c-4100-bf41-9b18fd989fdf",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the device.",
                                                        "example": "Lobby Door Reader",
                                                        "minLength": 1
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "description": "The type of device",
                                                        "example": "Reader",
                                                        "minLength": 1
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/sites/{id}/peopleGroups": {
            "get": {
                "summary": "Get the people groups for a site",
                "parameters": [
                    {
                        "description": "The unique ID of the site",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The number of items to include in the result.",
                        "name": "$top",
                        "in": "query",
                        "schema": {
                            "type": "integer",
                            "minimum": 5,
                            "maximum": 100,
                            "default": 25
                        }
                    },
                    {
                        "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one).",
                        "name": "after",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Sites"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string",
                                                        "description": "The unique ID of the group.",
                                                        "example": "0978daa9-84d7-4636-94c0-b7419638b91e",
                                                        "x-format": {
                                                            "guid": true
                                                        }
                                                    },
                                                    "isGlobalGroup": {
                                                        "type": "boolean"
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the people group.",
                                                        "example": "General Employees",
                                                        "minLength": 1
                                                    },
                                                    "numberOfPeople": {
                                                        "type": "number"
                                                    }
                                                }
                                            }
                                        },
                                        "after": {
                                            "type": "string",
                                            "description": "The cursor from the previous page (used to retrieve the page \"after\" the previous one)."
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "after"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/credentials/{credentialId}": {
            "get": {
                "summary": "Get a credential",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The unique ID of the credential.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the credential.",
                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                "example": "BADGE-001",
                                "minLength": 1,
                                "maxLength": 100
                            }
                        ],
                        "name": "credentialId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the credential.",
                                            "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                            "x-format": {
                                                "guid": true
                                            }
                                        },
                                        "externalId": {
                                            "type": "string",
                                            "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                            "example": "BADGE-001",
                                            "minLength": 1,
                                            "maxLength": 100
                                        },
                                        "personExternalId": {
                                            "type": "string",
                                            "description": "The external ID of the person.",
                                            "example": "12345",
                                            "minLength": 1,
                                            "maxLength": 500
                                        },
                                        "type": {
                                            "type": "string",
                                            "description": "The type of the credential.",
                                            "enum": [
                                                "PHYSICAL",
                                                "PIN",
                                                "EXTERNAL",
                                                "BLUE_DIAMOND",
                                                "BLUE_DIAMOND_NFC",
                                                "BLUE_DIAMOND_INSTALL"
                                            ]
                                        },
                                        "label": {
                                            "type": "string",
                                            "description": "The optional label of the credential. Must not be only whitespace.",
                                            "example": "My Badge",
                                            "maxLength": 500,
                                            "pattern": "^(?!\\s*$).+"
                                        },
                                        "badgeId": {
                                            "type": "string",
                                            "description": "The badge ID of the credential",
                                            "example": "12345",
                                            "pattern": "^[0-9]{1,17}$"
                                        },
                                        "credentialStatus": {
                                            "type": "string",
                                            "description": "The value of the credential status.",
                                            "example": "Active",
                                            "enum": [
                                                "Active",
                                                "Lost",
                                                "Stolen",
                                                "Terminated",
                                                "Damaged",
                                                "Other"
                                            ]
                                        },
                                        "walletType": {
                                            "type": "string",
                                            "description": "The wallet ecosystem associated with the credential.",
                                            "enum": [
                                                "NONE",
                                                "APPLE",
                                                "GOOGLE"
                                            ]
                                        },
                                        "walletStatus": {
                                            "type": "string",
                                            "description": "The wallet invitation or provisioning status associated with the credential.",
                                            "enum": [
                                                "INVITATION_PENDING",
                                                "INVITATION_EXPIRED",
                                                "ACTIVE",
                                                "SUSPENDED",
                                                "REMOVED",
                                                "FAILURE"
                                            ]
                                        },
                                        "lastActivated": {
                                            "type": "integer",
                                            "description": "The last time the credential was activated.",
                                            "example": "2025-03-26T13:51:55.474Z"
                                        },
                                        "lastDeactivated": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last time the credential was deactivated.",
                                            "example": "2025-03-26T13:51:55.474Z"
                                        },
                                        "expirationTimestamp": {
                                            "type": "integer",
                                            "description": "Each controller will expire the credential at this time in its own time zone.",
                                            "example": "1633423600000"
                                        },
                                        "created": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The time the credential was created",
                                            "example": "2025-03-26T13:51:55.474Z"
                                        },
                                        "lastModified": {
                                            "type": "string",
                                            "format": "date-time",
                                            "description": "The last time the credential was modified",
                                            "example": "2025-03-26T13:51:55.474Z"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "patch": {
                "summary": "Update a credential",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The unique ID of the credential.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the credential.",
                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                "example": "BADGE-001",
                                "minLength": 1,
                                "maxLength": 100
                            }
                        ],
                        "name": "credentialId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "label": {
                                        "type": "string",
                                        "description": "The optional label of the credential. Must not be only whitespace.",
                                        "example": "My Badge",
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "credentialStatus": {
                                        "type": "string",
                                        "description": "The value of the credential status.",
                                        "example": "Active",
                                        "enum": [
                                            "Active",
                                            "Lost",
                                            "Stolen",
                                            "Terminated",
                                            "Damaged",
                                            "Other"
                                        ]
                                    },
                                    "credentialStatusReason": {
                                        "type": "string",
                                        "description": "The reason for the credential status.",
                                        "example": "The credential was received."
                                    },
                                    "expirationTimestamp": {
                                        "type": "integer",
                                        "description": "Each controller will expire the credential at this time in its own time zone. \"null\" will remove the current expiration timestamp.",
                                        "example": 1633423600000
                                    },
                                    "externalId": {
                                        "type": "string",
                                        "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                        "example": "BADGE-001",
                                        "minLength": 1,
                                        "maxLength": 100
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "delete": {
                "summary": "Remove a credential from a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The unique ID of the credential.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the credential.",
                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                "example": "BADGE-001",
                                "minLength": 1,
                                "maxLength": 100
                            }
                        ],
                        "name": "credentialId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "reasonValue": {
                                        "type": "string",
                                        "description": "The reason value for credential removal.",
                                        "example": "Lost",
                                        "enum": [
                                            "No Reason",
                                            "Lost",
                                            "Stolen",
                                            "Terminated",
                                            "Damaged",
                                            "Other"
                                        ]
                                    },
                                    "reasonDescription": {
                                        "type": "string",
                                        "description": "The description for the credential removal. Required if the reason is \"Other\".",
                                        "example": "The credential was lost."
                                    }
                                },
                                "required": [
                                    "reasonDescription"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/reports/{reportId}/{fileFormat}/url": {
            "get": {
                "summary": "Get a temporary download link for a report",
                "parameters": [
                    {
                        "description": "The unique ID of the report.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "reportId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The format of the report to get. 'csv' is only available for 'peopleReport'. Only 'pdf' is available for 'deviceReport'.",
                        "name": "fileFormat",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "pdf",
                                "xlsx",
                                "csv"
                            ]
                        }
                    }
                ],
                "tags": [
                    "Reports"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "url": {
                                            "type": "string",
                                            "description": "The URI to download the report."
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/analytics/getAllEventsCounts": {
            "post": {
                "summary": "Get count of all events in time period grouped by event type",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "startDateTime": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "endDateTime": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2021-12-31T23:59:59.999Z"
                                    },
                                    "timeInterval": {
                                        "type": "object",
                                        "properties": {
                                            "size": {
                                                "type": "integer",
                                                "default": 1,
                                                "x-constraint": {
                                                    "sign": "positive"
                                                }
                                            },
                                            "unit": {
                                                "type": "string",
                                                "default": "hours",
                                                "enum": [
                                                    "months",
                                                    "weeks",
                                                    "days",
                                                    "hours",
                                                    "minutes"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Analytics"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "results": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the event type"
                                                    },
                                                    "data": {
                                                        "type": "array",
                                                        "items": {
                                                            "type": "object",
                                                            "properties": {
                                                                "x": {
                                                                    "type": "integer",
                                                                    "description": "Unix timestamp in milliseconds",
                                                                    "example": "1713964179000"
                                                                },
                                                                "y": {
                                                                    "type": "integer"
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "totalCount": {
                                                        "type": "integer",
                                                        "description": "The event type's total count within the specified time range"
                                                    }
                                                },
                                                "required": [
                                                    "name",
                                                    "data",
                                                    "totalCount"
                                                ]
                                            }
                                        },
                                        "lastUpdated": {
                                            "type": "string",
                                            "format": "date-time"
                                        }
                                    },
                                    "required": [
                                        "results",
                                        "lastUpdated"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/analytics/getDailyAccessCounts": {
            "post": {
                "summary": "Get count of unique person access per day",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object"
                            }
                        }
                    }
                },
                "tags": [
                    "Analytics"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "results": {
                                            "type": "object",
                                            "properties": {
                                                "Sunday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                },
                                                "Monday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                },
                                                "Tuesday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                },
                                                "Wednesday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                },
                                                "Thursday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                },
                                                "Friday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                },
                                                "Saturday": {
                                                    "type": "object",
                                                    "properties": {
                                                        "value": {
                                                            "type": "integer"
                                                        },
                                                        "date": {
                                                            "type": "string",
                                                            "format": "date"
                                                        },
                                                        "displayName": {
                                                            "type": "string",
                                                            "description": "Localized day of the week name"
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "lastUpdated": {
                                            "type": "string",
                                            "format": "date-time"
                                        }
                                    },
                                    "required": [
                                        "results",
                                        "lastUpdated"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/analytics/getDeviceActivity": {
            "post": {
                "summary": "Get top devices based on event activity",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "startDateTime": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2021-12-01T00:00:00.000Z"
                                    },
                                    "endDateTime": {
                                        "type": "string",
                                        "format": "date-time",
                                        "example": "2021-12-31T23:59:59.999Z"
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "Analytics"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "results": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "name": {
                                                        "type": "string",
                                                        "description": "The name of the device"
                                                    },
                                                    "count": {
                                                        "type": "number",
                                                        "description": "The count of events associated with the device"
                                                    }
                                                },
                                                "required": [
                                                    "name",
                                                    "count"
                                                ]
                                            }
                                        },
                                        "lastUpdated": {
                                            "type": "string",
                                            "format": "date-time"
                                        }
                                    },
                                    "required": [
                                        "results",
                                        "lastUpdated"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/automations/{id}/execute": {
            "post": {
                "summary": "Execute an automation",
                "parameters": [
                    {
                        "description": "The unique ID of the automation",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Automations"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/controllerRules/{controllerRuleId}/execute": {
            "post": {
                "summary": "Execute a controller rule",
                "parameters": [
                    {
                        "description": "The unique ID of the controller rule",
                        "x-format": {
                            "guid": true
                        },
                        "name": "controllerRuleId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Controller Rules"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/lockdowns/{id}/stop": {
            "post": {
                "summary": "Stop a lockdown",
                "parameters": [
                    {
                        "description": "Lockdown profile ID.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Lockdowns"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/lockdowns/{id}/start": {
            "post": {
                "summary": "Start a lockdown",
                "parameters": [
                    {
                        "description": "Lockdown profile ID.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Lockdowns"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/passes/{id}/share": {
            "post": {
                "summary": "Share a guest pass",
                "parameters": [
                    {
                        "description": "The unique ID of the guest pass.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "emailRecipients": {
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "description": "Email address to send guest pass to",
                                            "example": "example@email.com",
                                            "x-format": {
                                                "email": {
                                                    "tlds": false
                                                }
                                            }
                                        }
                                    }
                                },
                                "required": [
                                    "emailRecipients"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/credentials/badge": {
            "post": {
                "summary": "Issue a new badge credential to a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "description": "The type of the badge credential.",
                                        "enum": [
                                            "PHYSICAL",
                                            "EXTERNAL"
                                        ]
                                    },
                                    "label": {
                                        "type": "string",
                                        "description": "The optional label of the credential. Must not be only whitespace.",
                                        "example": "My Badge",
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "badgeId": {
                                        "type": "string",
                                        "description": "The badge ID of the credential",
                                        "example": "12345",
                                        "pattern": "^[0-9]{1,17}$"
                                    },
                                    "credentialStatus": {
                                        "type": "string",
                                        "description": "The value of the credential status.",
                                        "example": "Active",
                                        "enum": [
                                            "Active",
                                            "Lost",
                                            "Stolen",
                                            "Terminated",
                                            "Damaged",
                                            "Other"
                                        ]
                                    },
                                    "credentialStatusReason": {
                                        "type": "string",
                                        "description": "The reason for the credential status.",
                                        "example": "The credential was received."
                                    },
                                    "expirationTimestamp": {
                                        "type": "integer",
                                        "description": "Each controller will expire the credential at this time in its own time zone.",
                                        "example": "1633423600000"
                                    }
                                },
                                "required": [
                                    "badgeId"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the credential.",
                                            "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/credentials/blueDiamond": {
            "post": {
                "summary": "Issue a new BlueDiamond mobile credential to a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "type": {
                                        "type": "string",
                                        "description": "The type of the BlueDiamond credential to issue. Defaults to BLUE_DIAMOND (BLE) when not provided. BLUE_DIAMOND_NFC is currently in preview and not yet available for general use.",
                                        "default": "BLUE_DIAMOND",
                                        "enum": [
                                            "BLUE_DIAMOND",
                                            "BLUE_DIAMOND_NFC"
                                        ]
                                    },
                                    "externalId": {
                                        "type": "string",
                                        "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                        "example": "BADGE-001",
                                        "minLength": 1,
                                        "maxLength": 100
                                    },
                                    "label": {
                                        "type": "string",
                                        "description": "The optional label of the credential. Must not be only whitespace.",
                                        "example": "My Badge",
                                        "maxLength": 500,
                                        "pattern": "^(?!\\s*$).+"
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email to send the BlueDiamond credential to.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    },
                                    "credentialStatus": {
                                        "type": "string",
                                        "description": "The value of the credential status.",
                                        "example": "Active",
                                        "enum": [
                                            "Active",
                                            "Lost",
                                            "Stolen",
                                            "Terminated",
                                            "Damaged",
                                            "Other"
                                        ]
                                    },
                                    "credentialStatusReason": {
                                        "type": "string",
                                        "description": "The reason for the credential status.",
                                        "example": "The credential was received."
                                    },
                                    "expirationTimestamp": {
                                        "type": "integer",
                                        "description": "Each controller will expire the credential at this time in its own time zone.",
                                        "example": "1633423600000"
                                    }
                                },
                                "required": [
                                    "email"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "id": {
                                            "type": "string",
                                            "description": "The unique ID of the credential.",
                                            "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                            "x-format": {
                                                "guid": true
                                            }
                                        }
                                    },
                                    "required": [
                                        "id"
                                    ]
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/devices/{deviceId}/commands/{command}/execute": {
            "post": {
                "summary": "Execute device command",
                "parameters": [
                    {
                        "description": "The unique ID of the device.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "deviceId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The command to execute. Access hardware platforms differ in supported commands. Mercury commands: TemporaryUnlock, ChangeReaderMode, OverrideReaderMode, ResetReaderMode, MomentaryActivateOutput, ActivateOutput, DeactivateOutput, MaskInput, UnmaskInput, GetSystemStatus. Node commands: TemporaryUnlock, OverrideDoorMode, ReleaseOverride, MomentaryActivateOutput, ActivateOutput, DeactivateOutput, Arm, Disarm, ReleaseInputArmDisarmOverride.",
                        "name": "command",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "TemporaryUnlock",
                                "ChangeReaderMode",
                                "OverrideReaderMode",
                                "ResetReaderMode",
                                "MomentaryActivateOutput",
                                "ActivateOutput",
                                "DeactivateOutput",
                                "MaskInput",
                                "UnmaskInput",
                                "GetSystemStatus",
                                "OverrideDoorMode",
                                "ReleaseOverride",
                                "Arm",
                                "Disarm",
                                "ReleaseInputArmDisarmOverride",
                                "UpdateFirmware"
                            ]
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "description": "The parameters of the command that is being executed.",
                                "properties": {
                                    "Mode": {
                                        "type": "string",
                                        "description": "The mode to set the device to. Only used for the ChangeReaderMode, OverrideReaderMode, and OverrideDoorMode commands. \n\n Mercury reader modes: CardOnly, CardAndPin, CardOrPin, Locked, FacilityCodeOnly, Unlocked \n\n Node door modes: Credential, Unlocked, CredentialPermanent, UnlockedPermanent",
                                        "example": "Unlocked",
                                        "enum": [
                                            "CardOnly, CardAndPin, CardOrPin, Locked, FacilityCodeOnly, Unlocked, Credential, Unlocked, CredentialPermanent, UnlockedPermanent"
                                        ]
                                    },
                                    "OverrideBehavior": {
                                        "type": "string",
                                        "description": "Override Behavior for OverrideReaderMode command",
                                        "example": "Duration",
                                        "enum": [
                                            "Duration",
                                            "Persistent"
                                        ]
                                    },
                                    "OverrideEndTime": {
                                        "type": "string",
                                        "description": "Override expiration timestamp for OverrideReaderMode command",
                                        "example": "2025-03-03T16:41:00Z"
                                    }
                                },
                                "required": [
                                    "OverrideBehavior",
                                    "OverrideEndTime"
                                ]
                            }
                        }
                    }
                },
                "tags": [
                    "Devices"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/gateways/{gatewayId}/commands/{command}/execute": {
            "post": {
                "summary": "Execute gateway command",
                "parameters": [
                    {
                        "description": "The unique ID of the gateway.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "gatewayId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The command to execute.",
                        "name": "command",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "UpdateGatewayFirmware",
                                "StartDiagnosticLogging",
                                "StopDiagnosticLogging"
                            ]
                        }
                    }
                ],
                "tags": [
                    "Devices"
                ],
                "responses": {
                    "202": {
                        "description": "Accepted"
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/credentials/{credentialId}/reissue": {
            "post": {
                "summary": "Reissue a BlueDiamond NFC credential for a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The unique ID of the credential.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the credential.",
                                "example": "5A6415CA-9DB0-4AA1-9047-57C5F753B684",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "An optional external ID for the credential, used to correlate it with an identifier in an external system.",
                                "example": "BADGE-001",
                                "minLength": 1,
                                "maxLength": 100
                            }
                        ],
                        "name": "credentialId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "shouldReturnProvisioningUrl": {
                                        "type": "boolean",
                                        "description": "Return a web provisioning URL instead of sending the reissued invitation email."
                                    },
                                    "email": {
                                        "type": "string",
                                        "description": "The email address where the reissued credential will be sent. Required unless shouldReturnProvisioningUrl is true; ignored in URL mode.",
                                        "example": "example@email.com",
                                        "x-format": {
                                            "email": {
                                                "tlds": false
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "provisioningUrl": {
                                            "type": "string",
                                            "description": "The web provisioning URL, returned only when shouldReturnProvisioningUrl is true. Preserve the full URL, including its fragment.",
                                            "x-format": {
                                                "uri": {
                                                    "scheme": [
                                                        "https"
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/automations/{id}/enable": {
            "patch": {
                "summary": "Enable an automation",
                "parameters": [
                    {
                        "description": "The unique ID of the automation",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Automations"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/automations/{id}/disable": {
            "patch": {
                "summary": "Disable an automation",
                "parameters": [
                    {
                        "description": "The unique ID of the automation",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Automations"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/passes/{id}/resetUsage": {
            "patch": {
                "summary": "Reset usage for a guest pass",
                "parameters": [
                    {
                        "description": "The unique ID of the guest pass.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "Guest Passes"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/subscriptions/{id}/regenerateKey/{keyType}": {
            "patch": {
                "summary": "Regenerate a key for an API subscription",
                "parameters": [
                    {
                        "description": "The unique ID of the subscription",
                        "x-format": {
                            "guid": true
                        },
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The key type to regenerate",
                        "name": "keyType",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "primary",
                                "secondary"
                            ]
                        }
                    }
                ],
                "tags": [
                    "Subscriptions"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "string",
                                    "description": "An API key",
                                    "example": "OTYzODM5ODEtYTU5ZS00ZGM0LWI2NGUtOTIzYWE4NGFkZjIxOjBXbVBtWEZkMmhhMzR6TXJaMFFjN3Ew"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/pin": {
            "delete": {
                "summary": "Remove a person's PIN",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Set a person's PIN",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "pin": {
                                        "type": "string",
                                        "description": "The value of the PIN.",
                                        "example": "1234",
                                        "pattern": "^([0-9]{4}|[0-9]{6}|[0-9]{9})$"
                                    }
                                }
                            }
                        }
                    }
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/credentials/badge/{id}": {
            "delete": {
                "summary": "Remove a badge credential from a person",
                "parameters": [
                    {
                        "description": "The badge ID of the credential",
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "pattern": "^[0-9]{1,17}$"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/photo/external": {
            "delete": {
                "summary": "Delete the external photo of a person",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Add or update the external photo of a person (<2MB)",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "$ref": "#/components/requestBodies/Body"
                },
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "413": {
                        "description": "Request Entity Too Large",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/people/{id}/groups/{groupId}": {
            "delete": {
                "summary": "Remove a person from a people group",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The unique ID of the group.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "groupId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "put": {
                "summary": "Add a person to a people group",
                "parameters": [
                    {
                        "description": "The unique ID of the person.",
                        "x-format": {
                            "guid": true
                        },
                        "x-alternatives": [
                            {
                                "type": "string",
                                "description": "The unique ID of the person.",
                                "example": "9bb0a5db-43a3-4c77-b59d-93645b8aaed8",
                                "x-format": {
                                    "guid": true
                                }
                            },
                            {
                                "type": "string",
                                "description": "The external ID of the person.",
                                "example": "12345",
                                "minLength": 1,
                                "maxLength": 500
                            }
                        ],
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The unique ID of the group.",
                        "x-format": {
                            "guid": true
                        },
                        "name": "groupId",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "description": "The type of the ID.",
                        "name": "idType",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "internal",
                                "external"
                            ]
                        }
                    },
                    {
                        "description": "Specifies which IDs in the request are external IDs.",
                        "name": "externalIdTypes",
                        "in": "query",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "tags": [
                    "People, Credentials, PINs, Photos, Groups"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "errorCode": {
                                            "type": "string",
                                            "description": "The error code string used to globally differentiate this error"
                                        },
                                        "errorMessage": {
                                            "type": "string",
                                            "description": "The localized error message for the error code"
                                        }
                                    },
                                    "required": [
                                        "errorCode",
                                        "errorMessage"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "security": [
        {
            "api-key": []
        }
    ],
    "servers": [
        {
            "url": "https://api.elementssecure.com"
        }
    ],
    "components": {
        "requestBodies": {
            "Body": {
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "photo": {
                                    "type": "string",
                                    "description": "Base64-encoded photo of a person."
                                },
                                "photoExternallyUpdated": {
                                    "type": "string",
                                    "format": "date-time",
                                    "description": "The last modified time when the person's photo was updated externally.",
                                    "example": "2021-12-01T00:00:00.000Z"
                                }
                            },
                            "required": [
                                "photo"
                            ]
                        }
                    }
                }
            }
        },
        "securitySchemes": {
            "api-key": {
                "name": "api-key",
                "description": "API key to authenticate",
                "type": "apiKey",
                "in": "header"
            }
        }
    }
}