{"openapi":"3.0.1","paths":{"\/api\/authgroup\/{authGroupID}\/registeredDevices":{"get":{"operationId":"getApiAuthgroupByAuthGroupIDRegisteredDevices","responses":{"200":{"content":{"application\/json":{"schema":{"items":{"$ref":"#\/components\/schemas\/RegisteredDevice"},"type":"array"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"The results are ordered by serial number","parameters":[{"required":true,"name":"authGroupID","in":"path","schema":{"type":"string"}}],"tags":["Auth Groups"],"summary":"Returns the devices registered to this AuthGroup"}},"\/api\/authgroup\/join":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AcceptOrganizationInvite"},"examples":{"AcceptOrganizationInvite":{"$ref":"#\/components\/examples\/AcceptOrganizationInvite"}}}}},"operationId":"postApiAuthgroupJoin","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}}}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Used by the front end `\/app\/login\/post-auth` route to accept project (auth group) invitations. The role the user receives in the\nreferenced AuthGroup is determined through AuthGroup invite role; if no role is defined, we default to read-only user.","summary":"Accepts an AuthGroup Invitation","tags":["Auth Groups"]},"get":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AcceptOrganizationInvite"},"examples":{"AcceptOrganizationInvite":{"$ref":"#\/components\/examples\/AcceptOrganizationInvite"}}}},"required":true},"operationId":"getApiAuthgroupJoin","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}}}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: GET \/api\/authgroup\/join was used to accept a project (auth group) invitation by clicking directly in an email.\nAccepting invitations is now handled by the \/app\/login\/post-auth route provided by the front end, which calls POST\n\/api\/authgroup\/join. This can be removed when any invitations linked to in this way have expired.","summary":"Accepts an AuthGroup Invitation","tags":["Auth Groups"]}},"\/api\/auth\/email\/change":{"post":{"deprecated":true,"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdatedUserEmail"},"examples":{"UpdatedUserEmail":{"$ref":"#\/components\/examples\/UpdatedUserEmail"}}}}},"operationId":"postApiAuthEmailChange","summary":"Initiates an email change for the current user.","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"tags":["Authentication"],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nSends an update email request to the provided new email address.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}]}},"\/api\/auth\/api-keys":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"examples":{"CreateApiKeyRequest":{"$ref":"#\/components\/examples\/CreateApiKeyRequest"}},"schema":{"$ref":"#\/components\/schemas\/CreateApiKeyRequest"}}}},"operationId":"postApiAuthApi-keys","responses":{"201":{"content":{"application\/json":{"examples":{"CreatedApiKeyResponse":{"$ref":"#\/components\/examples\/CreatedApiKeyResponse"}},"schema":{"$ref":"#\/components\/schemas\/CreatedApiKeyResponse"}}},"description":"Created"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"","summary":"Creates an API key for the authenticated user","tags":["API Keys"]},"get":{"summary":"Lists API keys owned by the authenticated user","description":"","tags":["API Keys"],"responses":{"200":{"content":{"application\/json":{"schema":{"type":"array","items":{"$ref":"#\/components\/schemas\/ApiKeyResponse"}},"examples":{"ArrayApiKeyResponse":{"$ref":"#\/components\/examples\/ArrayApiKeyResponse"}}}},"description":"OK"}},"operationId":"getApiAuthApi-keys","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}]}},"\/api\/organization\/invite":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"examples":{"InviteUserToOrganizationData":{"$ref":"#\/components\/examples\/InviteUserToOrganizationData"}},"schema":{"$ref":"#\/components\/schemas\/InviteUserToOrganizationData"}}}},"operationId":"postApiOrganizationInvite","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrgInviteResponse"},"examples":{"OrgInviteResponse":{"$ref":"#\/components\/examples\/OrgInviteResponse"}}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Generates and sends an invitation link for the given organization to the given user email with a default rolw of ReadOnlyUser.","summary":"Sends an organization invite to the given email.","tags":["Organization"]}},"\/api\/graphql":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GraphQLRequest"}}}},"operationId":"postApiGraphql","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GraphQLResult"}}},"description":"OK"}},"externalDocs":{"description":"GraphQL documentation.","url":"https:\/\/graphql.org\/learn\/serving-over-http\/#post-request"},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Serves the GraphQL API. For more details, see [graphql.org](https:\/\/graphql.org\/learn\/serving-over-http\/#post-request)","summary":"GraphQL API","tags":["GraphQL"]},"get":{"operationId":"getApiGraphql","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GraphQLResult"}}},"description":"OK"}},"externalDocs":{"description":"GraphQL documentation.","url":"https:\/\/graphql.org\/learn\/serving-over-http\/#get-request"},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Serves the GraphQL API. For more details, see [graphql.org](https:\/\/graphql.org\/learn\/serving-over-http\/#get-request)\n\nWebSocket upgrade requests to this route serve the GraphQL API over websockets to support streaming results like\nsubscriptions. Authentication is provided in the protocol's `init` message rather than request headers. The following\nsub-protocols are supported:\n- [graphql-transport-ws](https:\/\/github.com\/enisdenjo\/graphql-ws\/blob\/master\/PROTOCOL.md)\n- [graphql-ws](https:\/\/github.com\/apollographql\/subscriptions-transport-ws\/blob\/master\/PROTOCOL.md)","summary":"GraphQL API","tags":["GraphQL"],"parameters":[{"in":"query","schema":{"type":"string"},"required":true,"name":"query"},{"in":"query","schema":{"type":"string","nullable":true},"required":false,"name":"operationName"},{"in":"query","schema":{"type":"object","additionalProperties":{"type":"boolean"},"nullable":true},"example":{},"required":false,"name":"variables"}]}},"\/api\/organization\/join":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AcceptOrganizationInvite"},"examples":{"AcceptOrganizationInvite":{"$ref":"#\/components\/examples\/AcceptOrganizationInvite"}}}},"required":true},"operationId":"postApiOrganizationJoin","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Adds user to organization based on Organization invite ID.\nRole in organization is determined through Organization invite role, if no role is defined, we default to read-only user.","summary":"Adds a user to an organization","tags":["Organization"]}},"\/api\/image":{"post":{"requestBody":{"content":{"multipart\/form-data":{"examples":{"UploadImageData":{"$ref":"#\/components\/examples\/UploadImageData"}},"schema":{"$ref":"#\/components\/schemas\/UploadImageData"}},"application\/json":{"examples":{"UploadImageData":{"$ref":"#\/components\/examples\/UploadImageData"}},"schema":{"$ref":"#\/components\/schemas\/UploadImageData"}}},"required":true},"operationId":"postApiImage","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"ImageUploadResponse":{"$ref":"#\/components\/examples\/ImageUploadResponse"}},"schema":{"$ref":"#\/components\/schemas\/ImageUploadResponse"}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Uploads an image to the server, setting its new stored url & checksum in the database. If an existing ID is given, this will\nattempt an update of the image data. The data may be sent in either multipart\/form-data or JSON format. If using JSON, the\nimage file must be Base64-encoded. Using multipart\/form-data is recommended as it is a more efficient way to transmit binary\ndata.\n\nThis endpoint is intended for associating image file data with an existing `Image` node in the Quantum schema.","summary":"Uploads an image.","tags":["Images"]}},"\/api\/binding\/link":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LinkFileData"},"examples":{"LinkFileData":{"$ref":"#\/components\/examples\/LinkFileData"}}}}},"operationId":"postApiBindingLink","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"BindingUploadResponse":{"$ref":"#\/components\/examples\/BindingUploadResponse"}},"schema":{"$ref":"#\/components\/schemas\/BindingUploadResponse"}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Associates an existing `Binding` node with an already-uploaded file without re-uploading the file data. The user must have write access to the target file, and linking files across AuthGroups is not allowed.","summary":"Link a binding node to an existing file.","tags":["Bindings"]}},"\/api\/auth\/register":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RegisterUserData"},"examples":{"RegisterUserData":{"$ref":"#\/components\/examples\/RegisterUserData"}}}},"required":true},"operationId":"postApiAuthRegister","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"RegisterUserResponse":{"$ref":"#\/components\/examples\/RegisterUserResponse"}},"schema":{"$ref":"#\/components\/schemas\/RegisterUserResponse"}}}}},"deprecated":true,"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nCreates a new user based on the provided information. Requires jwt obtained via email from\n`\/api\/auth\/register\/initiate`. The user status is set to `Active` and immediately logged in.\n\n\n\nRegistration token is required when email verification is enforced, as indicated by a failed response to this endpoint","summary":"Registers a new user","tags":["Authentication"]}},"\/api\/auth\/login":{"get":{"operationId":"getApiAuthLogin","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LoginResponse"},"examples":{"LoginResponse":{"$ref":"#\/components\/examples\/LoginResponse"}}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nLogs in a user. If multi-factor authentication is enabled, returns a multi-factor token that can be used to\nsend a multi-factor code to the user. Otherwise, sets auth & refresh tokens as cookies and returns a whoami for the\nlogged in user.\n\nBasic authentication required.","summary":"Logs in a user","tags":["Authentication"]}},"\/api\/datasync":{"get":{"deprecated":true,"summary":"QuantumSync API Legacy Route. Use \/api\/quantumsync instead.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"tags":["Quantum Sync"],"description":"Refer to the \/api\/quantumsync route documentation for full details. This route will be removed in the next major version.","operationId":"getApiDatasync"}},"\/api\/auth\/api-key":{"delete":{"requestBody":{"content":{"application\/json":{"examples":{"RemoveApiKeyRequest":{"$ref":"#\/components\/examples\/RemoveApiKeyRequest"}},"schema":{"$ref":"#\/components\/schemas\/RemoveApiKeyRequest"}}},"required":true},"operationId":"deleteApiAuthApi-key","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Validates that the given token is linked to the currently authenticated user and removes it if so.","summary":"Removes a given API key for the user. Deprecated in favor of DELETE \/api\/auth\/api-keys\/:id.","tags":["Authentication"]}},"\/api\/device\/tailscale\/authToken":{"get":{"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/TailscalePostTailnetKeyResponse"}}}}},"summary":"Generates an OAuth token for Tailscale","tags":["Device Communications"],"operationId":"getApiDeviceTailscaleAuthToken","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"AutToken generated allowing hive's to enroll in our tailnet.\n\nmTLS authentication required."}},"\/api\/device\/login":{"get":{"deprecated":true,"operationId":"getApiDeviceLogin","summary":"Logs in a PassiveLogic device","responses":{"200":{"content":{"application\/json":{"examples":{"DeviceLoginResponse":{"$ref":"#\/components\/examples\/DeviceLoginResponse"}},"schema":{"$ref":"#\/components\/schemas\/DeviceLoginResponse"}}},"description":"OK"}},"tags":["Device Communications"],"description":"DEPRECATED: Device communication should use mTLS, where login is not required.\n\nLogs in a PassiveLogic device, responding with the authentication token.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}]}},"\/api\/authgroup\/remove\/{authGroupID}\/{userID}":{"post":{"operationId":"postApiAuthgroupRemoveByAuthGroupIDByUserID","responses":{"200":{"content":{"application\/json":{"examples":{"AuthGroupRemovalResponse":{"$ref":"#\/components\/examples\/AuthGroupRemovalResponse"}},"schema":{"$ref":"#\/components\/schemas\/AuthGroupRemovalResponse"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Remove a User from an AuthGroup. Users must have PrivilegedUser or greater permissions to remove another user.\nUser can only remove other users with permissions less than or equal to their own permissions. For example: PrivilegedUsers\ncannot remove SuperUsers.","summary":"Removes user from Auth Group","tags":["Auth Groups"],"parameters":[{"schema":{"type":"string"},"required":true,"in":"path","name":"authGroupID"},{"schema":{"type":"string"},"required":true,"in":"path","name":"userID"}]}},"\/api\/auth\/api-keys\/{apiKeyID}":{"delete":{"operationId":"deleteApiAuthApi-keysByApiKeyID","responses":{"204":{"description":"API key revoked."}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"","parameters":[{"name":"apiKeyID","required":true,"in":"path","schema":{"type":"string"}}],"tags":["API Keys"],"summary":"Revokes an API key"},"get":{"operationId":"getApiAuthApi-keysByApiKeyID","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiKeyResponse"},"examples":{"ApiKeyResponse":{"$ref":"#\/components\/examples\/ApiKeyResponse"}}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"","parameters":[{"name":"apiKeyID","required":true,"in":"path","schema":{"type":"string"}}],"tags":["API Keys"],"summary":"Gets API key metadata"},"patch":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateApiKeyRequest"},"examples":{"UpdateApiKeyRequest":{"$ref":"#\/components\/examples\/UpdateApiKeyRequest"}}}},"required":true},"operationId":"patchApiAuthApi-keysByApiKeyID","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ApiKeyResponse"},"examples":{"ApiKeyResponse":{"$ref":"#\/components\/examples\/ApiKeyResponse"}}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"","parameters":[{"name":"apiKeyID","required":true,"in":"path","schema":{"type":"string"}}],"tags":["API Keys"],"summary":"Updates API key metadata. API key role may only be reduced."}},"\/api\/util\/version":{"get":{"tags":["Utility"],"description":"Returns a single structured response describing what is deployed: the webserver build identity (version, revision, build datetime) and the Quantum version this webserver is running against.\n\nAny fields that cannot be determined will be returned as empty strings.","operationId":"getApiUtilVersion","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/VersionResponse"}}}}},"summary":"Returns the WebServer and Quantum versions"}},"\/api\/auth\/email\/change\/verify":{"get":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdatedUserEmail"},"examples":{"UpdatedUserEmail":{"$ref":"#\/components\/examples\/UpdatedUserEmail"}}}}},"operationId":"getApiAuthEmailChangeVerify","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}},"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"}}}}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nVerifies the new email is valid. Updates the user email with the newly validated one.\n\nToken authentication required. Provided by \/api\/auth\/email\/change.","summary":"Verifies and updates new user email","tags":["Authentication"]}},"\/api\/device\/deltasync":{"get":{"tags":["Delta Sync"],"summary":"Delta Sync API over websockets","operationId":"getApiDeviceDeltasync","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"# Delta Sync:\n\nA protocol that keeps a chosen set of fields in sync between a device and the cloud. Only type names, IDs, and plain typed values cross the wire, never Quantum schema encoded objects, so it keeps working across any Quantum version combination, both directions, reactively.\n\nAuth is the device's client certificate (mTLS), and the auth group on the cert bounds what the cloud pushes down and what writes it accepts. No Quantum schema version check here.\n\nOn connect the device sends `reconcile` with the values that changed since its watermark and holds its live updates until the cloud confirms with the reconcile's `ack`. After that, both sides stream changes as they happen. A bad node or message never takes down the connection. A node the cloud can't apply comes back with its id and what went wrong. A field it can't read or doesn't recognize is logged and skipped, and the rest of the update still applies. A message it can't read at all comes back as an error saying why. The connection stays open through all of it.\n\n## Supported types and fields:\n\nRight now Delta Sync only carries:\n\n### `property`\n- `currentValue` (number)\n- `description` (text)\n\n## Delta Sync messageTypes:\n\n### `deltaUpdate`: One or more changed fields on an object, batched so everything from one debounce window travels together. Device to cloud it carries a `requestID` and the cloud answers it with an `ack`, so a batch that fails can be retried. Cloud to device it is a fire and forget push with no ack. A field with a value is set, a field sent as null is cleared, and a field left out is unchanged.\nex)\n```json\n{\n    \"messageType\": \"deltaUpdate\",\n    \"deviceID\": \"<serialNumber>\",\n    \"requestID\": \"<uuid>\",\n    \"payload\": { \"updates\": [\n        { \"property\": { \"id\": \"<uuid>\", \"currentValue\": 72.5 } },\n        { \"property\": { \"id\": \"<uuid>\", \"description\": \"Supply fan\" } },\n        { \"property\": { \"id\": \"<uuid>\", \"currentValue\": 68.0, \"description\": \"Zone 1 setpoint\" } },\n        { \"property\": { \"id\": \"<uuid>\", \"currentValue\": null } },\n        { \"property\": { \"id\": \"<uuid>\", \"description\": null } }\n    ] }\n}\n```\n\n### `reconcile`: Device to cloud, sent on connect. The values that changed since the device's watermark, or every synced field on the first connect. The device is the source of truth, so this is a push not a request. Carries a `requestID` and is answered by an `ack`. Same payload shape as `deltaUpdate`.\nex)\n```json\n{\n    \"messageType\": \"reconcile\",\n    \"deviceID\": \"<serialNumber>\",\n    \"requestID\": \"<uuid>\",\n    \"payload\": {\n        \"since\": \"2026-09-04T12:00:00Z\",\n        \"updates\": [\n            { \"property\": { \"id\": \"<uuid>\", \"currentValue\": 72.5, \"description\": \"Supply fan\" } }\n        ]\n    }\n}\n```\n\n### `ack`: Cloud to device. Answers a `reconcile` or a device-sent `deltaUpdate`, echoing its `requestID`. `errors` lists the objects the cloud could not apply, each with a typed `code`. An empty list means everything applied. For a `reconcile` it also lists any property the cloud itself changed since the device's watermark, which the device then sends up, so a reconcile is two sends when the cloud has drifted and one send plus this ack when it has not. Streaming starts after the reconcile's ack.\nex)\n```json\n{\n    \"messageType\": \"ack\",\n    \"deviceID\": \"<serialNumber>\",\n    \"requestID\": \"<uuid>\",\n    \"payload\": {\n        \"errors\": [\n            { \"id\": \"<uuid>\", \"code\": \"notFound\", \"message\": \"Property not present in the cloud.\" }\n        ],\n        \"changed\": [\"<uuid>\"]\n    }\n}\n```\n\n### `error`: Either direction. Something was rejected, e.g. bad auth or an unknown message.\nex)\n```json\n{\n    \"messageType\": \"error\",\n    \"deviceID\": \"<serialNumber>\",\n    \"payload\": { \"code\": \"unauthorized\", \"message\": \"...\" }\n}\n```"}},"\/api\/image\/{imageID}":{"delete":{"operationId":"deleteApiImageByImageID","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}}}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: Delete an image node via the normal GraphQL endpoint or a QuantumSync operation. This route has been deprecated in favor of: POST \/api\/graphql.\n\nDelete the image with the given quantum node ID.\nIf authorized and the given image is found, it will be deleted from the file store and the database.\nThe ID provided must be the ID of the `Image` Quantum node, NOT the name of the image.","parameters":[{"required":true,"name":"imageID","in":"path","schema":{"type":"string"}}],"summary":"Delete an image.","tags":["Images"]}},"\/api\/auth\/magic-link-generate":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UserRegistrationInitiation"},"examples":{"UserRegistrationInitiation":{"$ref":"#\/components\/examples\/UserRegistrationInitiation"}}}}},"operationId":"postApiAuthMagic-link-generate","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MagicLinkResponse"}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nGenerates magic link containing `?token=<signed JWT with user email contained>` and sends it in an email to the user.\nThis is the secure mode and MUST be used in production.\nThis will not return a link to the client.\n\nIf User does not exist in Database, will throw 400 bad request. If user exists, will return 200 ok.\nThese links can then be used to login from GET magic-link-login.","summary":"Generates a Magic Link to be used to login.","tags":["Authentication"]}},"\/api\/export\/property\/history":{"get":{"responses":{"200":{"description":"OK","content":{"text\/plain":{"examples":{"String":{"$ref":"#\/components\/examples\/String"}},"schema":{"type":"string"}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"tags":["Export"],"summary":"Exports CSV formatted property history data","description":"Returns a string representation of property history values in CSV format from the given properties.\nreturns in the following headers:\nTime,Equipment name,Property name,Unit,Value\n\nTime returned in ISO8601 string format","operationId":"getApiExportPropertyHistory"}},"\/api\/util\/ping":{"get":{"description":"Use to check webserver health or keep connection alive. Returns pong message.","operationId":"getApiUtilPing","tags":["Utility"],"summary":"Keep-alive ping\/pong route","responses":{"200":{"description":"OK","content":{"text\/plain":{"schema":{"type":"string"},"examples":{"String":{"$ref":"#\/components\/examples\/String"}}}}}}}},"\/api\/authgroup\/decline":{"post":{"requestBody":{"content":{"application\/json":{"examples":{"DeclineOrganizationInvite":{"$ref":"#\/components\/examples\/DeclineOrganizationInvite"}},"schema":{"$ref":"#\/components\/schemas\/DeclineOrganizationInvite"}}},"required":true},"operationId":"postApiAuthgroupDecline","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}},"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Rejects an invitation based on AuthGroup invite ID.\nInvitation is deleted.","summary":"Declines an AuthGroup invitation","tags":["Auth Groups"]}},"\/api\/account\/user\/delete":{"delete":{"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}}}},"tags":["Account"],"summary":"Deletes the user making this request.","description":"Deletes the requesting user if they are not a SuperUser within any organizations.\nOtherwise prompts them to transfer ownership or delete the org before making this request.","operationId":"deleteApiAccountUserDelete"}},"\/api\/device\/metadata":{"put":{"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"tags":["Device Communications"],"responses":{"200":{"content":{"application\/json":{"examples":{"DeviceLoginResponse":{"$ref":"#\/components\/examples\/DeviceLoginResponse"}},"schema":{"$ref":"#\/components\/schemas\/DeviceLoginResponse"}}},"description":"OK"}},"operationId":"putApiDeviceMetadata","description":"Allows devices to communicate relevant information to the cloud.","summary":"Accepts PassiveLogic device metadata"}},"\/api\/util\/pl-hardware-info":{"get":{"operationId":"getApiUtilPl-hardware-info","description":"Returns a JSON object where the field 'runningOnHive' will be true if, on the server, the PL_HIVE_REVISION environment variable\nis set to a number greater than or equal to zero.","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeployedOnHiveResponse"}}}}},"tags":["Utility"],"summary":"Indicates to clients whether or not they are hives serving a webserver."}},"\/api\/auth\/magic-link-login":{"get":{"deprecated":true,"operationId":"getApiAuthMagic-link-login","summary":"Logs in a user using Magic Link generated by POST magic-link-generate","responses":{"200":{"content":{"application\/json":{"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}},"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"}}},"description":"OK"}},"tags":["Authentication"],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nRequires a magic login link containing containing `?token=<signed JWT with user email contained>`.\nThis is the secure mode and MUST be used in production.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}]}},"\/api\/site\/copy":{"post":{"operationId":"postApiSiteCopy","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ObjectIdentifiers"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Copies Project from one organization to a target organization given a project Identifier.\nAll UUID's are created new for the copied project.\nReturns a mapping of old identifiers and new identifiers of the given project.\nHistory data is NOT copied unless startDate and endDate are provided.\nHistory copy will take time to complete in the background and there will be no indication of success.","summary":"Copy Project from one organization to another","tags":["Site"],"parameters":[{"in":"query","name":"targetOrganizationID","schema":{"type":"string","format":"uuid"},"description":"Organization to copy the given site into.","required":true},{"in":"query","name":"siteID","schema":{"type":"string","format":"uuid"},"description":"Site to copy.","required":true},{"in":"query","name":"siteName","schema":{"type":"string","nullable":true},"description":"Optionally change the copied site name.","required":false},{"in":"query","name":"siteDirectory","schema":{"type":"string","nullable":true},"description":"Optionally change the copied site directory.","required":false},{"in":"query","name":"startDate","schema":{"nullable":true,"type":"string"},"description":"Date to start copying history from. Required to export all history.","required":false},{"in":"query","name":"endDate","schema":{"type":"string","nullable":true},"description":"Date to end copying history at. Required to export all history.","required":false}]}},"\/api\/binding":{"post":{"requestBody":{"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/UploadFileData"},"examples":{"UploadFileData":{"$ref":"#\/components\/examples\/UploadFileData"}}},"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UploadFileData"},"examples":{"UploadFileData":{"$ref":"#\/components\/examples\/UploadFileData"}}}},"required":true},"operationId":"postApiBinding","responses":{"200":{"content":{"application\/json":{"examples":{"BindingUploadResponse":{"$ref":"#\/components\/examples\/BindingUploadResponse"}},"schema":{"$ref":"#\/components\/schemas\/BindingUploadResponse"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Uploads a file to the server and associates that file with a binding node, setting its new stored URL & checksum in the\ndatabase. The data may be sent in either multipart\/form-data or JSON format. If using JSON, the image file must be\nBase64-encoded. Using multipart\/form-data is recommended as it is a more efficient way to transmit binary data.","summary":"Uploads a file associated with a binding.","tags":["Bindings"]}},"\/api\/util\/quantumversion":{"get":{"operationId":"getApiUtilQuantumversion","summary":"Returns the Quantum Schema version","tags":["Utility"],"description":"Returns the current version of the Quantum schema in use by this webserver as a semantic version.","responses":{"200":{"content":{"text\/plain":{"examples":{"String":{"$ref":"#\/components\/examples\/String"}},"schema":{"type":"string"}}},"description":"OK"}}}},"\/api\/image\/link":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LinkImageData"},"examples":{"LinkImageData":{"$ref":"#\/components\/examples\/LinkImageData"}}}}},"operationId":"postApiImageLink","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ImageUploadResponse"},"examples":{"ImageUploadResponse":{"$ref":"#\/components\/examples\/ImageUploadResponse"}}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Associates an existing `Image` node with an already-uploaded image file without re-uploading the file data. The user must have write access to the target image, and linking images across AuthGroups is not allowed.","summary":"Link an image node to an existing image file.","tags":["Images"]}},"\/api\/quantumsync":{"get":{"tags":["Quantum Sync"],"operationId":"getApiQuantumsync","summary":"QuantumSync API over websockets","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"# Custom QuantumSync\/ShadowClient API:\n\n## Error and retry convention\nClients own retry policy from stable error-code categories. Request and domain errors (441x and 443x–445x)\nrequire a corrected request rather than a blind replay. Backend errors (446x) may be retried with bounded\nexponential backoff; internal errors (447x) should be surfaced rather than automatically replayed. A sync\nresponse with an unconfirmed `transactionOutcome` must be reconciled before replaying the request.\n\n## QuantumSync QuantumSyncRequestTypes:\n### `start`: authenticates and specifies an initial context. note: the id for start and updateContext is used to key a Dictionary[String:AnyRootedQuantumGraph]\nex)\n```json\n{\n    \"type\": \"start\",\n    \"id\": \"site\",\n    \"appType\":\"BuildingStudio\"\n    \"payload\": {\n        \"authToken\": \"REDACTED\",\n        \"ID\": \"ACAF9E07-5031-4BC2-A8C5-D2C6598D83DE\",\n        \"from\": \"Site\",\n        \"include\": [\n            \"Site\",\n            \"Building\",\n            \"Floor\",\n            \"Zone\"\n    ]\n    }\n}\n```\n\n### `updateContext`: change the current context \/ graph in memory.\nnote: the previous graph\/context can be returned from memory by using updateContext id: <previous id used in start or updateContext>.\nUp to 5 contexts can be loaded before prevention (error) or deleteContext message needed to free up loaded count to load a new context.\n\nex)\n```json\n{\n    \"type\": \"updateContext\",\n    \"id\": \"building\",\n    \"payload\": {\n        \"ID\": \"ACAF9E07-5031-4BC2-A8C5-D2C6598D83DE\",\n        \"from\": \"Building\",\n        \"include\": [\n            \"Site\",\n            \"Floor\",\n            \"Zone\",\n            \"Image\",\n            \"Surface\",\n            \"Adjacency\",\n            \"System\",\n            \"Quanta\",\n            \"Manufacturer\",\n            \"Equipment\",\n            \"Property\",\n            \"Location\"\n        ]\n    }\n}\n```\n\n### `deleteContext`: delete\/clear the context out of memory.\nex)\n```json\n{\n    \"type\": \"deleteContext\",\n    \"id\": \"building\",\n    \"payload\": {}\n}\n```\n\n### `sync`: create\/update\/delete QuantumObjects via a FlatGraphDiff as the payload.\n\nExecuting concurrent sync's is not allowed. If there is a sync already processing and another sync is requested before the response of the first sync is sent, then the 2nd symc will return an error saying there is a sync currently processing, and to wait until its finished before requesting another sync.\n\nex)\n```json\n{\n    \"type\": \"sync\",\n    \"id\": \"F5B6BC51-B991-440C-8ACB-B55C65FD7C24\",\n    \"payload\": {\n        \"added\": [],\n        \"updated\": [\n            {\n                \"description\": null,\n                \"ID\": \"80187B0B-CEEB-488A-A9B7-06784CFB0464\",\n                \"longitude\": null,\n                \"locationPropertyID\": null,\n                \"elevation\": null,\n                \"latitude\": null,\n                \"address\": null,\n                \"timeZone\": null,\n                \"siteIDs\": [\n                    \"7E7E04B4-8F32-4585-839D-E0EFC7BB3544\"\n                ],\n                \"weatherSourceIDs\": [],\n                \"locked\": false,\n                \"authGroupID\": \"A1EBEC59-D887-473F-A5C5-7CBD4ADB2556\",\n                \"__typename\": \"Location\",\n                \"name\": \"foo\"\n            }\n        ],\n        \"removed\": []\n    }\n}\n```\n\n### `syncEphemeral`: create\/update\/delete QuantumObjects via a FlatGraphDiff as the payload, do not write them to the database,\nand discard them at the end of the websocket session.\nex)\n```json\n{\n    \"type\": \"syncEphemeral\",\n    \"id\": \"F5B6BC51-B991-440C-8ACB-B55C65FD7C24\",\n    \"payload\": {\n        \"added\": [],\n        \"updated\": [\n            {\n                \"description\": null,\n                \"ID\": \"80187B0B-CEEB-488A-A9B7-06784CFB0464\",\n                \"longitude\": null,\n                \"locationPropertyID\": null,\n                \"elevation\": null,\n                \"latitude\": null,\n                \"address\": null,\n                \"timeZone\": null,\n                \"siteIDs\": [\n                    \"7E7E04B4-8F32-4585-839D-E0EFC7BB3544\"\n                ],\n                \"weatherSourceIDs\": [],\n                \"locked\": false,\n                \"authGroupID\": \"A1EBEC59-D887-473F-A5C5-7CBD4ADB2556\",\n                \"__typename\": \"Location\",\n                \"name\": \"foo\"\n            }\n        ],\n        \"removed\": []\n    }\n}\n```\n\n### `propertyHistory`: Get history data for a property & listen for updates.\nex)\n```json\n{\n    \"type\": \"propertyHistory\",\n    \"id\": \"propertyHistory1\",\n    \"payload\": {\n        \"propertyIDs\": [\"E585C3B8-F1E5-40D0-83A7-658B248DF103\"],\n        \"startAt\": \"2024-01-01T00:00:00Z\",\n        \"endAt\": \"2024-01-01T01:00:00Z\",\n        \"resample\": {\n            \"interval\": {\n                \"to\": \"minutely\",\n                \"reduceUsing\": \"avg\",\n                \"fillUsing\": \"interpolate\"\n        },\n        \"pollIntervalSec\": 60\n    }\n}\n\n### `propertyHistoryStop`: Stop listening for property history updates\nex)\n```json\n{\n    \"type\": \"propertyHistoryStop\",\n    \"id\": \"propertyHistory1\"\n}\n```\n\n### `writeHistory`: Write historical data to a property\nex)\n```json\n{\n    \"type\": \"writeHistory\",\n    \"id\": \"writeHistory\",\n    \"payload\": {\n        \"histories\": [\n            {\n                \"propertyID\": \"E585C3B8-F1E5-40D0-83A7-658B248DF103\",\n                \"time\": \"2024-01-01T00:00:00Z\",\n                \"value\": 5.0\n            }\n        ]\n    }\n}\n```"}},"\/api\/graphql\/schema":{"get":{"operationId":"getApiGraphqlSchema","responses":{"200":{"content":{"text\/plain":{"schema":{"type":"string"},"examples":{"String":{"$ref":"#\/components\/examples\/String"}}}},"description":"OK"}},"externalDocs":{"url":"https:\/\/graphql.org\/learn\/schema\/","description":"GraphQL schema documentation."},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Returns the GraphQL schema served by this webserver in SDL (Schema Definition Language) format","summary":"GraphQL schema","tags":["GraphQL"]}},"\/api\/organization\/update-image":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationImageData"},"examples":{"OrganizationImageData":{"$ref":"#\/components\/examples\/OrganizationImageData"}}}},"required":true},"operationId":"postApiOrganizationUpdate-image","summary":"Updates the organization's image","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ImageUploadResponse"},"examples":{"ImageUploadResponse":{"$ref":"#\/components\/examples\/ImageUploadResponse"}}}},"description":"OK"}},"tags":["Organization"],"description":"Verifies that the user making the request has sufficient permissions to change the image for the organization.\nTakes in a new image as the new organization image. Creates or replaces the previously stored image.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}]}},"\/api\/image\/user-avatar":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ImageData"},"examples":{"ImageData":{"$ref":"#\/components\/examples\/ImageData"}}}}},"operationId":"postApiImageUser-avatar","responses":{"200":{"content":{"application\/json":{"examples":{"ImageUploadResponse":{"$ref":"#\/components\/examples\/ImageUploadResponse"}},"schema":{"$ref":"#\/components\/schemas\/ImageUploadResponse"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Uploads and updates the avatar image URL with the new image URL.","summary":"Update user avatar image","tags":["Images"]}},"\/api\/organization\/delete":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeleteOrganizationData"},"examples":{"DeleteOrganizationData":{"$ref":"#\/components\/examples\/DeleteOrganizationData"}}}},"required":true},"operationId":"postApiOrganizationDelete","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Completely deletes an organization, after verifying that the user making this request has permission to do so.\nSends an email to all other members of the organization informing them that it has been deleted.","summary":"Deletes specified organization.","tags":["Organization"]}},"\/api\/auth\/api-key\/remove":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/RemoveApiKeyRequest"},"examples":{"RemoveApiKeyRequest":{"$ref":"#\/components\/examples\/RemoveApiKeyRequest"}}}},"required":true},"operationId":"postApiAuthApi-keyRemove","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Validates that the given token is linked to the currently authenticated user and removes it if so.","summary":"Removes a given API key for the user. Deprecated in favor of DELETE \/api\/auth\/api-keys\/:id.","tags":["Authentication"]},"delete":{"requestBody":{"required":true,"content":{"application\/json":{"examples":{"RemoveApiKeyRequest":{"$ref":"#\/components\/examples\/RemoveApiKeyRequest"}},"schema":{"$ref":"#\/components\/schemas\/RemoveApiKeyRequest"}}}},"operationId":"deleteApiAuthApi-keyRemove","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Validates that the given token is linked to the currently authenticated user and removes it if so.","summary":"Removes a given API key for the user. Deprecated in favor of DELETE \/api\/auth\/api-keys\/:id.","tags":["Authentication"]}},"\/api\/auth\/api-key\/generate":{"get":{"operationId":"getApiAuthApi-keyGenerate","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenerateApiKeyResponse"},"examples":{"GenerateApiKeyResponse":{"$ref":"#\/components\/examples\/GenerateApiKeyResponse"}}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Generates, stores, and returns a new API key with the default expiration period for the user currently logged in.\n\nOnce created, you can then provide this API key in an\n`Authorization: PL-API-KEY <Key>` header in replacement of an `X-PL-AUTH` header.","parameters":[{"example":2678400,"schema":{"nullable":true,"type":"integer","format":"int64"},"name":"expireSeconds","in":"query","required":false,"description":"Number of seconds until the key expires."},{"example":"ReadOnlyUser","schema":{"type":"string","nullable":true},"name":"role","in":"query","required":false,"description":"Role of the new key."}],"tags":["Authentication"],"summary":"Generates an API key for the current user. Deprecated in favor of POST \/api\/auth\/api-keys."}},"\/api\/auth\/whoami":{"get":{"tags":["Authentication"],"summary":"Returns information about the currently logged in user.","operationId":"getApiAuthWhoami","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"WhoAmIResponse":{"$ref":"#\/components\/examples\/WhoAmIResponse"}},"schema":{"$ref":"#\/components\/schemas\/WhoAmIResponse"}}}}},"description":"Useful to check if a user is authenticated.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}]}},"\/api\/authgroup\/invite":{"post":{"requestBody":{"content":{"application\/json":{"examples":{"InviteUserToAuthGroupData":{"$ref":"#\/components\/examples\/InviteUserToAuthGroupData"}},"schema":{"$ref":"#\/components\/schemas\/InviteUserToAuthGroupData"}}},"required":true},"operationId":"postApiAuthgroupInvite","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AuthGroupInviteResponse"},"examples":{"AuthGroupInviteResponse":{"$ref":"#\/components\/examples\/AuthGroupInviteResponse"}}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Generates and sends an invitation link for the given Site or View (AuthGroup) to the given user email.","summary":"Sends an AuthGroup invite to the given email.","tags":["Auth Groups"]}},"\/api\/auth\/password\/reset":{"post":{"requestBody":{"content":{"application\/json":{"examples":{"RequestResetPasswordData":{"$ref":"#\/components\/examples\/RequestResetPasswordData"}},"schema":{"$ref":"#\/components\/schemas\/RequestResetPasswordData"}}},"required":true},"operationId":"postApiAuthPasswordReset","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}}}},"deprecated":true,"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nInitiates a password reset for the given user, sending them an email with a password reset link authenticated to their\naccount only.","summary":"Initiates a password reset.","tags":["Authentication"]}},"\/api\/auth\/keys":{"get":{"description":"Returns the public keys used to sign the JSON web tokens so their authenticity can be verified. These are served in the\nstandard JSON Web Key format: https:\/\/www.rfc-editor.org\/rfc\/rfc7517","operationId":"getApiAuthKeys","summary":"Returns the public keys used to sign PassiveLogic JSON web tokens.","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/JWKS"}}},"description":"OK"}},"tags":["Authentication"]}},"\/api\/organization\/decline":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeclineOrganizationInvite"},"examples":{"DeclineOrganizationInvite":{"$ref":"#\/components\/examples\/DeclineOrganizationInvite"}}}},"required":true},"operationId":"postApiOrganizationDecline","responses":{"200":{"content":{"application\/json":{"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}},"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Rejects an invitation based on Organization invite ID.\nInvitation is deleted.","summary":"Declines an organization invitation","tags":["Organization"]}},"\/api\/comfort\/adjustment":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ComfortControllerComfortAdjustmentRequest"}}},"required":true},"operationId":"postApiComfortAdjustment","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ComfortControllerComfortAdjustmentResponse"}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"","summary":"Adjusts the comfort model of the provided zone group to make the space hotter or colder.","tags":["Comfort"]}},"\/api\/util\/quantumlens":{"post":{"summary":"QuantumLens (iOS) update & compatibility check","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"operationId":"postApiUtilQuantumlens","description":"Returns the status of the QuantumLens application for the current user.\n\n- `appUpdate`: indicates if a new app version is required (true = forced, false = soft, nil = no update)\n- `osUpdate`: indicates if an iOS update is required (true = update required, nil = compatible)\n- `user`: information about the current user\n\nThis response helps the client determine whether the app or iOS requires an update before continuing.","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/QuantumLensResponse"}}},"description":"OK"}},"tags":["Utility"]}},"\/api\/auth\/password\/reset\/change":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ChangePasswordData"},"examples":{"ChangePasswordData":{"$ref":"#\/components\/examples\/ChangePasswordData"}}}},"required":true},"operationId":"postApiAuthPasswordResetChange","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}}}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nChanges a user's password to the specified value, reached from password reset flow.\n\nToken authentication required, only using the authentication JWT decoded from the password reset URL sent to a user\nfrom a reset initiation.","summary":"Changes a user's password from the password reset flow.","tags":["Authentication"]}},"\/api\/organization\/update-logo":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationImageData"},"examples":{"OrganizationImageData":{"$ref":"#\/components\/examples\/OrganizationImageData"}}}}},"operationId":"postApiOrganizationUpdate-logo","responses":{"200":{"description":"OK","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ImageUploadResponse"},"examples":{"ImageUploadResponse":{"$ref":"#\/components\/examples\/ImageUploadResponse"}}}}}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Verifies that the user making the request has sufficient permissions to change the logo for the organization.\nTakes in a new image as the organization's logo. Creates or replaces the previous stored logo.","summary":"Updates the organization's logo","tags":["Organization"]}},"\/api\/account\/eula\/accept":{"post":{"operationId":"postApiAccountEulaAccept","responses":{"200":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"},"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}}}},"description":"OK"}},"deprecated":true,"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\nDenotes that the current user has accepted the EULA.\nReturns updated access and refresh tokens.","summary":"Accepts EULA for the current user","tags":["Account"]}},"\/api\/graphqlSubscribe":{"get":{"tags":["GraphQL"],"summary":"GraphQL API over websocket legacy route. Use GET \/api\/graphql with a WebSocket upgrade instead.","security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Serves the GraphQL API over websockets to support streaming results like subscriptions. Refer to the `GET \/api\/graphql` route\ndocumentation for full details. This route is kept for backwards compatibility.\n\nThe following sub-protocols are supported:\n- [graphql-transport-ws](https:\/\/github.com\/enisdenjo\/graphql-ws\/blob\/master\/PROTOCOL.md)\n- [graphql-ws](https:\/\/github.com\/apollographql\/subscriptions-transport-ws\/blob\/master\/PROTOCOL.md)","operationId":"getApiGraphqlSubscribe","deprecated":true}},"\/api\/device\/register":{"post":{"requestBody":{"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DeviceRegistrationRequest"}}},"required":true},"operationId":"postApiDeviceRegister","responses":{"200":{"content":{"application\/json":{"examples":{"DeviceRegistrationResponse":{"$ref":"#\/components\/examples\/DeviceRegistrationResponse"}},"schema":{"$ref":"#\/components\/schemas\/DeviceRegistrationResponse"}}},"description":"OK"}},"security":[{"Authentication Token":[]},{"DEPRECATED - API Key":[]},{"API Key":[]},{"Basic Auth":[]}],"description":"Registers a PassiveLogic device to a site and returns the auth group the device now belongs to.\n\nThe caller must prove they are allowed to add the device to the site in one of two ways:\n- Provide a `userJWT` from a user who has access to the site. The device making the request is the one being registered.\n- Provide a `followerSerialNumber` when a leader device is bringing a follower onto its site.\n\nIf the device is already registered, its auth group is updated instead of creating a duplicate registration.\n\nThis call must be made on the device itself over mTLS authentication.\n\nOnly call this endpoint for devices provisioned by a webserver on v9.1.1 or older, where provisioning does not register the device correctly when `initiate` is called. Newer devices are registered automatically and do not need this call.","summary":"Registers a device to a site","tags":["Device Communications"]}},"\/api\/auth\/register\/initiate":{"post":{"requestBody":{"required":true,"content":{"application\/json":{"examples":{"UserRegistrationInitiation":{"$ref":"#\/components\/examples\/UserRegistrationInitiation"}},"schema":{"$ref":"#\/components\/schemas\/UserRegistrationInitiation"}}}},"operationId":"postApiAuthRegisterInitiate","responses":{"200":{"description":"OK","content":{"application\/json":{"examples":{"GenericMessageResponse":{"$ref":"#\/components\/examples\/GenericMessageResponse"}},"schema":{"$ref":"#\/components\/schemas\/GenericMessageResponse"}}}}},"deprecated":true,"description":"DEPRECATED: This endpoint is not available when Keycloak authentication is turned on and will be removed in the future.\n\nInitiates the PassiveLogic registration process by sending an email to the given user. A user is not stored in the system\nat this point in the process - instead this serves as the initial step proving that a uer has access to the email they\nare signing up with.\n\nEmail will contain a link that holds a signed JWT from us. That JWT is later used to validate and complete registration.\n\nNo authentication required.","summary":"Sends an email to begin email verification and registration.","tags":["Authentication"]}}},"components":{"schemas":{"CreateApiKeyRequest":{"description":"Options for a new API key. The secret and owner are assigned by the server.","required":["expiration","name","role"],"properties":{"role":{"type":"string","description":"Role assigned to the API key. Options are `read` or `readWrite`."},"name":{"type":"string","description":"Label for the API key."},"expiration":{"type":"string","description":"Expiration time.","format":"date-time"}},"type":"object"},"MagicLinkResponse":{"description":"Email for use signing up with a magic link","properties":{"message":{"description":"Message describing the response type.","type":"string","nullable":true},"url":{"description":"Url to be used a magic link login.","type":"string","nullable":true}},"type":"object"},"RegisteredDevice":{"type":"object"},"QuantumObjectType":{"type":"string","enum":["Adjacency","AllowedQuanta","Analysis","Animation","ApiKey","Artifact","Asset","AuthGroup","Behavior","Binding","Building","Campus","CampusDirectory","CompatibleQuanta","ConnectionNet","ConnectionNode","ConstructionCategory","ControlKnot","Device","DisplayRule","EmailVerification","Equation","Equipment","EquipmentComponent","EquipmentComponentPropertyRouter","EscalationGroup","Event","EventClass","EventHistory","EventRelation","EventType","Floor","GraphVersion","History","Image","ImportedModel","InterfaceAlternate","Invite","Layer","LayerSet","LayerSetJoin","Library","Location","LocationProperty","Manufacturer","Media","MediaComponent","Model","MultifactorAuthentication","NodeSet","NodeSetConnectionNodeJoin","Organization","OrganizationAuthGroupPermission","Prediction","PredictionGroup","Preference","PreferenceGroup","PrivilegeJoin","Procedure","Property","PropertyTagRouter","Quanta","RefreshToken","Relationship","SelectedModel","SessionBinding","SessionEvent","Shape","Site","Subsystem","SubsystemCapability","SubsystemSet","Surface","System","Tag","TagFamily","TypicalConstruction","UnitLookup","UnitPreference","User","UserSession","UserSessionHistory","Vertex","View","WeatherSource","Zone","ZoneGroup","ZoneSubsystem","ZoneSubsystemSet"]},"CreatedApiKeyResponse":{"description":"A newly created API key and its one-time secret.","required":["apiKey","key"],"properties":{"key":{"type":"string","description":"API key secret. This value is returned only at creation."},"apiKey":{"$ref":"#\/components\/schemas\/ApiKeyResponse"}},"type":"object"},"GraphQLResult":{"properties":{"errors":{"type":"array","nullable":true,"items":{"$ref":"#\/components\/schemas\/GraphQLError"}},"data":{"type":"boolean","nullable":true}},"type":"object"},"InviteUserToOrganizationData":{"description":"Parameters required to invite a user to an organization","required":["inviteEmail","orgID"],"properties":{"expiration":{"type":"string","description":"Timestamp at which this invitation will no longer be valid","format":"date-time","nullable":true},"inviteEmail":{"type":"string","description":"Email to send the invite to"},"role":{"$ref":"#\/components\/schemas\/QuantumRole"},"orgID":{"type":"string","description":"ID of the organization to which this invite pertains","format":"uuid"}},"type":"object"},"GenerateApiKeyResponse":{"description":"New API key generated for a user.","required":["expiration","key"],"properties":{"expiration":{"description":"Expiration of the new key.","type":"integer","format":"int64"},"key":{"description":"New API key.","type":"string"}},"type":"object"},"JWKS":{"properties":{"keys":{"items":{"$ref":"#\/components\/schemas\/JWK"},"type":"array"}},"type":"object","required":["keys"]},"TailscaleCapabilities":{"required":["devices"],"properties":{"devices":{"$ref":"#\/components\/schemas\/TailscaleCapabilitiesDevices"}},"type":"object"},"ImageUploadResponse":{"description":"Image response definition","required":["message"],"properties":{"message":{"type":"string","description":"Informative message relating to image upload. Updated image url with cache bust."},"url":{"type":"string","nullable":true}},"type":"object"},"DeviceLoginResponse":{"description":"Response to \/api\/device\/login","required":["token"],"properties":{"token":{"type":"string","description":"Signed authentication JWT"}},"type":"object"},"DeviceRegistrationRequest":{"required":["siteID"],"properties":{"followerSerialNumber":{"type":"string","nullable":true},"userJWT":{"type":"string","nullable":true},"siteID":{"type":"string","format":"uuid"}},"type":"object"},"ComfortControllerComfortAdjustmentResponse":{"description":"Comfort adjustment inputs.","required":["occupants","zoneGroupID"],"properties":{"occupants":{"description":"The adjusted occupant settings","type":"array","items":{"$ref":"#\/components\/schemas\/ComfortControllerComfortAdjustmentResponseOccupant"}},"zoneGroupID":{"description":"The ID of the zone group that comfort was adjusted for.","type":"string","format":"uuid"}},"type":"object"},"ObjectPair":{"required":["newID","oldID","type"],"properties":{"newID":{"format":"uuid","type":"string"},"type":{"$ref":"#\/components\/schemas\/QuantumObjectType"},"oldID":{"format":"uuid","type":"string"}},"type":"object"},"QuantumLensUser":{"required":["userID"],"properties":{"userID":{"type":"string","format":"uuid"},"lastName":{"type":"string","nullable":true},"firstName":{"type":"string","nullable":true}},"type":"object"},"RegisterUserData":{"description":"Data required for user registration","required":["acceptMailingList","acceptedEULA","email","firstName","lastName","password"],"properties":{"token":{"type":"string","nullable":true},"acceptMailingList":{"description":"Flag to mark if the user wants marketing emails","type":"boolean"},"email":{"description":"User's email","type":"string"},"lastName":{"description":"User's last name","type":"string"},"acceptedEULA":{"description":"Flag to mark if the user has accepted the EULA","type":"boolean"},"firstName":{"description":"User's first name","type":"string"},"password":{"description":"User's password","type":"string"},"username":{"type":"string","nullable":true}},"type":"object"},"TailscaleCapabilitiesDevicesCreate":{"required":["ephemeral","preauthorized","reusable","tags"],"properties":{"ephemeral":{"type":"boolean"},"tags":{"type":"array","items":{"type":"string"}},"preauthorized":{"type":"boolean"},"reusable":{"type":"boolean"}},"type":"object"},"Identifier":{"required":["id","type"],"properties":{"type":{"$ref":"#\/components\/schemas\/QuantumObjectType"},"id":{"type":"string"}},"type":"object"},"VersionResponse":{"required":["quantum","webserver"],"properties":{"quantum":{"$ref":"#\/components\/schemas\/QuantumVersionInfo"},"webserver":{"$ref":"#\/components\/schemas\/WebserverBuildInfo"}},"type":"object"},"UploadFileData":{"description":"Data required to upload a file binding.","required":["ID","file","fileType"],"properties":{"ID":{"description":"UUID of the quantum binding node that you want to associate this file with.","type":"string","format":"uuid"},"file":{"description":"File data to write to the server.","type":"string","format":"byte"},"fileType":{"description":"The type of file the given data represents.","type":"string"}},"type":"object"},"WebserverBuildInfo":{"required":["datetime","revision","version"],"properties":{"version":{"type":"string"},"revision":{"type":"string"},"datetime":{"type":"string"}},"type":"object"},"UserRegistrationInitiation":{"description":"Information for intiating user registration","properties":{"firstName":{"type":"string","nullable":true},"email":{"type":"string","description":"Email that is registering for a new account."},"lastName":{"type":"string","nullable":true}},"type":"object","required":["email"]},"OrgInviteResponse":{"description":"Response indicating that an organization invitation was successfully sent.","required":["inviteID","message"],"properties":{"inviteID":{"description":"ID of the invitation generated\/sent","format":"uuid","type":"string"},"message":{"description":"Message with additional information","type":"string"}},"type":"object"},"RegisterUserResponse":{"description":"Sent when a new user is successfully registered.","required":["message"],"properties":{"message":{"type":"string","description":"Additional information about the response"},"userStatus":{"$ref":"#\/components\/schemas\/QuantumUserStatus"},"newUserID":{"$ref":"#\/components\/schemas\/Identifier"},"token":{"type":"string","description":"New authentication JWT containing changed information","nullable":true},"refresh":{"type":"string","description":"New refresh JWT","nullable":true}},"type":"object"},"QuantumLensAppStatusResponse":{"properties":{"appUpdate":{"nullable":true,"type":"boolean"},"osUpdate":{"nullable":true,"type":"boolean"}},"type":"object"},"DeclineOrganizationInvite":{"description":"Parameters required to decline an organization invite","required":["inviteID"],"properties":{"inviteID":{"type":"string","format":"uuid","description":"ID of the invitation being declined."}},"type":"object"},"UpdatedUserEmail":{"description":"Information for changing a user's email","required":["newEmail","oldEmail","password"],"properties":{"oldEmail":{"type":"string","description":"Previous user email"},"password":{"type":"string","description":"user's password to confirm identity"},"newEmail":{"type":"string","description":"New user email"}},"type":"object"},"OrganizationImageData":{"description":"Data required to upload a organization image","required":["fileType","image","organizationID"],"properties":{"organizationID":{"type":"string","description":"The organization that is associated with this image request.","format":"uuid"},"image":{"type":"string","description":"File data to write to the server. Must be Base64-encoded if sending as JSON.","format":"byte"},"fileType":{"type":"string","description":"The type of file the given data represents, from a list of allowed files"}},"type":"object"},"SourceLocation":{"required":["column","line"],"properties":{"line":{"type":"integer","format":"int64"},"column":{"type":"integer","format":"int64"}},"type":"object"},"UploadImageData":{"description":"Data required to upload an image.","required":["ID","fileType","image"],"properties":{"image":{"format":"byte","type":"string","description":"File data to write to the server. Must be Base64-encoded if sending as JSON."},"ID":{"format":"uuid","type":"string","description":"UUID of the quantum image node that you want to associate this image file with."},"fileType":{"type":"string","description":"The type of file the given data represents, from a list of allowed files."}},"type":"object"},"ApiKeyResponse":{"description":"API key metadata. The secret is never included in this representation.","required":["expiration","id","role"],"properties":{"name":{"description":"Optional API key label.","nullable":true,"type":"string"},"expiration":{"description":"Expiration time.","format":"date-time","type":"string"},"role":{"description":"Role assigned to the API key. Options are `read` or `readWrite`.","type":"string"},"id":{"description":"Unique API key ID.","format":"uuid","type":"string"}},"type":"object"},"ComfortControllerComfortAdjustmentResponseOccupant":{"description":"Comfort adjustment inputs.","required":["ID","activityLevelInMETs","clothingInsulation","predictedMeanVote","targetPredictedMeanVote"],"properties":{"targetPredictedMeanVote":{"type":"number","description":"The new target occupant mean vote.","format":"double"},"clothingInsulation":{"type":"number","description":"The adjusted occupant clothing insulation.","format":"double"},"ID":{"type":"string","description":"The ID of the adjusted occupant.","format":"uuid"},"predictedMeanVote":{"type":"number","description":"The predicted occupant mean vote.","format":"double"},"activityLevelInMETs":{"type":"number","description":"The adjusted occupant activity level.","format":"double"},"temperatureDeltaC":{"type":"number","description":"The expected change in zone temperature in degrees Celsius, rounded to the nearest tenth. Positive is warmer and negative is cooler. Omitted when the solver cannot provide an estimate.","nullable":true,"format":"double"}},"type":"object"},"QuantumRole":{"type":"string","enum":["PrivilegedUser","ReadOnlyUser","StandardUser","SuperUser"]},"LinkFileData":{"description":"Data required to link a binding node to an existing binding file.","required":["sourceID","targetID"],"properties":{"targetID":{"description":"UUID of the quantum binding node to update.","type":"string","format":"uuid"},"sourceID":{"description":"UUID of a quantum binding node already connected to the desired image file.","type":"string","format":"uuid"}},"type":"object"},"AuthGroupInviteResponse":{"description":"Response indicating that an AuthGroup invitation was successfully sent.","required":["inviteID","message"],"properties":{"message":{"type":"string","description":"Message with additional information"},"inviteID":{"type":"string","description":"ID of the invitation generated\/sent","format":"uuid"}},"type":"object"},"GraphQLError":{"required":["locations","message","path"],"properties":{"locations":{"type":"array","items":{"$ref":"#\/components\/schemas\/SourceLocation"}},"path":{"type":"array","items":{"items":{"format":"int64","type":"integer"},"type":"array"}},"extensions":{"type":"object","nullable":true,"additionalProperties":{"type":"boolean"}},"message":{"type":"string"}},"type":"object"},"DeployedOnHiveResponse":{"required":["runningOnHive"],"properties":{"runningOnHive":{"type":"boolean"}},"type":"object"},"UpdateApiKeyRequest":{"description":"Mutable API key metadata. At least one field must be provided.","properties":{"role":{"nullable":true,"type":"string","description":"Updated role. Roles may only be reduced. Options are `read` or `readWrite`."},"name":{"nullable":true,"type":"string","description":"Updated label for the API key."}},"type":"object"},"RemoveApiKeyRequest":{"description":"API key to revoke","required":["key"],"properties":{"key":{"type":"string","description":"API key to revoke."}},"type":"object"},"LoginResponse":{"description":"Generic response information","properties":{"token":{"description":"Signed Authentication JWT","type":"string"},"whoAmI":{"$ref":"#\/components\/schemas\/WhoAmIResponse"},"refresh":{"description":"Signed refresh JWT","type":"string"}},"type":"object","required":["refresh","token","whoAmI"]},"BindingUploadResponse":{"description":"Binding response definition","required":["message"],"properties":{"message":{"description":"Informative message relating to binding upload. Updated binding url with cache bust.","type":"string"},"url":{"type":"string","nullable":true}},"type":"object"},"ObjectIdentifiers":{"required":["objectIdentifierMap"],"properties":{"objectIdentifierMap":{"items":{"$ref":"#\/components\/schemas\/ObjectPair"},"type":"array"}},"type":"object"},"TailscalePostTailnetKeyResponse":{"required":["capabilities","expirySeconds","id","key","keyType"],"properties":{"scopes":{"items":{"type":"string"},"type":"array","nullable":true},"userId":{"type":"string","nullable":true},"id":{"type":"string"},"invalid":{"type":"boolean","nullable":true},"expirySeconds":{"format":"int64","type":"integer"},"key":{"type":"string"},"description":{"type":"string","nullable":true},"expires":{"format":"date-time","nullable":true,"type":"string"},"keyType":{"type":"string"},"revoked":{"format":"date-time","nullable":true,"type":"string"},"capabilities":{"$ref":"#\/components\/schemas\/TailscaleCapabilities"},"tags":{"items":{"type":"string"},"type":"array","nullable":true},"created":{"format":"date-time","nullable":true,"type":"string"}},"type":"object"},"WhoAmIResponse":{"description":"Information about the authenticated user","properties":{"userID":{"format":"uuid","type":"string","description":"Unique ID for the user"},"emailVerified":{"nullable":true,"type":"boolean","description":"Flag to mark if the user's email is verified"},"firstName":{"nullable":true,"type":"string","description":"User's first name"},"lastName":{"nullable":true,"type":"string","description":"User's last name"},"eulaAccepted":{"nullable":true,"type":"boolean","description":"Flag to mark if the user has acept the terms of the EULA"}},"type":"object","required":["userID"]},"QuantumLensResponse":{"required":["status","user"],"properties":{"user":{"$ref":"#\/components\/schemas\/QuantumLensUser"},"status":{"$ref":"#\/components\/schemas\/QuantumLensAppStatusResponse"}},"type":"object"},"ComfortControllerComfortAdjustmentRequest":{"description":"Comfort adjustment inputs.","required":["adjustmentLevel","zoneGroupID"],"properties":{"zoneGroupID":{"description":"The ID of the zone group to adjust comfort for.","format":"uuid","type":"string"},"adjustmentLevel":{"description":"An integer between -2 and 2 that indicates how the comfort should be adjusted. Values less than zero indicate that the space should become cooler, while values above zero indicate that the space should become hotter.","format":"int64","type":"integer"}},"type":"object"},"QuantumVersionInfo":{"required":["version"],"properties":{"version":{"type":"string"}},"type":"object"},"JWK":{"properties":{"kty":{"type":"string"}},"type":"object","required":["kty"]},"LinkImageData":{"description":"Data required to link an image node to an existing image file.","required":["sourceID","targetID"],"properties":{"targetID":{"format":"uuid","type":"string","description":"UUID of the quantum image node to update."},"sourceID":{"format":"uuid","type":"string","description":"UUID of a quantum image node already connected to the desired image file."}},"type":"object"},"TailscaleCapabilitiesDevices":{"required":["create"],"properties":{"create":{"$ref":"#\/components\/schemas\/TailscaleCapabilitiesDevicesCreate"}},"type":"object"},"DeleteOrganizationData":{"description":"Parameters require to delete an organization","required":["orgID"],"properties":{"orgID":{"type":"string","description":"ID of the organization being deleted","format":"uuid"}},"type":"object"},"GenericMessageResponse":{"description":"Generic response information","properties":{"message":{"type":"string","description":"Informative message relating to the specific response"}},"type":"object","required":["message"]},"ImageData":{"description":"Data required to upload image without using an image model.","required":["fileType","image"],"properties":{"image":{"description":"File data to write to the server. Must be Base64-encoded if sending as JSON.","type":"string","format":"byte"},"fileType":{"description":"The type of file the given data represents, from a list of allowed files.","type":"string"}},"type":"object"},"ChangePasswordData":{"description":"Information required to change a user's password from the reset password flow","required":["newPassword"],"properties":{"confirmNewPassword":{"nullable":true,"type":"string"},"newPassword":{"type":"string","description":"New password for the user."}},"type":"object"},"GraphQLRequest":{"required":["query"],"properties":{"operationName":{"type":"string","nullable":true},"variables":{"type":"object","additionalProperties":{"type":"boolean"},"nullable":true},"query":{"type":"string"}},"type":"object"},"AcceptOrganizationInvite":{"description":"Parameters required to accept an organization invite","required":["inviteID"],"properties":{"inviteID":{"type":"string","format":"uuid","description":"ID of the invitation being accepted."}},"type":"object"},"InviteUserToAuthGroupData":{"description":"Parameters required to invite a user to an organization","required":["authGroupID","inviteEmail"],"properties":{"authGroupID":{"description":"ID of the AuthGroup to which this invite pertains","type":"string","format":"uuid"},"inviteEmail":{"description":"Email to send the invite to","type":"string"},"expiration":{"description":"Timestamp at which this invitation will no longer be valid","type":"string","format":"date-time","nullable":true},"role":{"$ref":"#\/components\/schemas\/QuantumRole"}},"type":"object"},"DeviceRegistrationResponse":{"required":["authGroupID","deviceSerialNumber"],"properties":{"authGroupID":{"type":"string","format":"uuid"},"deviceSerialNumber":{"type":"string"}},"type":"object"},"AuthGroupRemovalResponse":{"description":"Response indicating that a User has been removed from an AuthGroup.","required":["authGroupID","message","userID"],"properties":{"authGroupID":{"format":"uuid","description":"ID of the Authgroup the user has been removed from.","type":"string"},"message":{"description":"Message with additional information","type":"string"},"userID":{"format":"uuid","description":"ID of the User who has been removed","type":"string"}},"type":"object"},"QuantumUserStatus":{"type":"string","enum":["Active","Blocked","Deleted","Locked","Pending","Reset"]},"RequestResetPasswordData":{"description":"Information required to request a password reset.","required":["usernameOrEmail"],"properties":{"usernameOrEmail":{"type":"string","description":"Email of the user requesting a reset."}},"type":"object"}},"examples":{"ImageData":{"value":{"fileType":"svg","image":"PHN2ZyBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQwIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9ImJsdWUiIC8+PC9zdmc+"}},"LinkImageData":{"value":{"targetID":"01C92C88-919F-43E6-B320-26CBC3BA57EC","sourceID":"927D57FA-5238-408B-BD6F-0B732DB6E634"}},"UserRegistrationInitiation":{"value":{"email":"darthvader@galactic-empire.com"}},"AcceptOrganizationInvite":{"value":{"inviteID":"3442138B-9B49-4731-A08C-F7F49E98B600"}},"LinkFileData":{"value":{"sourceID":"FD5BA2FD-1D90-44D3-908C-EB7A7B9CD3A3","targetID":"C76140C9-AAAF-4990-AFA6-5B0A81F24698"}},"UpdatedUserEmail":{"value":{"password":"unlimitedP0wuh!!!","newEmail":"emperorpalps@gallactic-empire.com","oldEmail":"sheevpalpatine@old-republic.net"}},"UploadFileData":{"value":{"file":"PHN2ZyBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQwIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9ImJsdWUiIC8+PC9zdmc+","fileType":"svg","ID":"A2B4DC86-8AB9-4DDC-B51F-8B7329B8ABD9"}},"AuthGroupRemovalResponse":{"value":{"authGroupID":"4BAD83E7-414A-467F-B40A-7B13822352B4","userID":"8EA487C3-0AB4-4277-94F7-F20FE3070C9B","message":"User has been successfully removed!"}},"ImageUploadResponse":{"value":{"url":"http:\/\/www.passivelogic.com\/image\/2EB95F54-E924-4035-9868-7BFB470BE123","message":"Image was succefully updated."}},"DeclineOrganizationInvite":{"value":{"inviteID":"A12E36DC-C9AE-4EA6-AF1B-8EBEA9E70942"}},"CreatedApiKeyResponse":{"value":{"key":"564d9054fb2cf06e3592c8c4fdc1f613822b0de6358d8580a78ae0b204be3f95","apiKey":{"id":"5934BFF8-FAD8-4CBE-9BD7-C9678E85DFA8","role":"read","name":"CI deployment","expiration":"2026-12-27T15:50:17Z"}}},"ApiKeyResponse":{"value":{"id":"5934BFF8-FAD8-4CBE-9BD7-C9678E85DFA8","name":"CI deployment","expiration":"2026-12-27T15:50:17Z","role":"read"}},"InviteUserToAuthGroupData":{"value":{"role":"StandardUser","expiration":"2027-11-26T15:50:17Z","authGroupID":"5BA19495-365A-4044-BB64-8D58641FF7DE","inviteEmail":"mithrawnuruodo@galactic-empire.com"}},"OrgInviteResponse":{"value":{"inviteID":"117C31BB-7F15-45F1-998F-A6EA37A91524","message":"Invitation sent."}},"String":{"value":"some string"},"ChangePasswordData":{"value":{"newPassword":"SandSuxDest0ryAllSand"}},"DeviceLoginResponse":{"value":{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzM4NCIsImtpZCI6InBsLUUwOTk2NzlGLTQyNDQtNDA4Ni05NTZBLTg4OUM4QkVCQzg2QSJ9.eyJpc3N1ZXIiOiJQYXNzaXZlTG9naWMiLCJoaXZlSUQiOiJEMjU3M0M2Qy0wQjVBLTRCMzItQjM1Ni00OEEyOTlFRDE0OTMiLCJleHBpcmF0aW9uIjoxNzE0NDA2OTA3LjcyODE1Mywic3ViamVjdCI6IkhpdmUgQXV0aGVudGljYXRpb24iLCJoaXZlU2VyaWFsTnVtYmVyIjoiUTBSWFQyUE1HWCJ9.11Awfpm7Uo1LWBtZTCNn1pxUuliE3lcMF4bIqbJzX87u5zJRFRKqfNWdULlU7mmEq_Fes7CzEvSFmn7wlNLlZxY-T8NKhFq35raskqDW-ZdpXUKRk8aHyWfrCVeFcCZU"}},"DeviceRegistrationResponse":{"value":{"authGroupID":"E1C3B307-D0B6-49EF-AA79-5692CBD031C3","deviceSerialNumber":"ABCDEF12346"}},"BindingUploadResponse":{"value":{"url":"https:\/\/passivelogic.com\/binding\/D1DA151A-BC35-447B-BAF5-88B8BD8E271F","message":"Binding object was successfully updated."}},"UpdateApiKeyRequest":{"value":{"name":"Updated CI deployment","role":"read"}},"RemoveApiKeyRequest":{"value":{"key":"564d9054fb2cf06e3592c8c4fdc1f613822b0de6358d8580a78ae0b204be3f95"}},"GenericMessageResponse":{"value":{"message":"We will watch your career with great interest."}},"ArrayApiKeyResponse":{"value":[{"expiration":"2026-12-27T15:50:17Z","name":"CI deployment","role":"read","id":"5934BFF8-FAD8-4CBE-9BD7-C9678E85DFA8"}]},"UploadImageData":{"value":{"ID":"1D20C965-AF12-4370-941D-3EB30AD60D24","image":"PHN2ZyBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQwIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9ImJsdWUiIC8+PC9zdmc+","fileType":"svg"}},"GenerateApiKeyResponse":{"value":{"key":"564d9054fb2cf06e3592c8c4fdc1f613822b0de6358d8580a78ae0b204be3f95","expiration":849023417371980}},"LoginResponse":{"value":{"whoAmI":{"firstName":"Anakin","eulaAccepted":true,"emailVerified":true,"lastName":"Skywalker","userID":"99759493-9EA7-419D-96FA-051ABB01FB96"},"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJQYXNzaXZlTG9naWMiLCJzdWIiOiJBUEkiLCJleHAiOjE1MTYyMzkwMjIsIklEIjoiMjAyZTI0MTEtNjQ5OS00YWJlLTk5MmYtMmZmODU1MWY5NmU5IiwibmFtZSI6ImRhcnRodmFkZXIiLCJzdGF0dXMiOiJBY3RpdmUifQ.KiI6-jHPAMsDHvyA7U-BaRZ8mZnByF9a1887lVb-1lY","refresh":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJQYXNzaXZlTG9naWMiLCJzdWIiOiJBUEkiLCJleHAiOjE1MTYyMzkwMjIsIklEIjoiMjAyZTI0MTEtNjQ5OS00YWJlLTk5MmYtMmZmODU1MWY5NmU5IiwidXNlcklEIjoiMzMwYTFmMjktMTlkMC00Y2M5LWI3MjQtOWJmNDQxNWY4ODY1In0.hyyBxcHBXqYzwZehxqW7aCwfQTlngtCc7gRW31ijK50"}},"CreateApiKeyRequest":{"value":{"expiration":"2026-12-27T15:50:17Z","role":"read","name":"CI deployment"}},"WhoAmIResponse":{"value":{"eulaAccepted":true,"firstName":"Anakin","emailVerified":true,"lastName":"Skywalker","userID":"6F64CF53-9FB6-48DA-AA4F-85B2DDCC57DF"}},"DeleteOrganizationData":{"value":{"orgID":"B1C77B1D-CE86-40C2-B1B5-AD05B19E9784"}},"RegisterUserData":{"value":{"acceptedEULA":true,"password":"Ih8obi-wan!higrndSUXX","token":"<JWT Token from registration email>","acceptMailingList":false,"email":"darthvader@galactic-empire.com","firstName":"Anakin","username":"1FEDC04B-1AD7-455A-8C24-05016378BFB7","lastName":"Skywalker"}},"OrganizationImageData":{"value":{"fileType":"svg","organizationID":"3EB31F39-0CB7-43D3-9A88-F22828D66F49","image":"PHN2ZyBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjQwIiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9ImJsdWUiIC8+PC9zdmc+"}},"RequestResetPasswordData":{"value":{"usernameOrEmail":"darthvader@galactic-empire.com"}},"InviteUserToOrganizationData":{"value":{"inviteEmail":"mithrawnuruodo@galactic-empire.com","role":"StandardUser","orgID":"02F92856-238B-49E7-88C3-A0DC51646FB4","expiration":"2027-11-26T15:50:17Z"}},"RegisterUserResponse":{"value":{"userStatus":"Active","refresh":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJQYXNzaXZlTG9naWMiLCJzdWIiOiJBUEkiLCJleHAiOjE1MTYyMzkwMjIsIklEIjoiMjAyZTI0MTEtNjQ5OS00YWJlLTk5MmYtMmZmODU1MWY5NmU5IiwidXNlcklEIjoiMzMwYTFmMjktMTlkMC00Y2M5LWI3MjQtOWJmNDQxNWY4ODY1In0.hyyBxcHBXqYzwZehxqW7aCwfQTlngtCc7gRW31ijK50","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJQYXNzaXZlTG9naWMiLCJzdWIiOiJBUEkiLCJleHAiOjE1MTYyMzkwMjIsIklEIjoiMjAyZTI0MTEtNjQ5OS00YWJlLTk5MmYtMmZmODU1MWY5NmU5IiwibmFtZSI6ImRhcnRodmFkZXIiLCJzdGF0dXMiOiJBY3RpdmUifQ.KiI6-jHPAMsDHvyA7U-BaRZ8mZnByF9a1887lVb-1lY","message":"User registered successfully.","newUserID":{"id":"52E1CB92-64B7-47AB-911B-40D2C49F51E2","type":"User"}}},"AuthGroupInviteResponse":{"value":{"inviteID":"7A98E559-031B-496F-B00F-5D22848C79B9","message":"Invitation sent."}}},"securitySchemes":{"DEPRECATED - API Key":{"in":"header","description":"DEPRECATED - A user's API key, provided as an `Authorization` scheme","type":"apiKey","name":"Authorization: PL-API-KEY"},"Authentication Token":{"in":"header","description":"A user's authentication token acquired from the login process","type":"apiKey","name":"X-PL-AUTH"},"API Key":{"in":"header","description":"A user's API key","type":"apiKey","name":"PL-API-KEY"},"Basic Auth":{"scheme":"basic","description":"Basic authentication","type":"http"}}},"tags":[{"description":"Routes related to user auth","name":"Authentication"},{"description":"Routes related to AuthGroup management.","name":"Auth Groups"},{"description":"Routes related to Binding management.","name":"Bindings"},{"description":"Routes related to comfort controls","name":"Comfort"},{"description":"Routes related to exporting objects and history","name":"Export"},{"description":"Routes related to the GraphQL API","name":"GraphQL"},{"description":"Routes related to Image management","name":"Images"},{"description":"Routes related to quantum sync","name":"Quantum Sync"},{"description":"Routes related to site objects","name":"Site"},{"description":"Routes related to server metadata\/utility","name":"Utility"},{"description":"Routes related to user account management.","name":"Account"},{"description":"Manage API keys for the authenticated user","name":"API Keys"},{"description":"Routes related to organization management","name":"Organization"},{"description":"Field sync between a device and the cloud, across Quantum schema versions","name":"Delta Sync"},{"description":"Routes related to PassiveLogic device communications. These are only accessible to official PassiveLogic devices, not users.","name":"Device Communications"}],"info":{"title":"PassiveLogic HTTP API","description":"Welcome to the PassiveLogic HTTP API documentation!\n\nThis API is currently considered **beta**. While we prioritize stability, breaking changes may be occasionally introduced. Breakages will be deprecated prior to removal, and deprecated endpoints will include the `X-PL-DEPRECATED` header in the response. It's recommended that any integrations warn the developer when this header is present.\n\n**Important**: Making changes with the API can cause problems with user applications that might not be reversible, or might be fixable only with PassiveLogic support.\n\n## Getting Started\n\nIf you haven't already, register your user at [https:\/\/passivelogic.com\/app\/login\/](https:\/\/passivelogic.com\/app\/login\/) by clicking \"Sign Up\" and following the instructions.\n\n### Using an Authorization Token\n\nWhen a user logs in through an application, they are provided a short-lived authentication token and a long-lived refresh token. The authentication token can be used to authenticate API requests by including it in the `X-PL-AUTH` header. Upon expiration of the authentication token, the refresh token may be used to create a new authentication token.\n\n### Using an API Key\n\nUsers can manage API keys using the `\/api\/auth\/api-keys` REST resource. Creation returns the secret once; subsequent reads expose metadata only. API keys authenticate requests through the `PL-API-KEY` header. The singular API-key lifecycle routes and GraphQL API-key reads are deprecated.\n\n## Device Tunnel\n\nHTTP requests can be tunneled directly to devices by appending their path onto `\/api\/tunnel\/<serialNumber>\/`. Example: `https:\/\/passivelogic.com\/api\/tunnel\/SN123\/api\/graphql`. Cloud authentication and authorization is respected by the device. Request and response formats match the device server's formats.","version":"0.0.0"}}