{"openapi":"3.1.0","info":{"title":"ThingsBoard REST API","description":" ThingsBoard IoT platform REST API documentation.","contact":{"name":"ThingsBoard, Inc.","url":"https://thingsboard.io","email":"info@thingsboard.io"},"license":{"name":"Apache License Version 2.0","url":"https://github.com/thingsboard/thingsboard/blob/master/LICENSE"},"version":"4.4.1.0.1PAAS"},"servers":[{"url":"https://thingsboard.cloud","description":"Generated server url"}],"paths":{"/api/auth/login":{"post":{"tags":["login-endpoint"],"summary":"Login method to get user JWT token data","description":"Login method used to authenticate user and get JWT token data.\n\nValue of the response **token** field can be used as **X-Authorization** header value:\n\n`X-Authorization: Bearer $JWT_TOKEN_VALUE`.","operationId":"login","requestBody":{"description":"Login request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingsboardErrorResponse"},"examples":{"bad-credentials":{"summary":"Bad credentials","value":{"message":"Invalid username or password","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"token-expired":{"summary":"JWT token expired","value":{"message":"Token has expired","errorCode":11,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"account-disabled":{"summary":"Disabled account","value":{"message":"User account is not active","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"account-locked":{"summary":"Locked account","value":{"message":"User account is locked due to security policy","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"authentication-failed":{"summary":"General authentication error","value":{"message":"Authentication failed","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}}}}}},"401 ":{"description":"Unauthorized (**Expired credentials**)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingsboardCredentialsExpiredResponse"},"examples":{"credentials-expired":{"summary":"Expired credentials","value":{"status":401,"message":"User password expired!","errorCode":15,"timestamp":1609459200000,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"resetToken":"udgDQOpS1Q4ZFEL8qHF9s8cSKQ7d1h"}}}}}}}}},"/api/auth/token":{"post":{"tags":["login-endpoint"],"summary":"Refresh user JWT token data","description":"Method to refresh JWT token. Provide a valid refresh token to get a new JWT token.\n\nThe response contains a new token that can be used for authorization.\n\n`X-Authorization: Bearer $JWT_TOKEN_VALUE`","operationId":"refreshToken","requestBody":{"description":"Refresh token request","content":{"application/json":{"schema":{"type":"object","properties":{"refreshToken":{"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingsboardErrorResponse"},"examples":{"bad-credentials":{"summary":"Bad credentials","value":{"message":"Invalid username or password","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"token-expired":{"summary":"JWT token expired","value":{"message":"Token has expired","errorCode":11,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"account-disabled":{"summary":"Disabled account","value":{"message":"User account is not active","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"account-locked":{"summary":"Locked account","value":{"message":"User account is locked due to security policy","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}},"authentication-failed":{"summary":"General authentication error","value":{"message":"Authentication failed","errorCode":10,"status":401,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"timestamp":1609459200000}}}}}},"401 ":{"description":"Unauthorized (**Expired credentials**)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThingsboardCredentialsExpiredResponse"},"examples":{"credentials-expired":{"summary":"Expired credentials","value":{"status":401,"message":"User password expired!","errorCode":15,"timestamp":1609459200000,"subscriptionErrorCode":null,"subscriptionEntry":null,"subscriptionValue":null,"resetToken":"udgDQOpS1Q4ZFEL8qHF9s8cSKQ7d1h"}}}}}}}}},"/api/v2/report/{reportId}/public/{isPublic}":{"put":{"tags":["report-controller"],"summary":"Update Report public status (updateReportPublicStatus)","description":"Updates the public status of the report. When public, the report can be downloaded without authentication via the public link. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"updateReportPublicStatus","parameters":[{"name":"reportId","in":"path","description":"A string value representing the report id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"isPublic","in":"path","description":"Whether the report should be publicly downloadable without authentication","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}}}}},"/api/user/settings/{type}":{"get":{"tags":["user-controller"],"summary":"Get user settings (getUserSettings)","description":"Fetch the User settings based on authorized user. ","operationId":"getUserSettings","parameters":[{"name":"type","in":"path","description":"Settings type, case insensitive, one of: \"general\", \"quick_links\", \"doc_links\" or \"dashboards\".","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"put":{"tags":["user-controller"],"summary":"Update user settings (putUserSettings)","description":"Update user settings for authorized user. Only specified json elements will be updated.Example: you have such settings: {A:5, B:{C:10, D:20}}. Updating it with {B:{C:10, D:30}} will result in{A:5, B:{C:10, D:30}}. The same could be achieved by putting {B.D:30}","operationId":"putUserSettings","parameters":[{"name":"type","in":"path","description":"Settings type, case insensitive, one of: \"general\", \"quick_links\", \"doc_links\" or \"dashboards\".","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/user/settings/general":{"get":{"tags":["user-controller"],"summary":"Get user settings (getGeneralUserSettings)","description":"Fetch the User settings based on authorized user. ","operationId":"getGeneralUserSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"put":{"tags":["user-controller"],"summary":"Update user settings (putGeneralUserSettings)","description":"Update user settings for authorized user. Only specified json elements will be updated.Example: you have such settings: {A:5, B:{C:10, D:20}}. Updating it with {B:{C:10, D:30}} will result in{A:5, B:{C:10, D:30}}. The same could be achieved by putting {B.D:30}","operationId":"putGeneralUserSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/secret/{id}/value":{"put":{"tags":["secret-controller"],"summary":"Update Secret value","description":"Updates the value of the existing Secret by secretId. Referencing a non-existing Secret Id will cause a 'Not Found' error.","operationId":"updateSecretValue","parameters":[{"name":"id","in":"path","description":"Unique identifier of the Secret to update","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string","description":"New value for the Secret"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretInfo"}}}}}}},"/api/secret/{id}/description":{"put":{"tags":["secret-controller"],"summary":"Update Secret Description","description":"Updates the description of the existing Secret by secretId. Only the description can be updated. Referencing a non-existing Secret Id will cause a 'Not Found' error.","operationId":"updateSecretDescription","parameters":[{"name":"id","in":"path","description":"Unique identifier of the Secret to update","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string","description":"New description for the Secret"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretInfo"}}}}}}},"/api/schedulerEvent/{schedulerEventId}/enabled/{enabledValue}":{"put":{"tags":["scheduler-event-controller"],"summary":"Enable or disable Scheduler Event (enableSchedulerEvent)","description":"Updates scheduler event with enabled = true/false. Scheduler Event extends Scheduler Event Info object and adds 'configuration' - a JSON structure of scheduler event configuration. See the 'Model' tab of the Response Class for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"enableSchedulerEvent","parameters":[{"name":"schedulerEventId","in":"path","description":"A string value representing the scheduler id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"enabledValue","in":"path","description":"Enabled or disabled scheduler","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEvent"}}}}}}},"/api/resource/{id}/info":{"put":{"tags":["tb-resource-controller"],"operationId":"updateResourceInfo","parameters":[{"name":"id","in":"path","description":"Unique identifier of the Resource to update","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/resource/{id}/data":{"put":{"tags":["tb-resource-controller"],"operationId":"updateResourceData","parameters":[{"name":"id","in":"path","description":"Unique identifier of the Resource to update","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"Resource file."}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/notifications/read":{"put":{"tags":["notification-controller"],"summary":"Mark all notifications as read (markAllNotificationsAsRead)","description":"Marks all unread notifications as read.\n\nAvailable for any authorized user. ","operationId":"markAllNotificationsAsRead","parameters":[{"name":"deliveryMethod","in":"query","description":"Delivery method","required":false,"schema":{"type":"string","enum":["WEB","MOBILE_APP"]}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/{id}/read":{"put":{"tags":["notification-controller"],"summary":"Mark notification as read (markNotificationAsRead)","description":"Marks notification as read by its id.\n\nAvailable for any authorized user. ","operationId":"markNotificationAsRead","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/mobile/bundle/{id}/oauth2Clients":{"put":{"tags":["mobile-app-bundle-controller"],"summary":"Update oauth2 clients (updateMobileAppBundleOauth2Clients)","description":"Update oauth2 clients of the specified mobile app bundle.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"updateMobileAppBundleOauth2Clients","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/images/{type}/{key}":{"get":{"tags":["image-controller"],"operationId":"downloadImage","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}},"put":{"tags":["image-controller"],"operationId":"updateImage","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}},"delete":{"tags":["image-controller"],"operationId":"deleteImage","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbImageDeleteResult"}}}}}}},"/api/images/{type}/{key}/public/{isPublic}":{"put":{"tags":["image-controller"],"operationId":"updateImagePublicStatus","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}},{"name":"isPublic","in":"path","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/images/{type}/{key}/info":{"get":{"tags":["image-controller"],"operationId":"getImageInfo","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}},"put":{"tags":["image-controller"],"operationId":"updateImageInfo","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/image/import":{"put":{"tags":["image-controller"],"operationId":"importImage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceExportData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/domain/{id}/oauth2Clients":{"put":{"tags":["domain-controller"],"summary":"Update oauth2 clients (updateDomainOauth2Clients)","description":"Update oauth2 clients for the specified domain. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"updateDomainOauth2Clients","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string","format":"uuid"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/customMenu/{id}/assign/{assigneeType}":{"put":{"tags":["custom-menu-controller"],"summary":"Update custom menu assignee list (updateCustomMenuAssigneeList)","description":"The api designed to update the list of assignees or assignee type based on the provided Custom Menu Id. To change assignee type, put new assignee type in path parameter.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.","operationId":"updateCustomMenuAssigneeList","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"assigneeType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/CMAssigneeType"}},{"name":"force","in":"query","description":"Use force if you want to override default menu","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"responses":{"200":{"description":"OK"}}}},"/api/customMenu/{customMenuId}/name":{"put":{"tags":["custom-menu-controller"],"summary":"Update Custom Menu name based on the provided Custom Menu Id (updateCustomMenuName)","description":"\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.","operationId":"updateCustomMenuName","parameters":[{"name":"customMenuId","in":"path","description":"A string value representing the custom menu id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string","description":"New name of the custom menu"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/customMenu/{customMenuId}/config":{"get":{"tags":["custom-menu-controller"],"summary":"Get Custom Menu configuration by id (getCustomMenuConfig)","description":"Fetch the Custom Menu configuration based on the provided Custom Menu Id. \n\nSecurity check is performed to verify that the user has 'READ' permission for the custom menu with specified id.","operationId":"getCustomMenuConfig","parameters":[{"name":"customMenuId","in":"path","description":"A string value representing the custom menu id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenuConfig"}}}}}},"put":{"tags":["custom-menu-controller"],"summary":"Update Custom Menu configuration based on the provided Custom Menu Id (updateCustomMenuConfig)","description":"\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.","operationId":"updateCustomMenuConfig","parameters":[{"name":"customMenuId","in":"path","description":"A string value representing the custom menu id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenuConfig"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenu"}}}}}}},"/api/apiKey/{id}/enabled/{enabledValue}":{"put":{"tags":["api-key-controller"],"summary":"Enable or disable API key (enableApiKey)","description":"Updates api key with enabled = true/false. \n\nAvailable for any authorized user. ","operationId":"enableApiKey","parameters":[{"name":"id","in":"path","description":"Unique identifier of the API key to enable/disable","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"enabledValue","in":"path","description":"Enabled or disabled api key","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInfo"}}}}}}},"/api/apiKey/{id}/description":{"put":{"tags":["api-key-controller"],"summary":"Update API key Description","description":"Updates the description of the existing API key by apiKeyId. Only the description can be updated. Referencing a non-existing ApiKey Id will cause a 'Not Found' error.\n\nAvailable for any authorized user. ","operationId":"updateApiKeyDescription","parameters":[{"name":"id","in":"path","description":"A string value representing the api key id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string","description":"New description for the API key"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInfo"}}}}}}},"/api/ai/solution/{solutionId}/{dataKey}":{"put":{"tags":["ai-solution-controller"],"operationId":"updateData","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"dataKey","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/agent/app":{"put":{"tags":["agent-application-controller"],"summary":"Update Agent Application (saveAgentApplication)","description":"Updates the Agent Application.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"updateAgentApplication","requestBody":{"description":"A JSON value representing the agent application.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/api/2fa/account/config":{"put":{"tags":["two-factor-auth-config-controller"],"summary":"Update 2FA account config (updateTwoFaAccountConfig)","description":"Update config for a given provider type. \nUpdate request example:\n```\n{\n  \"useByDefault\": true\n}\n```\nReturns whole account's 2FA settings object.\n\n\nAvailable for any authorized user. ","operationId":"updateTwoFaAccountConfig","parameters":[{"name":"providerType","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TwoFaProviderType"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoFaAccountConfigUpdateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTwoFaSettings"}}}}}},"post":{"tags":["two-factor-auth-config-controller"],"summary":"Verify and save 2FA account config (verifyAndSaveTwoFaAccountConfig)","description":"Checks the verification code for submitted config, and if it is correct, saves the provided account config. \n\nReturns whole account's 2FA settings object.\nWill throw an error (Bad Request) if the provider is not configured for usage. \n\nAvailable for any authorized user. ","operationId":"verifyAndSaveTwoFaAccountConfig","parameters":[{"name":"verificationCode","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BackupCodeTwoFaAccountConfig"},{"$ref":"#/components/schemas/EmailTwoFaAccountConfig"},{"$ref":"#/components/schemas/SmsTwoFaAccountConfig"},{"$ref":"#/components/schemas/TotpTwoFaAccountConfig"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTwoFaSettings"}}}}}},"delete":{"tags":["two-factor-auth-config-controller"],"summary":"Delete 2FA account config (deleteTwoFaAccountConfig)","description":"Delete 2FA config for a given 2FA provider type. \nReturns whole account's 2FA settings object.\n\n\nAvailable for any authorized user. ","operationId":"deleteTwoFaAccountConfig","parameters":[{"name":"providerType","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TwoFaProviderType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTwoFaSettings"}}}}}}},"/api/widgetsBundle":{"post":{"tags":["widgets-bundle-controller"],"summary":"Create Or Update Widget Bundle (saveWidgetsBundle)","description":"Create or update the Widget Bundle. Widget Bundle represents a group(bundle) of widgets. Widgets are grouped into bundle by type or use case.  When creating the bundle, platform generates Widget Bundle Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Widget Bundle Id will be present in the response. Specify existing Widget Bundle id to update the Widget Bundle. Referencing non-existing Widget Bundle Id will cause 'Not Found' error.\n\nWidget Bundle alias is unique in the scope of tenant. Special Tenant Id '13814000-1dd2-11b2-8080-808080808080' is automatically used if the create bundle request is sent by user with 'SYS_ADMIN' authority.Remove 'id', 'tenantId' from the request body example (below) to create new Widgets Bundle entity.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveWidgetsBundle","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetsBundle"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetsBundle"}}}}}}},"/api/widgetsBundle/{widgetsBundleId}/widgetTypes":{"get":{"tags":["widget-type-controller"],"summary":"Get all Widget types for specified Bundle (getBundleWidgetTypes)","description":"Returns an array of Widget Type objects that belong to specified Widget Bundle.Widget Type represents the template for widget creation. Widget Type and Widget are similar to class and object in OOP theory. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getBundleWidgetTypes","parameters":[{"name":"widgetsBundleId","in":"path","description":"Widget Bundle Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetType"}}}}}}},"post":{"tags":["widgets-bundle-controller"],"summary":"Update widgets bundle widgets types list (updateWidgetsBundleWidgetTypes)","description":"Updates widgets bundle widgets list.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"updateWidgetsBundleWidgetTypes","parameters":[{"name":"widgetsBundleId","in":"path","description":"A string value representing the widget bundle id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"Ordered list of widget type Ids to be included by widgets bundle","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/widgetsBundle/{widgetsBundleId}/widgetTypeFqns":{"post":{"tags":["widgets-bundle-controller"],"summary":"Update widgets bundle widgets list from widget type FQNs list (updateWidgetsBundleWidgetFqns)","description":"Updates widgets bundle widgets list from widget type FQNs list.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"updateWidgetsBundleWidgetFqns","parameters":[{"name":"widgetsBundleId","in":"path","description":"A string value representing the widget bundle id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"Ordered list of widget type FQNs to be included by widgets bundle","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/widgetType":{"get":{"tags":["widget-type-controller"],"summary":"Get Widget Type (getWidgetType)","description":"Get the Widget Type by FQN. Widget Type represents the template for widget creation. Widget Type and Widget are similar to class and object in OOP theory.\n\nAvailable for any authorized user. ","operationId":"getWidgetType","parameters":[{"name":"fqn","in":"query","description":"Widget Type fqn","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetType"}}}}}},"post":{"tags":["widget-type-controller"],"summary":"Create Or Update Widget Type (saveWidgetType)","description":"Create or update the Widget Type. Widget Type represents the template for widget creation. Widget Type and Widget are similar to class and object in OOP theory. When creating the Widget Type, platform generates Widget Type Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Widget Type Id will be present in the response. Specify existing Widget Type id to update the Widget Type. Referencing non-existing Widget Type Id will cause 'Not Found' error.\n\nWidget Type fqn is unique in the scope of System or Tenant. Special Tenant Id '13814000-1dd2-11b2-8080-808080808080' is automatically used if the create request is sent by user with 'SYS_ADMIN' authority.Remove 'id', 'tenantId' rom the request body example (below) to create new Widget Type entity.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveWidgetType","parameters":[{"name":"updateExistingByFqn","in":"query","description":"Optional boolean parameter indicating whether to update existing widget type by FQN if present instead of creating new one","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetTypeDetails"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetTypeDetails"}}}}}}},"/api/whiteLabel/whiteLabelParams":{"get":{"tags":["white-labeling-controller"],"summary":"Get White Labeling parameters","description":"Returns white-labeling parameters for the current user.","operationId":"getWhiteLabelParams","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhiteLabelingParams"}}}}}},"post":{"tags":["white-labeling-controller"],"summary":"Create Or Update White Labeling configuration (saveWhiteLabelParams)","description":"Creates or Updates the White Labeling configuration.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"saveWhiteLabelParams","parameters":[{"name":"customerId","in":"query","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhiteLabelingParams"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhiteLabelingParams"}}}}}}},"/api/whiteLabel/previewWhiteLabelParams":{"post":{"tags":["white-labeling-controller"],"summary":"Preview Login White Labeling configuration (saveWhiteLabelParams)","description":"Merge the White Labeling configuration with the parent configuration and return the result.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"previewWhiteLabelParams","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhiteLabelingParams"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhiteLabelingParams"}}}}}}},"/api/whiteLabel/mailTemplates":{"get":{"tags":["white-labeling-controller"],"summary":"Get the Mail templates settings (getMailTemplates)","description":"Fetch Mail template settings. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getMailTemplates","parameters":[{"name":"systemByDefault","in":"query","description":"Use system settings if settings are not defined on tenant level.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"post":{"tags":["white-labeling-controller"],"summary":"Save the Mail templates settings (saveMailTemplates)","description":"Creates or Updates the Mail templates settings.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"saveMailTemplates","requestBody":{"description":"A JSON value representing the Administration Settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/whiteLabel/loginWhiteLabelParams":{"post":{"tags":["white-labeling-controller"],"summary":"Create Or Update Login White Labeling configuration (saveWhiteLabelParams)","description":"Creates or Updates the White Labeling configuration.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"saveLoginWhiteLabelParams","parameters":[{"name":"customerId","in":"query","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginWhiteLabelingParams"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginWhiteLabelingParams"}}}}}}},"/api/v2/report":{"post":{"tags":["report-controller"],"operationId":"createReport","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"info":{"type":"string"}},"required":["file","info"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}}}}},"/api/v2/report/test":{"post":{"tags":["report-controller"],"summary":"Download test report (testReportAndDownload)","description":"Generate and download test report.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"testReportAndDownload","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/v2/report/request":{"post":{"tags":["report-controller"],"operationId":"requestReport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}}}}},"/api/v2/relation":{"post":{"tags":["entity-relation-controller"],"summary":"Create Relation (saveRelation)","description":"Creates or updates a relation between two entities in the platform. Relations unique key is a combination of from/to entity id and relation type group and relation type. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.","operationId":"saveRelation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRelation"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRelation"}}}}}},"delete":{"tags":["entity-relation-controller"],"summary":"Delete Relation (deleteRelation)","description":"Deletes a relation between two entities in the platform. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.","operationId":"deleteRelation","parameters":[{"name":"fromId","in":"query","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"fromType","in":"query","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"relationType","in":"query","description":"A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value.","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}},{"name":"toId","in":"query","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"toType","in":"query","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRelation"}}}}}}},"/api/v2/license/checkInstance":{"post":{"tags":["edge-controller"],"summary":"Check edge license (checkInstance)","description":"Checks license request (V1/V2) from edge service by forwarding request to license portal.","operationId":"checkInstanceV2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/v2/license/activateInstance":{"post":{"tags":["edge-controller"],"summary":"Activate edge instance (activateInstance)","description":"Activates edge license (V1/V2) on license portal.","operationId":"activateInstanceV2","parameters":[{"name":"licenseSecret","in":"query","required":true,"schema":{"type":"string"}},{"name":"releaseDate","in":"query","required":true,"schema":{"type":"string"}},{"name":"clusterId","in":"query","required":true,"schema":{"type":"string"}},{"name":"protocolVersion","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/v2/entityGroup/{entityGroupId}/share":{"post":{"tags":["entity-group-controller"],"summary":"Share the Entity Group with User group (shareEntityGroupToChildOwnerUserGroupV2)","description":"Share the entity group with specified user group using specified role. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.","operationId":"shareEntityGroupToChildOwnerUserGroupV2","parameters":[{"name":"entityGroupId","in":"path","description":"A uuid value representing the Entity Group Id that you would like to share. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareGroupRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/v2/entitiesQuery/find/keys":{"post":{"tags":["entity-query-controller"],"summary":"Find Available Entity Keys By Query","description":"Discovers unique time series and/or attribute key names available on entities that match the given query.\nWorks in two steps: first, the request body (an Entity Data Query) is executed to find matching entities\n(page size is capped at 100); then, all distinct key names are collected from those entities.\n\nOptionally, each key can include a sample — the most recent value (by timestamp) for that key\nacross all matched entities.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"findAvailableEntityKeysByQueryV2","parameters":[{"name":"includeTimeseries","in":"query","description":"When true, includes unique time series keys in the response.\nWhen false, the 'timeseries' field is omitted. At least one of 'includeTimeseries' or 'includeAttributes' must be true.","required":false,"schema":{"type":"boolean","default":true}},{"name":"includeAttributes","in":"query","description":"When true, includes unique attribute keys in the response.\nWhen false, the 'attributes' field is omitted. At least one of 'includeTimeseries' or 'includeAttributes' must be true.","required":false,"schema":{"type":"boolean","default":true}},{"name":"scopes","in":"query","description":"Filters attribute keys by scope. Only applies when 'includeAttributes' is true.\nWhen not specified, scopes are auto-determined: all three scopes (server, client, shared) for device entities,\nserver scope only for other entity types.","required":false,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE","CLIENT_SCOPE"]}},{"name":"includeSamples","in":"query","description":"When true, each key entry includes a 'sample' object with the most recent value and timestamp.\nWhen false, only key names are returned (sample is omitted from JSON).","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDataQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableEntityKeysV2"}}}}}}},"/api/user":{"post":{"tags":["user-controller"],"summary":"Save Or update User (saveUser)","description":"Create or update the User. When creating user, platform generates User Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created User Id will be present in the response. Specify existing User Id to update the device. Referencing non-existing User Id will cause 'Not Found' error.\n\nDevice email is unique for entire platform setup.\n\nRemove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new User entity. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveUser","parameters":[{"name":"sendActivationMail","in":"query","description":"Send activation email (or use activation link)","required":false,"schema":{"type":"string"}},{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/api/userGroup/groupPermissions/info":{"post":{"tags":["group-permission-controller"],"summary":"Load User Group Permissions (loadUserGroupPermissionInfos)","description":"Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"loadUserGroupPermissionInfos","requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"JSON array of group permission objects","items":{"$ref":"#/components/schemas/GroupPermission"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupPermissionInfo"}}}}}}}},"/api/user/{userId}/userCredentialsEnabled":{"post":{"tags":["user-controller"],"summary":"Enable/Disable User credentials (setUserCredentialsEnabled)","description":"Enables or Disables user credentials. Useful when you would like to block user account without deleting it. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"setUserCredentialsEnabled","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"userCredentialsEnabled","in":"query","description":"Enable (\"true\") or disable (\"false\") the credentials.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/user/settings":{"post":{"tags":["user-controller"],"summary":"Save user settings (saveUserSettings)","description":"Save user settings represented in json format for authorized user. ","operationId":"saveUserSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/user/sendActivationMail":{"post":{"tags":["user-controller"],"summary":"Send or re-send the activation email","description":"Force send the activation email to the user. Useful to resend the email if user has accidentally deleted it.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"sendActivationEmail","parameters":[{"name":"email","in":"query","description":"Email of the user","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/user/mobile/session":{"get":{"tags":["user-controller"],"operationId":"getMobileSession","parameters":[{"name":"X-Mobile-Token","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileSessionInfo"}}}}}},"post":{"tags":["user-controller"],"operationId":"saveMobileSession","parameters":[{"name":"X-Mobile-Token","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileSessionInfo"}}},"required":true},"responses":{"200":{"description":"OK"}}},"delete":{"tags":["user-controller"],"operationId":"removeMobileSession","parameters":[{"name":"X-Mobile-Token","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/trendz/public/connect":{"post":{"tags":["trendz-controller"],"summary":"Public connect to Trendz (publicConnectToTrendz)","description":"Initiates synchronization with Trendz if Trendz is not synced yet. Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync.","operationId":"publicConnectToTrendz","responses":{"200":{"description":"OK"}}}},"/api/trendz/connect":{"post":{"tags":["trendz-controller"],"summary":"Connect to Trendz (connectToTrendz)","description":"Initiates synchronization with Trendz (Connect button action). Uses Trendz configuration from settings or falls back to environment variables. Generates API key, saves configuration, checks Trendz version, and performs initial sync. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"connectToTrendz","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzSynchronizationResult"}}}}}}},"/api/trendz/config":{"get":{"tags":["trendz-controller"],"summary":"Get Trendz configuration (getTrendzConfig)","description":"Retrieves Trendz configuration (URLs). Returns trendzUrl and tbUrl.\n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTrendzConfig","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzConfiguration"}}}}}},"post":{"tags":["trendz-controller"],"summary":"Save Trendz configuration (saveTrendzConfig)","description":"Saves Trendz configuration (URLs only, without triggering synchronization). Request body example:\n```json\n{\n  \"trendzUrl\": \"https://trendz.domain.com\",\n  \"tbUrl\": \"https://thingsboard.domain.com\"\n}\n```\n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"saveTrendzConfig","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzConfiguration"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzConfiguration"}}}}}}},"/api/translation/custom/{localeCode}":{"get":{"tags":["custom-translation-controller"],"summary":"Get Custom Translation configuration (getCustomTranslation)","description":"Fetch the Custom Translation for specified locale that corresponds to the authority of the user. The API call is designed to load the custom translation items for edition. So, the result is NOT merged with the parent level configuration. Let's assume there is a custom translation configured on a system level. And there is no custom translation items configured on a tenant level. In such a case, the API call will return empty object for the tenant administrator. \n\n Response example: \n\n```json\n{\"home\":\"MyHome\"}\n```\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getCustomTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"post":{"tags":["custom-translation-controller"],"summary":"Create Or Update Custom Translation (saveCustomTranslation)","description":"Creates or Updates the Custom Translation for specified locale.\n\n Request example: \n\n```json\n{\"home\":\"MyHome\"}\n```\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"saveCustomTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}},"delete":{"tags":["custom-translation-controller"],"summary":"Delete Custom Translation for specified locale (deleteCustomTranslation)","description":"Delete entire custom translation settings for end-user\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"deleteCustomTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"patch":{"tags":["custom-translation-controller"],"summary":"Update Custom Translation for specified translation keys only (patchCustomTranslation)","description":"The API call is designed to update the custom translation for specified key only. \n\n Request example: \n\n```json\n{\"notification.active\":\"active\"}\n```\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"patchCustomTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/translation/custom/{localeCode}/upload":{"post":{"tags":["custom-translation-controller"],"summary":"Upload Custom Translation (uploadCustomTranslation)","description":"Upload the Custom Translation for specified locale.\n\n Request example: \n\n```json\n{\"home\":\"MyHome\"}\n```\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"uploadCustomTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"200":{"description":"OK"}}}},"/api/tenant":{"post":{"tags":["tenant-controller"],"summary":"Create Or update Tenant (saveTenant)","description":"Create or update the Tenant. When creating tenant, platform generates Tenant Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Default Rule Chain and Device profile are also generated for the new tenants automatically. The newly created Tenant Id will be present in the response. Specify existing Tenant Id id to update the Tenant. Referencing non-existing Tenant Id will cause 'Not Found' error.Remove 'id', 'tenantId' from the request body example (below) to create new Tenant entity.\n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"saveTenant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}}}}},"/api/tenantProfile":{"post":{"tags":["tenant-profile-controller"],"summary":"Create Or update Tenant Profile (saveTenantProfile)","description":"Create or update the Tenant Profile. When creating tenant profile, platform generates Tenant Profile Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Tenant Profile Id will be present in the response. Specify existing Tenant Profile Id id to update the Tenant Profile. Referencing non-existing Tenant Profile Id will cause 'Not Found' error. \n\nUpdate of the tenant profile configuration will cause immediate recalculation of API limits for all affected Tenants. \n\nThe **'profileData'** object is the part of Tenant Profile that defines API limits and Rate limits. \n\nYou have an ability to define maximum number of devices ('maxDevice'), assets ('maxAssets') and other entities. You may also define maximum number of messages to be processed per month ('maxTransportMessages', 'maxREExecutions', etc). The '*RateLimit' defines the rate limits using simple syntax. For example, '1000:1,20000:60' means up to 1000 events per second but no more than 20000 event per minute. Let's review the example of tenant profile data below: \n\n```json\n{\n  \"name\": \"Your name\",\n  \"description\": \"Your description\",\n  \"isolatedTbRuleEngine\": false,\n  \"profileData\": {\n    \"configuration\": {\n      \"type\": \"DEFAULT\",\n      \"maxDevices\": 0,\n      \"maxAssets\": 0,\n      \"maxCustomers\": 0,\n      \"maxUsers\": 0,\n      \"maxDashboards\": 0,\n      \"maxRuleChains\": 0,\n      \"maxResourcesInBytes\": 0,\n      \"maxOtaPackagesInBytes\": 0,\n      \"maxResourceSize\": 0,\n      \"transportTenantMsgRateLimit\": \"1000:1,20000:60\",\n      \"transportTenantTelemetryMsgRateLimit\": \"1000:1,20000:60\",\n      \"transportTenantTelemetryDataPointsRateLimit\": \"1000:1,20000:60\",\n      \"transportDeviceMsgRateLimit\": \"20:1,600:60\",\n      \"transportDeviceTelemetryMsgRateLimit\": \"20:1,600:60\",\n      \"transportDeviceTelemetryDataPointsRateLimit\": \"20:1,600:60\",\n      \"transportGatewayMsgRateLimit\": \"20:1,600:60\",\n      \"transportGatewayTelemetryMsgRateLimit\": \"20:1,600:60\",\n      \"transportGatewayTelemetryDataPointsRateLimit\": \"20:1,600:60\",\n      \"transportGatewayDeviceMsgRateLimit\": \"20:1,600:60\",\n      \"transportGatewayDeviceTelemetryMsgRateLimit\": \"20:1,600:60\",\n      \"transportGatewayDeviceTelemetryDataPointsRateLimit\": \"20:1,600:60\",\n      \"integrationMsgsPerTenantRateLimit\": \"20:1,600:60\",\n      \"integrationMsgsPerDeviceRateLimit\": \"20:1,600:60\",\n      \"integrationMsgsPerAssetRateLimit\": \"20:1,600:60\",\n      \"maxTransportMessages\": 10000000,\n      \"maxTransportDataPoints\": 10000000,\n      \"maxREExecutions\": 4000000,\n      \"maxJSExecutions\": 5000000,\n      \"maxDPStorageDays\": 0,\n      \"maxRuleNodeExecutionsPerMessage\": 50,\n      \"maxDebugModeDurationMinutes\": 15,\n      \"maxEmails\": 0,\n      \"maxSms\": 0,\n      \"maxCreatedAlarms\": 1000,\n      \"defaultStorageTtlDays\": 0,\n      \"alarmsTtlDays\": 0,\n      \"rpcTtlDays\": 0,\n      \"queueStatsTtlDays\": 0,\n      \"ruleEngineExceptionsTtlDays\": 0,\n      \"blobEntityTtlDays\": 0,\n      \"warnThreshold\": 0,\n      \"maxCalculatedFieldsPerEntity\": 100,\n      \"maxArgumentsPerCF\": 10,\n      \"minAllowedScheduledUpdateIntervalInSecForCF\": 10,\n      \"maxRelationLevelPerCfArgument\": 2,\n      \"maxRelatedEntitiesToReturnPerCfArgument\": 1000,\n      \"maxDataPointsPerRollingArg\": 1000,\n      \"maxStateSizeInKBytes\": 512,\n      \"maxSingleValueArgumentSizeInKBytes\": 32,      \"minAllowedDeduplicationIntervalInSecForCF\": 10,      \"minAllowedAggregationIntervalInSecForCF\": 60,      \"intermediateAggregationIntervalInSecForCF\": 300,      \"cfReevaluationCheckInterval\": 60,      \"alarmsReevaluationInterval\": 60    }\n  },\n  \"default\": false\n}\n```Remove 'id', from the request body example (below) to create new Tenant Profile entity.\n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"saveTenantProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantProfile"}}}}}}},"/api/tenantProfile/{tenantProfileId}/default":{"post":{"tags":["tenant-profile-controller"],"summary":"Make tenant profile default (setDefaultTenantProfile)","description":"Makes specified tenant profile to be default. Referencing non-existing tenant profile Id will cause an error. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"setDefaultTenantProfile","parameters":[{"name":"tenantProfileId","in":"path","description":"A string value representing the tenant profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantProfile"}}}}}}},"/api/tenant/{tenantId}/device/{deviceId}":{"post":{"tags":["device-controller"],"summary":"Assign device to tenant (assignDeviceToTenant)","description":"Creates assignment of the device to tenant. Thereafter tenant will be able to reassign the device to a customer.\n\nAvailable for users with 'TENANT_ADMIN' authority. Security check is performed to verify that the user has 'ASSIGN_TO_TENANT' permission for the entity (entities).","operationId":"assignDeviceToTenant","parameters":[{"name":"tenantId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}}}}},"/api/tenant/dashboard/home/info":{"get":{"tags":["dashboard-controller"],"summary":"Get Tenant Home Dashboard Info (getTenantHomeDashboardInfo)","description":"Returns the home dashboard info object that is configured as 'homeDashboardId' parameter in the 'additionalInfo' of the corresponding tenant. \n\nAvailable for users with 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getTenantHomeDashboardInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDashboardInfo"}}}}}},"post":{"tags":["dashboard-controller"],"summary":"Update Tenant Home Dashboard Info (getTenantHomeDashboardInfo)","description":"Update the home dashboard assignment for the current tenant. \n\nAvailable for users with 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"setTenantHomeDashboardInfo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDashboardInfo"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/solution/validate":{"post":{"tags":["solution-export-import-controller"],"summary":"Validate Solution (validateSolution)","description":"Performs a dry-run validation of a solution without modifying any data. Detects duplicate entities within the solution, identifies name conflicts with existing entities in the current tenant, and reports missing dependency references (e.g. a device profile referencing an absent rule chain). The result indicates whether the solution is safe to import (valid=true) and lists any conflicts or warnings.\n\nAvailable for users with 'TENANT_ADMIN' authority. Requires VERSION_CONTROL WRITE permission.","operationId":"validateSolution","requestBody":{"description":"Solution data to validate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionValidationResult"}}}}}}},"/api/solution/import":{"post":{"tags":["solution-export-import-controller"],"summary":"Import Solution (importSolution)","description":"Imports a solution package into the current tenant. Before importing, the endpoint checks for name conflicts with existing entities in the tenant. If name conflicts are detected, the import is rejected with HTTP 409 (Conflict). The import is transactional — if any entity fails to import, all changes are rolled back (all-or-nothing). Entities are imported in dependency order with a two-pass resolution for circular references (e.g. rule chains referencing each other).\n\nAvailable for users with 'TENANT_ADMIN' authority. Requires VERSION_CONTROL WRITE permission.","operationId":"importSolution","requestBody":{"description":"Solution data exported via the export endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionImportResult"}}}}}}},"/api/solution/export":{"post":{"tags":["solution-export-import-controller"],"summary":"Export Solution (exportSolution)","description":"Exports a set of entities as a portable solution package. The request specifies entities to include via 'internalIds' (server-internal UUIDs) and/or 'externalIds' (looked up by the entity's stored externalId within the current tenant); at least one of the two collections must be non-empty, and entities reached via both sides are deduplicated. Optional export settings control inclusion of relations, attributes, and credentials. All resolved entities must belong to the current tenant. The response contains the solution data (entities grouped by type) and any dependency warnings (e.g. when an exported device profile references a rule chain that was not included in the export). The solution data can later be imported into the same or a different tenant via the import endpoint.\n\nAvailable for users with 'TENANT_ADMIN' authority. Requires VERSION_CONTROL WRITE permission.","operationId":"exportSolution","requestBody":{"description":"Export request with internal and/or external entity IDs and optional settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionExportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionExportResponse"}}}}}}},"/api/signup/tenantAccount":{"post":{"tags":["sign-up-controller"],"operationId":"deleteTenantAccount","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTenantRequest"}}}},"responses":{"200":{"description":"OK"}}}},"/api/signup/notDisplayWelcome":{"post":{"tags":["sign-up-controller"],"operationId":"setNotDisplayWelcome","responses":{"200":{"description":"OK"}}}},"/api/signup/acceptTermsOfUse":{"post":{"tags":["sign-up-controller"],"summary":"Accept Terms of Use (acceptTermsOfUse)","description":"Accept Terms of Use by the current user. Stores the acceptance flag 'termsOfUseAccepted' and the acceptance time 'termsOfUseAcceptedTs' (epoch milliseconds) in the user's additional info. Repeated acceptance overwrites the stored time.","operationId":"acceptTermsOfUse","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/signup/acceptPrivacyPolicy":{"post":{"tags":["sign-up-controller"],"summary":"Accept privacy policy (acceptPrivacyPolicy)","description":"Accept privacy policy by the current user. Stores the acceptance flag 'privacyPolicyAccepted' and the acceptance time 'privacyPolicyAcceptedTs' (epoch milliseconds) in the user's additional info. Repeated acceptance overwrites the stored time.","operationId":"acceptPrivacyPolicy","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/signup/acceptPrivacyPolicyAndTermsOfUse":{"post":{"tags":["sign-up-controller"],"operationId":"acceptPrivacyPolicyAndTermsOfUse","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/selfRegistration/selfRegistrationParams":{"get":{"tags":["self-registration-controller"],"summary":"Get Self Registration parameters (getSelfRegistrationParams)","description":"Fetch the Self Registration parameters object for the tenant of the current user. \n\nAvailable for users with 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getWebSelfRegistrationParams","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/MobileSelfRegistrationParams"},{"$ref":"#/components/schemas/WebSelfRegistrationParams"}]}}}}}},"post":{"tags":["self-registration-controller"],"summary":"Create Or Update Self Registration parameters (saveSelfRegistrationParams)","description":"Creates or Updates the Self Registration parameters. When creating, platform generates Admin Settings Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Admin Settings Id will be present in the response. Specify existing Admin Settings Id to update the Self Registration parameters. Referencing non-existing Admin Settings Id will cause 'Not Found' error.\n\nSelf Registration allows users to signup for using the platform and automatically create a Customer account for them. You may configure default dashboard and user roles that will be assigned for this Customer. This allows you to build out-of-the-box solutions for customers. Ability to white-label the login and main pages helps to brand the platform.\n\nAvailable for users with 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"saveWebSelfRegistrationParams","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSelfRegistrationParams"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSelfRegistrationParams"}}}}}},"delete":{"tags":["self-registration-controller"],"operationId":"deleteWebSelfRegistrationParams","responses":{"200":{"description":"OK"}}}},"/api/secret":{"get":{"tags":["secret-controller"],"summary":"Get Secret info by name (getSecretInfoByName)","description":"\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getSecretInfoByName","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretInfo"}}}}}},"post":{"tags":["secret-controller"],"summary":"Save or Update Secret (saveSecret)","description":"Create or update the Secret. When creating secret, platform generates Secret Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Secret Id will be present in the response. Specify existing Secret Id to update the secret. Secret name is not updatable, only value could be changed. Referencing non-existing Secret Id will cause 'Not Found' error.\n\nSecret name is unique in the scope of tenant.","operationId":"saveSecret","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Secret"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretInfo"}}}}}}},"/api/schedulerEvent":{"post":{"tags":["scheduler-event-controller"],"summary":"Save Scheduler Event (saveSchedulerEvent)","description":"Creates or Updates scheduler event. Scheduler Event extends Scheduler Event Info object and adds 'configuration' - a JSON structure of scheduler event configuration. See the 'Model' tab of the Response Class for more details. When creating scheduler event, platform generates scheduler event Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created scheduler event id will be present in the response. Specify existing scheduler event id to update the scheduler event. Referencing non-existing scheduler event Id will cause 'Not Found' error. Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Scheduler Event entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveSchedulerEvent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEvent"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEvent"}}}}}}},"/api/ruleChains/import":{"post":{"tags":["rule-chain-controller"],"summary":"Import Rule Chains","description":"Imports all tenant rule chains as one JSON.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"importRuleChains","parameters":[{"name":"overwrite","in":"query","description":"Enables overwrite for existing rule chains with the same name.","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChainData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleChainImportResult"}}}}}}}},"/api/ruleChain":{"post":{"tags":["rule-chain-controller"],"summary":"Create Or Update Rule Chain (saveRuleChain)","description":"Create or update the Rule Chain. When creating Rule Chain, platform generates Rule Chain Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Rule Chain Id will be present in the response. Specify existing Rule Chain id to update the rule chain. Referencing non-existing rule chain Id will cause 'Not Found' error.\n\nThe rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.Remove 'id', 'tenantId' from the request body example (below) to create new Rule Chain entity.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveRuleChain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}}},"/api/ruleChain/{ruleChainId}/root":{"post":{"tags":["rule-chain-controller"],"summary":"Set Root Rule Chain (setRootRuleChain)","description":"Makes the rule chain to be root rule chain. Updates previous root rule chain as well. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setRootRuleChain","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}}},"/api/ruleChain/{ruleChainId}/edgeTemplateRoot":{"post":{"tags":["rule-chain-controller"],"summary":"Set Edge Template Root Rule Chain (setEdgeTemplateRootRuleChain)","description":"Makes the rule chain to be root rule chain for any new edge that will be created. Does not update root rule chain for already created edges. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setEdgeTemplateRootRuleChain","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}}},"/api/ruleChain/{ruleChainId}/autoAssignToEdge":{"post":{"tags":["rule-chain-controller"],"summary":"Set Auto Assign To Edge Rule Chain (setAutoAssignToEdgeRuleChain)","description":"Makes the rule chain to be automatically assigned for any new edge that will be created. Does not assign this rule chain for already created edges. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setAutoAssignToEdgeRuleChain","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}},"delete":{"tags":["rule-chain-controller"],"summary":"Unset Auto Assign To Edge Rule Chain (unsetAutoAssignToEdgeRuleChain)","description":"Removes the rule chain from the list of rule chains that are going to be automatically assigned for any new edge that will be created. Does not unassign this rule chain for already assigned edges. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"unsetAutoAssignToEdgeRuleChain","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}}},"/api/ruleChain/testScript":{"post":{"tags":["rule-chain-controller"],"summary":"Test Script function","description":"Execute the Script function and return the result. The format of request: \n\n```json\n{\n  \"script\": \"Your Function as String\",\n  \"scriptType\": \"One of: update, generate, filter, switch, json, string\",\n  \"argNames\": [\"msg\", \"metadata\", \"type\"],\n  \"msg\": \"{\\\"temperature\\\": 42}\", \n  \"metadata\": {\n    \"deviceName\": \"Device A\",\n    \"deviceType\": \"Thermometer\"\n  },\n  \"msgType\": \"POST_TELEMETRY_REQUEST\"\n}\n```\n\n Expected result JSON contains \"output\" and \"error\".\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"testRuleChainScript","parameters":[{"name":"scriptLang","in":"query","description":"Script language: JS or TBEL","required":false,"schema":{"$ref":"#/components/schemas/ScriptLanguage"}}],"requestBody":{"description":"Test JS request. See API call description above.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ruleChain/metadata":{"post":{"tags":["rule-chain-controller"],"summary":"Update Rule Chain Metadata","description":"Updates the rule chain metadata. The metadata object contains information about the rule nodes and their connections.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveRuleChainMetaData","parameters":[{"name":"updateRelated","in":"query","description":"Update related rule nodes.","required":false,"schema":{"type":"boolean","default":true}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChainMetaData"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChainMetaData"}}}}}}},"/api/ruleChain/device/default":{"post":{"tags":["rule-chain-controller"],"summary":"Create Default Rule Chain (setDeviceDefaultRuleChain)","description":"Create rule chain from template, based on the specified name in the request. Creates the rule chain based on the template that is used to create root rule chain. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setDeviceDefaultRuleChain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultRuleChainCreateRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}}},"/api/rule-engine/{entityType}/{entityId}":{"post":{"tags":["rule-engine-controller"],"summary":"Push entity message to the rule engine (handleRuleEngineRequestForEntity)","description":"Creates the Message with type 'REST_API_REQUEST' and payload taken from the request body. Uses specified Entity Id as the Rule Engine message originator. This method allows you to extend the regular platform API with the power of Rule Engine. You may use default and custom rule nodes to handle the message. The generated message contains two important metadata fields:\n\n * **'serviceId'** to identify the platform server that received the request;\n * **'requestUUID'** to identify the request and route possible response from the Rule Engine;\n\nUse **'rest call reply'** rule node to push the reply from rule engine back as a REST API call response. The default timeout of the request processing is 10 seconds.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"handleRuleEngineRequestForEntity","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON object representing the message.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/rule-engine/{entityType}/{entityId}/{timeout}":{"post":{"tags":["rule-engine-controller"],"summary":"Push entity message with timeout to the rule engine (handleRuleEngineRequestForEntityWithTimeout)","description":"Creates the Message with type 'REST_API_REQUEST' and payload taken from the request body. Uses specified Entity Id as the Rule Engine message originator. This method allows you to extend the regular platform API with the power of Rule Engine. You may use default and custom rule nodes to handle the message. The generated message contains two important metadata fields:\n\n * **'serviceId'** to identify the platform server that received the request;\n * **'requestUUID'** to identify the request and route possible response from the Rule Engine;\n\nUse **'rest call reply'** rule node to push the reply from rule engine back as a REST API call response. The platform expects the timeout value in milliseconds.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"handleRuleEngineRequestForEntityWithTimeout","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"timeout","in":"path","description":"Timeout to process the request in milliseconds","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"description":"A JSON object representing the message.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/rule-engine/{entityType}/{entityId}/{queueName}/{timeout}":{"post":{"tags":["rule-engine-controller"],"summary":"Push entity message with timeout and specified queue to the rule engine (handleRuleEngineRequestForEntityWithQueueAndTimeout)","description":"Creates the Message with type 'REST_API_REQUEST' and payload taken from the request body. Uses specified Entity Id as the Rule Engine message originator. This method allows you to extend the regular platform API with the power of Rule Engine. You may use default and custom rule nodes to handle the message. The generated message contains two important metadata fields:\n\n * **'serviceId'** to identify the platform server that received the request;\n * **'requestUUID'** to identify the request and route possible response from the Rule Engine;\n\nUse **'rest call reply'** rule node to push the reply from rule engine back as a REST API call response. If request sent for Device/Device Profile or Asset/Asset Profile entity, specified queue will be used instead of the queue selected in the device or asset profile. The platform expects the timeout value in milliseconds.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"handleRuleEngineRequestForEntityWithQueueAndTimeout","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"queueName","in":"path","description":"Queue name to process the request in the rule engine","required":true,"schema":{"type":"string"}},{"name":"timeout","in":"path","description":"Timeout to process the request in milliseconds","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"description":"A JSON object representing the message.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/rule-engine/":{"post":{"tags":["rule-engine-controller"],"summary":"Push user message to the rule engine (handleRuleEngineRequestForUser)","description":"Creates the Message with type 'REST_API_REQUEST' and payload taken from the request body. Uses current User Id ( the one which credentials is used to perform the request) as the Rule Engine message originator. This method allows you to extend the regular platform API with the power of Rule Engine. You may use default and custom rule nodes to handle the message. The generated message contains two important metadata fields:\n\n * **'serviceId'** to identify the platform server that received the request;\n * **'requestUUID'** to identify the request and route possible response from the Rule Engine;\n\nUse **'rest call reply'** rule node to push the reply from rule engine back as a REST API call response. The default timeout of the request processing is 10 seconds.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"handleRuleEngineRequestForUser","requestBody":{"description":"A JSON object representing the message.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/rpc/twoway/{deviceId}":{"post":{"tags":["rpc-v-2-controller"],"summary":"Send two-way RPC request (handleTwoWayDeviceRPCRequestV2)","description":"Sends the two-way remote-procedure call (RPC) request to device. Sends the one-way remote-procedure call (RPC) request to device. The RPC call is A JSON that contains the method name ('method'), parameters ('params') and multiple optional fields. See example below. We will review the properties of the RPC call one-by-one below. \n\n```json\n{\n  \"method\": \"setGpio\",\n  \"params\": {\n    \"pin\": 7,\n    \"value\": 1\n  },\n  \"persistent\": false,\n  \"timeout\": 5000\n}\n```\n\n### Server-side RPC structure\n\nThe body of server-side RPC request consists of multiple fields:\n\n* **method** - mandatory, name of the method to distinct the RPC calls.\n  For example, \"getCurrentTime\" or \"getWeatherForecast\". The value of the parameter is a string.\n* **params** - mandatory, parameters used for processing of the request. The value is a JSON. Leave empty JSON \"{}\" if no parameters needed.\n* **timeout** - optional, value of the processing timeout in milliseconds. The default value is 10000 (10 seconds). The minimum value is 5000 (5 seconds).\n* **expirationTime** - optional, value of the epoch time (in milliseconds, UTC timezone). Overrides **timeout** if present.\n* **persistent** - optional, indicates persistent RPC. The default value is \"false\".\n* **retries** - optional, defines how many times persistent RPC will be re-sent in case of failures on the network and/or device side.\n* **additionalInfo** - optional, defines metadata for the persistent RPC that will be added to the persistent RPC events.\n\n### RPC Result\nIn case of persistent RPC, the result of this call is 'rpcId' UUID. In case of lightweight RPC, the result of this call is the response from device, or 504 Gateway Timeout if device is offline.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"handleTwoWayDeviceRPCRequestV2","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON object representing the RPC request.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Persistent RPC request was saved to the database or lightweight RPC response received.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to send the RPC request. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"413":{"description":"Request payload is too large","content":{"application/json":{"schema":{"type":"string"}}}},"504":{"description":"Timeout to process the RPC call. Most likely, device is offline.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/rpc/oneway/{deviceId}":{"post":{"tags":["rpc-v-2-controller"],"summary":"Send one-way RPC request (handleOneWayDeviceRPCRequestV2)","description":"Sends the one-way remote-procedure call (RPC) request to device. Sends the one-way remote-procedure call (RPC) request to device. The RPC call is A JSON that contains the method name ('method'), parameters ('params') and multiple optional fields. See example below. We will review the properties of the RPC call one-by-one below. \n\n```json\n{\n  \"method\": \"setGpio\",\n  \"params\": {\n    \"pin\": 7,\n    \"value\": 1\n  },\n  \"persistent\": false,\n  \"timeout\": 5000\n}\n```\n\n### Server-side RPC structure\n\nThe body of server-side RPC request consists of multiple fields:\n\n* **method** - mandatory, name of the method to distinct the RPC calls.\n  For example, \"getCurrentTime\" or \"getWeatherForecast\". The value of the parameter is a string.\n* **params** - mandatory, parameters used for processing of the request. The value is a JSON. Leave empty JSON \"{}\" if no parameters needed.\n* **timeout** - optional, value of the processing timeout in milliseconds. The default value is 10000 (10 seconds). The minimum value is 5000 (5 seconds).\n* **expirationTime** - optional, value of the epoch time (in milliseconds, UTC timezone). Overrides **timeout** if present.\n* **persistent** - optional, indicates persistent RPC. The default value is \"false\".\n* **retries** - optional, defines how many times persistent RPC will be re-sent in case of failures on the network and/or device side.\n* **additionalInfo** - optional, defines metadata for the persistent RPC that will be added to the persistent RPC events.\n\n### RPC Result\nIn case of persistent RPC, the result of this call is 'rpcId' UUID. In case of lightweight RPC, the result of this call is either 200 OK if the message was sent to device, or 504 Gateway Timeout if device is offline.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"handleOneWayDeviceRPCRequestV2","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON object representing the RPC request.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Persistent RPC request was saved to the database or lightweight RPC request was sent to the device.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to send the RPC request. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"413":{"description":"Request payload is too large","content":{"application/json":{"schema":{"type":"string"}}}},"504":{"description":"Timeout to process the RPC call. Most likely, device is offline.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/role":{"post":{"tags":["role-controller"],"summary":"Create Or Update Role (saveRole)","description":"Creates or Updates the Role. When creating Role, platform generates Role Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Role id will be present in the response. Specify existing Role id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error.\n\nRole Contains a set of permissions. Role has two types. Generic Role may be assigned to the user group and will provide permissions for all entities of a certain type. Group Role may be assigned to both user and entity group and will provides permissions only for the entities that belong to specified entity group. The assignment of the Role to the User Group is done using [Group Permission Controller](/swagger-ui.html#/group-permission-controller).\n\nExample of Generic Role with read-only permissions for any resource and all permissions for the 'DEVICE' and 'PROFILE' resources is listed below: \n\n```json\n{\n  \"name\": \"Read-Only User\",\n  \"type\": \"GENERIC\",\n  \"permissions\": {\n    \"ALL\": [\n      \"READ\",\n      \"RPC_CALL\",\n      \"READ_CREDENTIALS\",\n      \"READ_ATTRIBUTES\",\n      \"READ_TELEMETRY\"\n    ],\n    \"DEVICE\": [\n      \"ALL\"\n    ]\n    \"PROFILE\": [\n      \"ALL\"\n    ]\n  },\n  \"additionalInfo\": {\n    \"description\": \"Read-only permissions for everything, Write permissions for devices and own profile.\"\n  }\n}\n```\n\nExample of Group Role with read-only permissions. Note that the group role has no association with the resources. The type of the resource is taken from the entity group that this role is assigned to: \n\n```json\n{\n  \"name\": \"Entity Group Read-only User\",\n  \"type\": \"GROUP\",\n  \"permissions\": [\n    \"READ\",\n    \"RPC_CALL\",\n    \"READ_CREDENTIALS\",\n    \"READ_ATTRIBUTES\",\n    \"READ_TELEMETRY\"\n  ],\n  \"additionalInfo\": {\n    \"description\": \"Read-only permissions.\"\n  }\n}\n```\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveRole","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}}}},"/api/resource":{"get":{"tags":["tb-resource-controller"],"summary":"Get Resource Infos (getResources)","description":"Returns a page of Resource Info objects owned by tenant or sysadmin. Customer users may request only 'JS_MODULE' resources, so the 'resourceType' parameter is mandatory for them. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Resource Info is a lightweight object that includes main information about the Resource excluding the heavyweight data. \n\nAvailable for any authorized user. ","operationId":"getResources","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"resourceType","in":"query","description":"A list of resource types, separated by comma ','.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceType"},"uniqueItems":true}},{"name":"resourceSubType","in":"query","description":"A string value representing the resource sub-type.","required":false,"schema":{"type":"string","enum":["EXTENSION","MODULE"]}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the resource title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","resourceType","tenantId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTbResourceInfo"}}}}}},"post":{"tags":["tb-resource-controller"],"summary":"Create Or Update Resource (saveResource)","description":"Create or update the Resource. When creating the Resource, platform generates Resource id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Resource id will be present in the response. Specify existing Resource id to update the Resource. Referencing non-existing Resource Id will cause 'Not Found' error. \n\nResource combination of the title with the key is unique in the scope of tenant. Remove 'id', 'tenantId' from the request body example (below) to create new Resource entity.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveResource","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResource"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}},"deprecated":true}},"/api/resource/upload":{"post":{"tags":["tb-resource-controller"],"summary":"Upload Resource via Multipart File (uploadResource)","description":"Create the Resource using multipart file upload. \n\nResource combination of the title with the key is unique in the scope of tenant. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"uploadResource","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"title":{"type":"string","description":"Resource title."},"resourceType":{"type":"string","description":"Resource type."},"descriptor":{"type":"string","description":"Resource descriptor (JSON)."},"resourceSubType":{"type":"string","description":"Resource sub type."},"file":{"type":"string","format":"binary","description":"Resource file."}},"required":["file","resourceType"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/reportTemplate":{"post":{"tags":["report-template-controller"],"summary":"Save Report Template (saveReportTemplate)","description":"Creates or Updates report template. Report Template extends Report Template Info object and adds 'configuration' - a JSON structure of report template configuration. See the 'Model' tab of the Response Class for more details. When creating report template, platform generates report template Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created report template id will be present in the response. Specify existing report template id to update the report template. Referencing non-existing report template Id will cause 'Not Found' error. Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Report Template entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveReportTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportTemplate"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportTemplate"}}}}}}},"/api/report/{dashboardId}/download":{"post":{"tags":["dashboard-report-controller"],"summary":"Download dashboard report (downloadDashboardReport)","description":"Generate and download a report from the specified dashboard. The request payload is a JSON object with params of report. For example:\n\n```json\n{\n    \"type\": \"pdf\",\n    \"timezone\": \"Europe/Kiev\",\n    \"timewindow\": {\n        \"displayValue\": \"\",\n        \"hideInterval\": false,\n        \"hideLastInterval\": false,\n        \"hideQuickInterval\": false,\n        \"hideAggregation\": false,\n        \"hideAggInterval\": false,\n        \"hideTimezone\": false,\n        \"selectedTab\": 0,\n        \"realtime\": {\n            \"realtimeType\": 0,\n            \"interval\": 1000,\n            \"timewindowMs\": 60000,\n            \"quickInterval\": \"CURRENT_DAY\"\n        },\n        \"history\": {\n            \"historyType\": 0,\n            \"interval\": 1000,\n            \"timewindowMs\": 60000,\n            \"fixedTimewindow\": {\n                \"startTimeMs\": 1703687976592,\n                \"endTimeMs\": 1703774376592\n            },\n            \"quickInterval\": \"CURRENT_DAY\"\n        },\n        \"aggregation\": {\n            \"type\": \"AVG\",\n            \"limit\": 25000\n        }\n    },\n    \"state\": null\n}\n```\n\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"downloadDashboardReport","parameters":[{"name":"dashboardId","in":"path","description":"A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/report/test":{"post":{"tags":["dashboard-report-controller"],"summary":"Download test report (downloadTestReport)","description":"Generate and download test report.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"downloadTestReport","parameters":[{"name":"reportsServerEndpointUrl","in":"query","description":"A string value representing the report server endpoint.","required":false,"schema":{"type":"string"},"example":"http://localhost:8383"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardReportConfig"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}},"image/jpeg":{"schema":{"type":"string","format":"binary"}},"image/png":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/relations":{"post":{"tags":["entity-relation-controller"],"summary":"Find related entities (findEntityRelationsByQuery)","description":"Returns all entities that are related to the specific entity. The entity id, relation type, entity types, depth of the search, and other query parameters defined using complex 'EntityRelationsQuery' object. See 'Model' tab of the Parameters for more info.","operationId":"findEntityRelationsByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRelationsQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}}}}}},"delete":{"tags":["entity-relation-controller"],"summary":"Delete common relations (deleteRelations)","description":"Deletes all the relations ('from' and 'to' direction) for the specified entity and relation type group: 'COMMON'. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer.","operationId":"deleteRelations","parameters":[{"name":"entityId","in":"query","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"entityType","in":"query","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/relations/info":{"post":{"tags":["entity-relation-controller"],"summary":"Find related entity infos (findEntityRelationInfosByQuery)","description":"Returns all entity infos that are related to the specific entity. The entity id, relation type, entity types, depth of the search, and other query parameters defined using complex 'EntityRelationsQuery' object. See 'Model' tab of the Parameters for more info. Relation Info is an extension of the default Relation object that contains information about the 'from' and 'to' entity names. ","operationId":"findEntityRelationInfosByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRelationsQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelationInfo"}}}}}}}},"/api/queues":{"get":{"tags":["queue-controller"],"summary":"Get Queues (getTenantQueuesByServiceType)","description":"Returns a page of queues registered in the platform. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTenantQueuesByServiceType","parameters":[{"name":"serviceType","in":"query","description":"Service type (implemented only for the TB-RULE-ENGINE)","required":true,"schema":{"type":"string","enum":["TB-RULE-ENGINE","TB-CORE","TB-TRANSPORT","JS-EXECUTOR"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the queue name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","topic"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataQueue"}}}}}},"post":{"tags":["queue-controller"],"summary":"Create Or Update Queue (saveQueue)","description":"Create or update the Queue. When creating queue, platform generates Queue Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Specify existing Queue id to update the queue. Referencing non-existing Queue Id will cause 'Not Found' error.\n\nQueue name is unique in the scope of sysadmin. Remove 'id', 'tenantId' from the request body example (below) to create new Queue entity. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"saveQueue","parameters":[{"name":"serviceType","in":"query","description":"Service type (implemented only for the TB-RULE-ENGINE)","required":true,"schema":{"type":"string","enum":["TB-RULE-ENGINE","TB-CORE","TB-TRANSPORT","JS-EXECUTOR"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/{scope}":{"post":{"tags":["telemetry-controller"],"summary":"Save entity attributes (saveEntityAttributesV1)","description":"Creates or updates the entity attributes based on Entity Id and the specified attribute scope.  List of possible attribute scopes depends on the entity type: \n\n * SERVER_SCOPE - supported for all entity types;\n * SHARED_SCOPE - supported for devices.\n\nThe request payload is a JSON object with key-value format of attributes to create or update. For example:\n\n```json\n{\n \"stringKey\":\"value1\", \n \"booleanKey\":true, \n \"doubleKey\":42.0, \n \"longKey\":73, \n \"jsonKey\": {\n    \"someNumber\": 42,\n    \"someArray\": [1,2,3],\n    \"someNestedObject\": {\"key\": \"value\"}\n }\n}\n```\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveEntityAttributesV1","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE"]}}],"requestBody":{"description":"A string value representing the json object. For example, '{\"key\":\"value\"}'. See API call description for more details.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Attribute from the request was created or updated. Platform creates an audit log event about entity attributes updates with action type 'ATTRIBUTES_UPDATED', and also sends event msg to the rule engine with msg type 'ATTRIBUTES_UPDATED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request or invalid attributes scope provided.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to save entity attributes for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about entity attributes updates with action type 'ATTRIBUTES_UPDATED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}},"delete":{"tags":["telemetry-controller"],"summary":"Delete entity attributes (deleteEntityAttributes)","description":"Delete entity attributes using provided Entity Id, scope and a list of keys. This operation is idempotent: keys that do not exist are silently ignored and the response is still 200 OK. Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteEntityAttributes","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE","CLIENT_SCOPE"]}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. If attribute keys contain comma, duplicate 'key' parameter for each key, for example '?key=my,key&key=my,second,key","required":false,"schema":{"type":"string"}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Entity attributes were removed for the selected keys in the request (keys that did not exist are silently ignored). Platform creates an audit log event about entity attributes removal with action type 'ATTRIBUTES_DELETED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Platform returns a bad request in case if keys or scope are not specified.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to delete entity attributes for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about entity attributes removal with action type 'ATTRIBUTES_DELETED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/values/timeseries":{"get":{"tags":["telemetry-controller"],"summary":"Get latest time series value (getLatestTimeseries)","description":"Returns all time series that belong to specified entity. Use optional 'keys' parameter to return specific time series. The result is a JSON object. The format of the values depends on the 'useStrictDataTypes' parameter. By default, all time series values are converted to strings: \n\n```json\n{\n  \"stringTsKey\": [{ \"value\": \"value\", \"ts\": 1609459200000}],\n  \"booleanTsKey\": [{ \"value\": \"false\", \"ts\": 1609459200000}],\n  \"doubleTsKey\": [{ \"value\": \"42.2\", \"ts\": 1609459200000}],\n  \"longTsKey\": [{ \"value\": \"73\", \"ts\": 1609459200000}],\n  \"jsonTsKey\": [{ \"value\": \"{\\\"someNumber\\\": 42,\\\"someArray\\\": [1,2,3],\\\"someNestedObject\\\": {\\\"key\\\": \\\"value\\\"}}\", \"ts\": 1609459200000}]\n}\n\n```\n\n However, it is possible to request the values without conversion ('useStrictDataTypes'=true): \n\n```json\n{\n  \"stringTsKey\": [{ \"value\": \"value\", \"ts\": 1609459200000}],\n  \"booleanTsKey\": [{ \"value\": false, \"ts\": 1609459200000}],\n  \"doubleTsKey\": [{ \"value\": 42.2, \"ts\": 1609459200000}],\n  \"longTsKey\": [{ \"value\": 73, \"ts\": 1609459200000}],\n  \"jsonTsKey\": [{ \n    \"value\": {\n      \"someNumber\": 42,\n      \"someArray\": [1,2,3],\n      \"someNestedObject\": {\"key\": \"value\"}\n    }, \n    \"ts\": 1609459200000}]\n}\n\n```\n\n Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getLatestTimeseries","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of telemetry keys. If keys are not selected, the result will return all latest time series. For example, 'temperature,humidity'. If telemetry keys contain comma, duplicate 'key' parameter for each key, for example '?key=my,key&key=my,second,key","required":false,"schema":{"type":"string"}},{"name":"useStrictDataTypes","in":"query","description":"Enables/disables conversion of telemetry values to strings. Conversion is enabled by default. Set parameter to 'true' in order to disable the conversion.","required":false,"schema":{"type":"boolean","default":false}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TsData"}}}}}}}},"post":{"tags":["telemetry-controller"],"summary":"Get time series data by read queries (getTimeseriesByReadTsKvQueries)","description":"Returns aggregated time series values according to queries for specified entity. ```json\n[\n  {\n    \"queryId\": 49,\n    \"data\": [\n      {\n        \"ts\": 1751450399999,\n        \"kv\": {\n          \"key\": \"temperature\",\n          \"value\": 26,\n          \"doubleValue\": 26,\n          \"valueAsString\": \"26.0\",\n          \"dataType\": \"DOUBLE\",\n          \"longValue\": null,\n          \"booleanValue\": null,\n          \"jsonValue\": null,\n          \"strValue\": null\n        },\n        \"version\": null\n      }\n    ],\n    \"lastEntryTs\": 1750264592675\n  },\n  {\n    \"queryId\": 50,\n    \"data\": [],\n    \"lastEntryTs\": 1751317200000\n  }\n]\n```\n\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getTimeseriesByReadTsKvQueries","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON array of time series read queries.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BaseReadTsKvQuery"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReadTsKvQueryResult"}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/timeseries/{scope}":{"post":{"tags":["telemetry-controller"],"summary":"Save or update time series data (saveEntityTelemetry)","description":"Creates or updates the entity time series data based on the Entity Id and request payload.The request payload is a JSON document with three possible formats:\n\nSimple format without timestamp. In such a case, current server time will be used: \n\n```json\n{\"temperature\": 26}\n```\n\n Single JSON object with timestamp: \n\n```json\n{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}\n```\n\n JSON array with timestamps: \n\n```json\n[{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}, {\"ts\":1634712588000,\"values\":{\"temperature\":25, \"humidity\":88}}]\n```\n\n The scope parameter is not used in the API call implementation but should be specified whatever value because it is used as a path variable. Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveEntityTelemetry","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility","required":true,"schema":{"type":"string","enum":["ANY"]}}],"requestBody":{"description":"A JSON with the telemetry values. See API call description for more details.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Time series from the request was created or updated. Platform creates an audit log event about entity time series updates with action type 'TIMESERIES_UPDATED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to save entity time series for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about entity time series updates with action type 'TIMESERIES_UPDATED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/timeseries/{scope}/{ttl}":{"post":{"tags":["telemetry-controller"],"summary":"Save or update time series data with TTL (saveEntityTelemetryWithTTL)","description":"Creates or updates the entity time series data based on the Entity Id and request payload.The request payload is a JSON document with three possible formats:\n\nSimple format without timestamp. In such a case, current server time will be used: \n\n```json\n{\"temperature\": 26}\n```\n\n Single JSON object with timestamp: \n\n```json\n{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}\n```\n\n JSON array with timestamps: \n\n```json\n[{\"ts\":1634712287000,\"values\":{\"temperature\":26, \"humidity\":87}}, {\"ts\":1634712588000,\"values\":{\"temperature\":25, \"humidity\":88}}]\n```\n\n The scope parameter is not used in the API call implementation but should be specified whatever value because it is used as a path variable. \n\nThe ttl parameter takes affect only in case of Cassandra DB.Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveEntityTelemetryWithTTL","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"Value is deprecated, reserved for backward compatibility and not used in the API call implementation. Specify any scope for compatibility","required":true,"schema":{"type":"string","enum":["ANY"]}},{"name":"ttl","in":"path","description":"A long value representing TTL (Time to Live) parameter.","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"description":"A JSON with the telemetry values. See API call description for more details.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Time series from the request was created or updated. Platform creates an audit log event about entity time series updates with action type 'TIMESERIES_UPDATED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to save entity time series for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about entity time series updates with action type 'TIMESERIES_UPDATED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/attributes/{scope}":{"post":{"tags":["telemetry-controller"],"summary":"Save entity attributes (saveEntityAttributesV2)","description":"Creates or updates the entity attributes based on Entity Id and the specified attribute scope.  List of possible attribute scopes depends on the entity type: \n\n * SERVER_SCOPE - supported for all entity types;\n * SHARED_SCOPE - supported for devices.\n\nThe request payload is a JSON object with key-value format of attributes to create or update. For example:\n\n```json\n{\n \"stringKey\":\"value1\", \n \"booleanKey\":true, \n \"doubleKey\":42.0, \n \"longKey\":73, \n \"jsonKey\": {\n    \"someNumber\": 42,\n    \"someArray\": [1,2,3],\n    \"someNestedObject\": {\"key\": \"value\"}\n }\n}\n```\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveEntityAttributesV2","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE"]}}],"requestBody":{"description":"A string value representing the json object. For example, '{\"key\":\"value\"}'. See API call description for more details.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Attribute from the request was created or updated. Platform creates an audit log event about entity attributes updates with action type 'ATTRIBUTES_UPDATED', and also sends event msg to the rule engine with msg type 'ATTRIBUTES_UPDATED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request or invalid attributes scope provided.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to save entity attributes for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about entity attributes updates with action type 'ATTRIBUTES_UPDATED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/plugins/telemetry/{deviceId}/{scope}":{"post":{"tags":["telemetry-controller"],"summary":"Save device attributes (saveDeviceAttributes)","description":"Creates or updates the device attributes based on device id and specified attribute scope. The request payload is a JSON object with key-value format of attributes to create or update. For example:\n\n```json\n{\n \"stringKey\":\"value1\", \n \"booleanKey\":true, \n \"doubleKey\":42.0, \n \"longKey\":73, \n \"jsonKey\": {\n    \"someNumber\": 42,\n    \"someArray\": [1,2,3],\n    \"someNestedObject\": {\"key\": \"value\"}\n }\n}\n```\n\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveDeviceAttributes","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE"]}}],"requestBody":{"description":"A string value representing the json object. For example, '{\"key\":\"value\"}'. See API call description for more details.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"Attribute from the request was created or updated. Platform creates an audit log event about device attributes updates with action type 'ATTRIBUTES_UPDATED', and also sends event msg to the rule engine with msg type 'ATTRIBUTES_UPDATED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Invalid structure of the request or invalid attributes scope provided.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to save device attributes for selected device. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about device attributes updates with action type 'ATTRIBUTES_UPDATED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}},"delete":{"tags":["telemetry-controller"],"summary":"Delete device attributes (deleteDeviceAttributes)","description":"Delete device attributes using provided Device Id, scope and a list of keys. Referencing a non-existing Device Id will cause an error\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteDeviceAttributes","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE","CLIENT_SCOPE"]}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. If attribute keys contain comma, duplicate 'key' parameter for each key, for example '?key=my,key&key=my,second,key","required":false,"schema":{"type":"string"}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Device attributes was removed for the selected keys in the request. Platform creates an audit log event about device attributes removal with action type 'ATTRIBUTES_DELETED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Platform returns a bad request in case if keys or scope are not specified.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to delete device attributes for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about device attributes removal with action type 'ATTRIBUTES_DELETED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/plugins/rpc/twoway/{deviceId}":{"post":{"tags":["rpc-v-1-controller"],"summary":"Send two-way RPC request (handleTwoWayDeviceRPCRequestV1)","description":"Deprecated. See 'Rpc V 2 Controller' instead.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"handleTwoWayDeviceRPCRequestV1","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON object representing the RPC request.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/plugins/rpc/oneway/{deviceId}":{"post":{"tags":["rpc-v-1-controller"],"summary":"Send one-way RPC request (handleOneWayDeviceRPCRequestV1)","description":"Deprecated. See 'Rpc V 2 Controller' instead.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"handleOneWayDeviceRPCRequestV1","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON object representing the RPC request.","content":{"text/plain":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/owner/TENANT/{ownerId}/{entityType}/{entityId}":{"post":{"tags":["owner-controller"],"summary":"Change owner to tenant (changeOwnerToTenant)","description":"Tenant changes Owner from Customer or sub-Customer to Tenant. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"changeOwnerToTenant","parameters":[{"name":"ownerId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"An optional list of additional entity group ids","items":{"type":"string"}}}}},"responses":{"200":{"description":"OK"}}}},"/api/owner/CUSTOMER/{ownerId}/{entityType}/{entityId}":{"post":{"tags":["owner-controller"],"summary":"Change owner to customer (changeOwnerToCustomer)","description":"Tenant/Customer changes Owner to Customer or sub-Customer. Sub-Customer can`t perform this operation! \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"changeOwnerToCustomer","parameters":[{"name":"ownerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"An optional list of additional entity group ids","items":{"type":"string"}}}}},"responses":{"200":{"description":"OK"}}}},"/api/otaPackage":{"post":{"tags":["ota-package-controller"],"summary":"Create Or Update OTA Package Info (saveOtaPackageInfo)","description":"Create or update the OTA Package Info. When creating OTA Package Info, platform generates OTA Package id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created OTA Package id will be present in the response. Specify existing OTA Package id to update the OTA Package Info. Referencing non-existing OTA Package Id will cause 'Not Found' error. \n\nOTA Package combination of the title with the version is unique in the scope of tenant. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveOtaPackageInfo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveOtaPackageInfoRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtaPackageInfo"}}}}}}},"/api/otaPackage/{otaPackageId}":{"get":{"tags":["ota-package-controller"],"summary":"Get OTA Package (getOtaPackageById)","description":"Fetch the OTA Package object based on the provided OTA Package Id. The server checks that the OTA Package is owned by the same tenant. OTA Package is a heavyweight object that includes main information about the OTA Package and also data. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getOtaPackageById","parameters":[{"name":"otaPackageId","in":"path","description":"A string value representing the ota package id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtaPackage"}}}}}},"post":{"tags":["ota-package-controller"],"summary":"Save OTA Package data (saveOtaPackageData)","description":"Update the OTA Package. Adds the date to the existing OTA Package Info\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveOtaPackageData","parameters":[{"name":"otaPackageId","in":"path","description":"A string value representing the ota package id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"checksum","in":"query","description":"OTA Package checksum. For example, '0xd87f7e0c'","required":false,"schema":{"type":"string"}},{"name":"checksumAlgorithm","in":"query","description":"OTA Package checksum algorithm.","required":true,"schema":{"type":"string","enum":["MD5","SHA256","SHA384","SHA512","CRC32","MURMUR3_32","MURMUR3_128"]}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"OTA Package data."}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtaPackageInfo"}}}}}},"delete":{"tags":["ota-package-controller"],"summary":"Delete OTA Package (deleteOtaPackage)","description":"Deletes the OTA Package. Referencing non-existing OTA Package Id will cause an error. Can't delete the OTA Package if it is referenced by existing devices or device profile.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteOtaPackage","parameters":[{"name":"otaPackageId","in":"path","description":"A string value representing the ota package id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/oauth2/config/template":{"get":{"tags":["o-auth-2-config-template-controller"],"summary":"Get the list of all OAuth2 client registration templates (getOAuth2ClientRegistrationTemplates)\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","description":"Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients","operationId":"getOAuth2ClientRegistrationTemplates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OAuth2ClientRegistrationTemplate"}}}}}}},"post":{"tags":["o-auth-2-config-template-controller"],"summary":"Create or update OAuth2 client registration template (saveClientRegistrationTemplate)\n\nAvailable for users with 'SYS_ADMIN' authority.","description":"Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients","operationId":"saveClientRegistrationTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2ClientRegistrationTemplate"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2ClientRegistrationTemplate"}}}}}}},"/api/oauth2/client":{"post":{"tags":["o-auth-2-controller"],"summary":"Save OAuth2 Client (saveOAuth2Client)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveOAuth2Client","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2Client"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2Client"}}}}}}},"/api/notification/template":{"post":{"tags":["notification-template-controller"],"summary":"Save notification template (saveNotificationTemplate)","description":"Creates or updates notification template.\n\nHere is an example of template to send notification via Web, SMS and Slack:\n```json\n{\n  \"name\": \"Greetings\",\n  \"notificationType\": \"GENERAL\",\n  \"configuration\": {\n    \"deliveryMethodsTemplates\": {\n      \"WEB\": {\n        \"enabled\": true,\n        \"subject\": \"Greetings\",\n        \"body\": \"Hi there, ${recipientTitle}\",\n        \"additionalConfig\": {\n          \"icon\": {\n            \"enabled\": true,\n            \"icon\": \"back_hand\",\n            \"color\": \"#757575\"\n          },\n          \"actionButtonConfig\": {\n            \"enabled\": false\n          }\n        },\n        \"method\": \"WEB\"\n      },\n      \"SMS\": {\n        \"enabled\": true,\n        \"body\": \"Hi there, ${recipientTitle}\",\n        \"method\": \"SMS\"\n      },\n      \"SLACK\": {\n        \"enabled\": true,\n        \"body\": \"Hi there, @${recipientTitle}\",\n        \"method\": \"SLACK\"\n      }\n    }\n  }\n}\n```\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveNotificationTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplate"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplate"}}}}}}},"/api/notification/target":{"post":{"tags":["notification-target-controller"],"summary":"Save notification target (saveNotificationTarget)","description":"Creates or updates notification target.\n\nAvailable `configuration` types are `PLATFORM_USERS` and `SLACK`.\nFor `PLATFORM_USERS` the `usersFilter` must be specified. For tenant, there are following users filter types available: `USER_LIST`, `CUSTOMER_USERS`, `USER_GROUP_LIST`, `TENANT_ADMINISTRATORS`, `USER_ROLE`, `ALL_USERS`, `ORIGINATOR_ENTITY_OWNER_USERS`, `AFFECTED_USER`.\nFor sysadmin: `TENANT_ADMINISTRATORS`, `AFFECTED_TENANT_ADMINISTRATORS`, `SYSTEM_ADMINISTRATORS`, `ALL_USERS`.\n\nHere is an example of tenant-level notification target to send notification to customer's users:\n```json\n{\n  \"name\": \"Users of Customer A\",\n  \"configuration\": {\n    \"type\": \"PLATFORM_USERS\",\n    \"usersFilter\": {\n      \"type\": \"CUSTOMER_USERS\",\n      \"customerId\": \"32499a20-d785-11ed-a06c-21dd57dd88ca\"\n    },\n    \"description\": \"Users of Customer A\"\n  }\n}\n```\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveNotificationTarget","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTarget"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTarget"}}}}}}},"/api/notification/target/recipients":{"post":{"tags":["notification-target-controller"],"summary":"Get recipients for notification target config (getRecipientsForNotificationTargetConfig)","description":"Returns the page of recipients for such notification target configuration.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getRecipientsForNotificationTargetConfig","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTarget"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUser"}}}}}}},"/api/notification/settings":{"get":{"tags":["notification-controller"],"summary":"Get notification settings (getNotificationSettings)","description":"Retrieves notification settings for this tenant or sysadmin.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettings"}}}}}},"post":{"tags":["notification-controller"],"summary":"Save notification settings (saveNotificationSettings)","description":"Saves notification settings for this tenant or sysadmin.\n`deliveryMethodsConfigs` of the settings must be specified.\n\nHere is an example of the notification settings with Slack configuration:\n```json\n{\n  \"deliveryMethodsConfigs\": {\n    \"SLACK\": {\n      \"method\": \"SLACK\",\n      \"botToken\": \"xoxb-....\"\n    }\n  }\n}\n```\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveNotificationSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettings"}}}}}}},"/api/notification/settings/user":{"get":{"tags":["notification-controller"],"operationId":"getUserNotificationSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationSettings"}}}}}},"post":{"tags":["notification-controller"],"operationId":"saveUserNotificationSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNotificationSettings"}}}}}}},"/api/notification/sendPlanUpgradeRequest/{planName}":{"post":{"tags":["notification-controller"],"summary":"Send plan upgrade request notification to Tenant administrators (sendPlanUpgradeRequest)","description":"Send plan upgrade access request notification by Tenant user to Tenant administrators.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"sendPlanUpgradeRequest","parameters":[{"name":"planName","in":"path","description":"Plan name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/sendAddonAccessRequest/{addonType}":{"post":{"tags":["notification-controller"],"summary":"Send add-on access request notification to System/Tenant administrators (sendAddonAccessRequest)","description":"Send add-on access request notification by Tenant Administrator or Customer User to System/Tenant administrators.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"sendAddonAccessRequest","parameters":[{"name":"addonType","in":"path","description":"Addon type","required":true,"schema":{"type":"string","enum":["EDGE","TRENDZ","WHITE_LABELING"]}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/sendAddonAccessError/{addonType}":{"post":{"tags":["notification-controller"],"summary":"Send add-on access error notification to System/Tenant administrators (sendAddonAccessError)","description":"Send add-on access error notification by Tenant Administrator or Customer User to System/Tenant administrators.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"sendAddonAccessError","parameters":[{"name":"addonType","in":"path","description":"Addon type","required":true,"schema":{"type":"string","enum":["EDGE","TRENDZ","WHITE_LABELING"]}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/rule":{"post":{"tags":["notification-rule-controller"],"summary":"Save notification rule (saveNotificationRule)","description":"Creates or updates notification rule. \n\nMandatory properties are `name`, `templateId` (of a template with `notificationType` matching to rule's `triggerType`), `triggerType`, `triggerConfig` and `recipientConfig`. Additionally, you may specify rule `description` inside of `additionalConfig`.\n\nTrigger type of the rule cannot be changed. Available trigger types for tenant: `ENTITY_ACTION`, `ALARM`, `ALARM_COMMENT`, `ALARM_ASSIGNMENT`, `DEVICE_ACTIVITY`, `RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT`.\nFor sysadmin, there are following trigger types available: `ENTITIES_LIMIT`, `API_USAGE_LIMIT`, `NEW_PLATFORM_VERSION`.\n\nHere is an example of notification rule to send notification when a device, asset or customer is created or deleted:\n```json\n{\n  \"name\": \"Entity action\",\n  \"templateId\": {\n    \"entityType\": \"NOTIFICATION_TEMPLATE\",\n    \"id\": \"32117320-d785-11ed-a06c-21dd57dd88ca\"\n  },\n  \"triggerType\": \"ENTITY_ACTION\",\n  \"triggerConfig\": {\n    \"entityTypes\": [\n      \"CUSTOMER\",\n      \"DEVICE\",\n      \"ASSET\"\n    ],\n    \"created\": true,\n    \"updated\": false,\n    \"deleted\": true,\n    \"triggerType\": \"ENTITY_ACTION\"\n  },\n  \"recipientsConfig\": {\n    \"targets\": [\n      \"320f2930-d785-11ed-a06c-21dd57dd88ca\"\n    ],\n    \"triggerType\": \"ENTITY_ACTION\"\n  },\n  \"additionalConfig\": {\n    \"description\": \"Send notification to tenant admins or customer users when a device, asset or customer is created\"\n  },\n  \"templateName\": \"Entity action notification\",\n  \"deliveryMethods\": [\n    \"WEB\"\n  ]\n}\n```\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveNotificationRule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRule"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRule"}}}}}}},"/api/notification/request":{"post":{"tags":["notification-controller"],"summary":"Create notification request (createNotificationRequest)","description":"Processes notification request.\nMandatory request properties are `targets` (list of targets ids to send notification to), and either `templateId` (existing notification template id) or `template` (to send notification without saving the template).\nOptionally, you can set `sendingDelayInSec` inside the `additionalConfig` field to schedule the notification.\n\nFor each enabled delivery method in the notification template, there must be a target in the `targets` list that supports this delivery method: if you chose `WEB`, `EMAIL` or `SMS` - there must be at least one target in `targets` of `PLATFORM_USERS` type.\nFor `SLACK` delivery method - you need to chose at least one `SLACK` notification target.\n\nNotification request object with `PROCESSING` status will be returned immediately, and the notification sending itself is done asynchronously. After all notifications are sent, the `status` of the request becomes `SENT`. Use `getNotificationRequestById` to see the notification request processing status and some sending stats. \n\nHere is an example of notification request to one target using saved template:\n```json\n{\n  \"templateId\": {\n    \"entityType\": \"NOTIFICATION_TEMPLATE\",\n    \"id\": \"6dbc3670-e4dd-11ed-9401-dbcc5dff78be\"\n  },\n  \"targets\": [\n    \"320e3ed0-d785-11ed-a06c-21dd57dd88ca\"\n  ],\n  \"additionalConfig\": {\n    \"sendingDelayInSec\": 0\n  }\n}\n```\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"createNotificationRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequest"}}}}}}},"/api/notification/request/preview":{"post":{"tags":["notification-controller"],"summary":"Get notification request preview (getNotificationRequestPreview)","description":"Returns preview for notification request.\n\n`processedTemplates` shows how the notifications for each delivery method will look like for the first recipient of the corresponding notification target.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationRequestPreview","parameters":[{"name":"recipientsPreviewSize","in":"query","description":"Amount of the recipients to show in preview","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequestPreview"}}}}}}},"/api/notification/entitiesLimitIncreaseRequest/{entityType}":{"post":{"tags":["notification-controller"],"summary":"Send entity limit increase request notification to System/Tenant administrators (sendEntitiesLimitIncreaseRequest)","description":"Send entity limit increase request notification by Tenant Administrator or Customer User to System/Tenant administrators.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"sendEntitiesLimitIncreaseRequest","parameters":[{"name":"entityType","in":"path","description":"Entity type","required":true,"schema":{"type":"string","enum":["DEVICE","ASSET","CUSTOMER","USER","DASHBOARD","RULE_CHAIN","EDGE","INTEGRATION","CONVERTER","SCHEDULER_EVENT"]}}],"responses":{"200":{"description":"OK"}}}},"/api/noauth/signup":{"post":{"tags":["sign-up-controller"],"summary":"User Sign Up (signUp)","description":"Process user sign up request. Creates the Customer and corresponding User based on self Registration parameters for the domain. See [Self Registration Controller](/swagger-ui.html#/self-registration-controller) for more details.  The result is either 'SUCCESS' or 'INACTIVE_USER_EXISTS'. If Success, the user will receive an email with instruction to activate the account. The content of the email is customizable via the mail templates.","operationId":"signUp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpResult"}}}}}}},"/api/noauth/resetPassword":{"get":{"tags":["auth-controller"],"summary":"Check password reset token (checkResetToken)","description":"Checks the password reset token and forwards user to 'Reset Password' page. If token is valid, returns '303 See Other' (redirect) response code with the correct address of 'Reset Password' page and same 'resetToken' specified in the URL parameters. If token is not valid, returns '409 Conflict'. If token is expired, redirects to error page.","operationId":"checkResetToken","parameters":[{"name":"resetToken","in":"query","description":"The reset token string.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["auth-controller"],"summary":"Reset password (resetPassword)","description":"Checks the password reset token and updates the password. If token is not valid, returns '400 Bad Request'.","operationId":"resetPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/noauth/resetPasswordByEmail":{"post":{"tags":["auth-controller"],"summary":"Request reset password email (requestResetPasswordByEmail)","description":"Request to send the reset password email if the user with specified email address is present in the database. Always return '200 OK' status for security purposes.","operationId":"requestResetPasswordByEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordEmailRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/noauth/resendEmailActivation":{"post":{"tags":["sign-up-controller"],"summary":"Resend Activation Email (resendEmailActivation)","description":"Request to resend the activation email for a user who signed up through this domain or mobile application and has not verified the email yet.","operationId":"resendEmailActivation","parameters":[{"name":"email","in":"query","description":"Email of the user.","required":true,"schema":{"type":"string"},"example":"john.doe@company.com"},{"name":"pkgName","in":"query","description":"Optional package name of the mobile application.","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK"}}}},"/api/noauth/oauth2Clients":{"post":{"tags":["o-auth-2-controller"],"summary":"Get OAuth2 clients (getOAuth2Clients)","description":"Get the list of OAuth2 clients to log in with, available for such domain scheme (HTTP or HTTPS) (if x-forwarded-proto request header is present - the scheme is known from it) and domain name and port (port may be known from x-forwarded-port header)","operationId":"getOAuth2Clients","parameters":[{"name":"pkgName","in":"query","description":"Mobile application package name, to find OAuth2 clients where there is configured mobile application with such package name","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type to search OAuth2 clients for which the usage with this platform type is allowed in the settings. If platform type is not one of allowable values - it will just be ignored","required":false,"schema":{"type":"string","enum":["WEB","ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OAuth2ClientLoginInfo"}}}}}}}},"/api/noauth/cloud/resendEmailActivation":{"post":{"tags":["sign-up-controller"],"operationId":"resendCloudEmailActivation","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}},{"name":"pkgName","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK"}}}},"/api/noauth/cloud/activateByEmailCode":{"post":{"tags":["sign-up-controller"],"operationId":"activateCloudUserByEmailCode","parameters":[{"name":"emailCode","in":"query","required":true,"schema":{"type":"string"}},{"name":"pkgName","in":"query","description":"Optional package name of the mobile application.","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/noauth/activate":{"get":{"tags":["auth-controller"],"summary":"Check Activate User Token (checkActivateToken)","description":"Checks the activation token and forwards user to 'Create Password' page. If token is valid, returns '303 See Other' (redirect) response code with the correct address of 'Create Password' page and same 'activateToken' specified in the URL parameters. If token is not valid, returns '409 Conflict'. If token is expired, redirects to error page.","operationId":"checkActivateToken","parameters":[{"name":"activateToken","in":"query","description":"The activate token string.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["auth-controller"],"summary":"Activate User","description":"Checks the activation token and updates corresponding user password in the database. Now the user may start using his password to login. The response already contains the [JWT](https://jwt.io) activation and refresh tokens, to simplify the user activation flow and avoid asking user to input password again after activation. If token is valid, returns the object that contains [JWT](https://jwt.io/) access and refresh tokens. If token is not valid, returns '400 Bad Request'.","operationId":"activateUser","parameters":[{"name":"sendActivationMail","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivateUserRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/noauth/activateByEmailCode":{"post":{"tags":["sign-up-controller"],"summary":"Activate and login using code from Email (activateUserByEmailCode)","description":"Activate the user using code(link) from the activation email and return the JWT Token. Sends the notification and email about user activation. Checks that user was not activated yet.","operationId":"activateUserByEmailCode","parameters":[{"name":"emailCode","in":"query","description":"Activation token.","required":true,"schema":{"type":"string"}},{"name":"pkgName","in":"query","description":"Optional package name of the mobile application.","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/mobile/qr/settings":{"get":{"tags":["qr-code-settings-controller"],"summary":"Get Mobile application settings (getQrCodeSettings)","description":"The response payload contains configuration for android/iOS applications and platform qr code widget settings.\n\nAvailable for any authorized user. ","operationId":"getQrCodeSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrCodeSettings"}}}}}},"post":{"tags":["qr-code-settings-controller"],"summary":"Create Or Update the Mobile application settings (saveQrCodeSettings)","description":"The request payload contains configuration for android/iOS applications and platform qr code widget settings.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveQrCodeSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrCodeSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrCodeSettings"}}}}}}},"/api/mobile/bundle":{"post":{"tags":["mobile-app-bundle-controller"],"summary":"Save Or update Mobile app bundle (saveMobileAppBundle)","description":"Create or update the Mobile app bundle that represents tha pair of ANDROID and IOS app and mobile settings like oauth2 clients, self-registration and layout configuration.When creating mobile app bundle, platform generates Mobile App Bundle Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Mobile App Bundle Id will be present in the response. Referencing non-existing Mobile App Bundle Id will cause 'Not Found' error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveMobileAppBundle","parameters":[{"name":"oauth2ClientIds","in":"query","description":"A list of oauth2 client ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAppBundle"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAppBundle"}}}}}}},"/api/mobile/app":{"get":{"tags":["mobile-app-controller"],"summary":"Get mobile app infos (getTenantMobileApps)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTenantMobileApps","parameters":[{"name":"platformType","in":"query","description":"Platform type: ANDROID or IOS","required":false,"schema":{"$ref":"#/components/schemas/PlatformType"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on app's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataMobileApp"}}}}}},"post":{"tags":["mobile-app-controller"],"summary":"Save Or update Mobile app (saveMobileApp)","description":"Create or update the Mobile app. When creating mobile app, platform generates Mobile App Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Mobile App Id will be present in the response. Specify existing Mobile App Id to update the mobile app. Referencing non-existing Mobile App Id will cause 'Not Found' error.\n\nThe pair of mobile app package name and platform type is unique for entire platform setup.\n\n\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"saveMobileApp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileApp"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileApp"}}}}}}},"/api/lwm2m/device-credentials":{"post":{"tags":["lwm-2m-controller"],"summary":"Save LwM2M device with credentials (saveLwm2mDeviceWithCredentials)","description":"Deprecated.","operationId":"saveLwm2mDeviceWithCredentials","parameters":[{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}}}}},"/api/license/checkInstance":{"post":{"tags":["edge-controller"],"summary":"Check edge license (checkInstance)","description":"Checks license request from edge service by forwarding request to license portal.","operationId":"checkInstance","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/license/activateInstance":{"post":{"tags":["edge-controller"],"summary":"Activate edge instance (activateInstance)","description":"Activates edge license on license portal.","operationId":"activateInstance","parameters":[{"name":"licenseSecret","in":"query","required":true,"schema":{"type":"string"}},{"name":"releaseDate","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/job/{id}/reprocess":{"post":{"tags":["job-controller"],"summary":"Reprocess job (reprocessJob)","description":"Reprocesses the job. Failures are located at job.result.results list. Platform iterates over this list and submits new tasks for them. Doesn't create new job entity but updates the existing one. Successfully reprocessed job will look the same as completed one.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"reprocessJob","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/job/{id}/cancel":{"post":{"tags":["job-controller"],"summary":"Cancel job (cancelJob)","description":"Cancels the job. The status of the job must be QUEUED, PENDING or RUNNING.\n\nFor a running job, all the tasks not yet processed will be discarded.\n\nSee the example of a cancelled job result in getJobById method description.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"cancelJob","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/integration":{"post":{"tags":["integration-controller"],"summary":"Create Or Update Integration (saveIntegration)","description":"Create or update the Integration. When creating integration, platform generates Integration Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created integration id will be present in the response. Specify existing Integration id to update the integration. Referencing non-existing integration Id will cause 'Not Found' error. Integration configuration is validated for each type of the integration before it can be created. \n\n# Integration Configuration\n\nIntegration configuration (**'configuration'** field) is the JSON object representing the special configuration per integration type with the connectivity fields and other important parameters dependent on the specific integration type. Let's review the configuration object for the MQTT Integration type below. \n\n```json\n{\n   \"clientConfiguration\":{\n      \"host\":\"broker.hivemq.com\",\n      \"port\":1883,\n      \"cleanSession\":false,\n      \"ssl\":false,\n      \"connectTimeoutSec\":10,\n      \"clientId\":\"\",\n      \"maxBytesInMessage\":32368,\n      \"credentials\":{\n         \"type\":\"anonymous\"\n      }\n   },\n   \"downlinkTopicPattern\":\"${topic}\",\n   \"topicFilters\":[\n      {\n         \"filter\":\"tb/mqtt-integration-tutorial/sensors/+/temperature\",\n         \"qos\":0\n      }\n   ],\n   \"metadata\":{\n   }\n}\n```\n\nRemove 'id', 'tenantId' from the request body example (below) to create new Integration entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveIntegration","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}}}}},"/api/integration/check":{"post":{"tags":["integration-controller"],"summary":"Check integration connectivity (checkIntegrationConnection)","description":"Checks if the connection to the integration is established. Throws an error if the connection is not established. Example: Failed to connect to MQTT broker at host:port.","operationId":"checkIntegrationConnection","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/image":{"post":{"tags":["image-controller"],"operationId":"uploadImage","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"title":{"type":"string"},"imageSubType":{"type":"string"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/groupPermission":{"post":{"tags":["group-permission-controller"],"summary":"Create Or Update Group Permission (saveGroupPermission)","description":"Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error.\n\nGroup permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveGroupPermission","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupPermission"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupPermission"}}}}}}},"/api/events/{entityType}/{entityId}":{"post":{"tags":["event-controller"],"summary":"Get Events by event filter (getEventsByFilter)","description":"Returns a page of events for the chosen entity by specifying the event filter. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n# Event Filter Definition\n\n6 different eventFilter objects could be set for different event types. The eventType field is required. Others are optional. If some of them are set, the filtering will be applied according to them. See the examples below for all the fields used for each event type filtering. \n\nNote,\n\n * 'server' - string value representing the server name, identif   ier or ip address where the platform is running;\n * 'errorStr' - the case insensitive 'contains' filter based on error message.\n\n## Error Event Filter\n\n```json\n{\n   \"eventType\":\"ERROR\",\n   \"server\":\"ip-172-31-24-152\",\n   \"method\":\"onClusterEventMsg\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n * 'method' - string value representing the method name when the error happened.\n\n## Lifecycle Event Filter\n\n```json\n{\n   \"eventType\":\"LC_EVENT\",\n   \"server\":\"ip-172-31-24-152\",\n   \"event\":\"STARTED\",\n   \"status\":\"Success\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n * 'event' - string value representing the lifecycle event type;\n * 'status' - string value representing status of the lifecycle event.\n\n## Statistics Event Filter\n\n```json\n{\n   \"eventType\":\"STATS\",\n   \"server\":\"ip-172-31-24-152\",\n   \"messagesProcessed\":10,\n   \"errorsOccurred\":5\n}\n```\n\n * 'messagesProcessed' - the minimum number of successfully processed messages;\n * 'errorsOccurred' - the minimum number of errors occurred during messages processing.\n\n## Debug Rule Node Event Filter\n\n```json\n{\n   \"eventType\":\"DEBUG_RULE_NODE\",\n   \"msgDirectionType\":\"IN\",\n   \"server\":\"ip-172-31-24-152\",\n   \"dataSearch\":\"humidity\",\n   \"metadataSearch\":\"deviceName\",\n   \"entityName\":\"DEVICE\",\n   \"relationType\":\"Success\",\n   \"entityId\":\"de9d54a0-2b7a-11ec-a3cc-23386423d98f\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"isError\":\"false\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n## Debug Rule Chain Event Filter\n\n```json\n{\n   \"eventType\":\"DEBUG_RULE_CHAIN\",\n   \"msgDirectionType\":\"IN\",\n   \"server\":\"ip-172-31-24-152\",\n   \"dataSearch\":\"humidity\",\n   \"metadataSearch\":\"deviceName\",\n   \"entityName\":\"DEVICE\",\n   \"relationType\":\"Success\",\n   \"entityId\":\"de9d54a0-2b7a-11ec-a3cc-23386423d98f\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"isError\":\"false\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n * 'msgDirectionType' - string value representing msg direction type (incoming to entity or outcoming from entity);\n * 'dataSearch' - the case insensitive 'contains' filter based on data (key and value) for the message;\n * 'metadataSearch' - the case insensitive 'contains' filter based on metadata (key and value) for the message;\n * 'entityName' - string value representing the entity type;\n * 'relationType' - string value representing the type of message routing;\n * 'entityId' - string value representing the entity id in the event body (originator of the message);\n * 'msgType' - string value representing the message type;\n * 'isError' - boolean value to filter the errors.\n\n## Debug Calculated Field Event Filter\n\n```json\n{\n   \"eventType\":\"DEBUG_CALCULATED_FIELD\",\n   \"server\":\"ip-172-31-24-152\",\n   \"isError\":\"false\",\n   \"errorStr\":\"Error Message\"\n   \"entityId\":\"cf4b8741-f618-471f-ae08-d881ca7f9fe9\",\n   \"msgId\":\"5cf7d3a0-aee7-40dd-a737-ade05528e7eb\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"arguments\":\"{\n    \"x\": {\n      \"ts\": 1739432016629,\n      \"value\": 20\n    },\n    \"y\": {\n      \"ts\": 1739429717656,\n      \"value\": 12\n    }\n  }\",\n   \"result\":\"{\n    \"x + y\": 32\n  }\",\n}\n```\n\n * 'entityId' - string value representing the entity id in the event body;\n * 'entityType' - string value representing the entity type;\n * 'msgId' - string value representing the message id in the rule engine;\n * 'msgType' - string value representing the message type;\n * 'arguments' - string value representing the arguments that were used in the calculation performed;\n * 'result' - string value representing the result of a calculation;\n * 'isError' - boolean value to filter the errors.\n\n","operationId":"getEventsByFilter","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"tenantId","in":"query","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The value is not used in searching.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["ts","id"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"Timestamp. Events with creation time before it won't be queried.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"Timestamp. Events with creation time after it won't be queried.","required":false,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"A JSON value representing the event filter.","oneOf":[{"$ref":"#/components/schemas/CalculatedFieldDebugEventFilter"},{"$ref":"#/components/schemas/DebugConverterEventFilter"},{"$ref":"#/components/schemas/DebugIntegrationEventFilter"},{"$ref":"#/components/schemas/ErrorEventFilter"},{"$ref":"#/components/schemas/LifeCycleEventFilter"},{"$ref":"#/components/schemas/RawDataEventFilter"},{"$ref":"#/components/schemas/RuleChainDebugEventFilter"},{"$ref":"#/components/schemas/RuleNodeDebugEventFilter"},{"$ref":"#/components/schemas/StatisticsEventFilter"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEventInfo"}}}}}}},"/api/events/{entityType}/{entityId}/clear":{"post":{"tags":["event-controller"],"summary":"Clear Events (clearEvents)","description":"Clears events by filter for specified entity.","operationId":"clearEvents","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"startTime","in":"query","description":"Timestamp. Events with creation time before it won't be queried.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"Timestamp. Events with creation time after it won't be queried.","required":false,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"# Event Filter Definition\n\n6 different eventFilter objects could be set for different event types. The eventType field is required. Others are optional. If some of them are set, the filtering will be applied according to them. See the examples below for all the fields used for each event type filtering. \n\nNote,\n\n * 'server' - string value representing the server name, identif   ier or ip address where the platform is running;\n * 'errorStr' - the case insensitive 'contains' filter based on error message.\n\n## Error Event Filter\n\n```json\n{\n   \"eventType\":\"ERROR\",\n   \"server\":\"ip-172-31-24-152\",\n   \"method\":\"onClusterEventMsg\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n * 'method' - string value representing the method name when the error happened.\n\n## Lifecycle Event Filter\n\n```json\n{\n   \"eventType\":\"LC_EVENT\",\n   \"server\":\"ip-172-31-24-152\",\n   \"event\":\"STARTED\",\n   \"status\":\"Success\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n * 'event' - string value representing the lifecycle event type;\n * 'status' - string value representing status of the lifecycle event.\n\n## Statistics Event Filter\n\n```json\n{\n   \"eventType\":\"STATS\",\n   \"server\":\"ip-172-31-24-152\",\n   \"messagesProcessed\":10,\n   \"errorsOccurred\":5\n}\n```\n\n * 'messagesProcessed' - the minimum number of successfully processed messages;\n * 'errorsOccurred' - the minimum number of errors occurred during messages processing.\n\n## Debug Rule Node Event Filter\n\n```json\n{\n   \"eventType\":\"DEBUG_RULE_NODE\",\n   \"msgDirectionType\":\"IN\",\n   \"server\":\"ip-172-31-24-152\",\n   \"dataSearch\":\"humidity\",\n   \"metadataSearch\":\"deviceName\",\n   \"entityName\":\"DEVICE\",\n   \"relationType\":\"Success\",\n   \"entityId\":\"de9d54a0-2b7a-11ec-a3cc-23386423d98f\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"isError\":\"false\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n## Debug Rule Chain Event Filter\n\n```json\n{\n   \"eventType\":\"DEBUG_RULE_CHAIN\",\n   \"msgDirectionType\":\"IN\",\n   \"server\":\"ip-172-31-24-152\",\n   \"dataSearch\":\"humidity\",\n   \"metadataSearch\":\"deviceName\",\n   \"entityName\":\"DEVICE\",\n   \"relationType\":\"Success\",\n   \"entityId\":\"de9d54a0-2b7a-11ec-a3cc-23386423d98f\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"isError\":\"false\",\n   \"errorStr\":\"Error Message\"\n}\n```\n\n * 'msgDirectionType' - string value representing msg direction type (incoming to entity or outcoming from entity);\n * 'dataSearch' - the case insensitive 'contains' filter based on data (key and value) for the message;\n * 'metadataSearch' - the case insensitive 'contains' filter based on metadata (key and value) for the message;\n * 'entityName' - string value representing the entity type;\n * 'relationType' - string value representing the type of message routing;\n * 'entityId' - string value representing the entity id in the event body (originator of the message);\n * 'msgType' - string value representing the message type;\n * 'isError' - boolean value to filter the errors.\n\n## Debug Calculated Field Event Filter\n\n```json\n{\n   \"eventType\":\"DEBUG_CALCULATED_FIELD\",\n   \"server\":\"ip-172-31-24-152\",\n   \"isError\":\"false\",\n   \"errorStr\":\"Error Message\"\n   \"entityId\":\"cf4b8741-f618-471f-ae08-d881ca7f9fe9\",\n   \"msgId\":\"5cf7d3a0-aee7-40dd-a737-ade05528e7eb\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"arguments\":\"{\n    \"x\": {\n      \"ts\": 1739432016629,\n      \"value\": 20\n    },\n    \"y\": {\n      \"ts\": 1739429717656,\n      \"value\": 12\n    }\n  }\",\n   \"result\":\"{\n    \"x + y\": 32\n  }\",\n}\n```\n\n * 'entityId' - string value representing the entity id in the event body;\n * 'entityType' - string value representing the entity type;\n * 'msgId' - string value representing the message id in the rule engine;\n * 'msgType' - string value representing the message type;\n * 'arguments' - string value representing the arguments that were used in the calculation performed;\n * 'result' - string value representing the result of a calculation;\n * 'isError' - boolean value to filter the errors.\n\n","oneOf":[{"$ref":"#/components/schemas/CalculatedFieldDebugEventFilter"},{"$ref":"#/components/schemas/DebugConverterEventFilter"},{"$ref":"#/components/schemas/DebugIntegrationEventFilter"},{"$ref":"#/components/schemas/ErrorEventFilter"},{"$ref":"#/components/schemas/LifeCycleEventFilter"},{"$ref":"#/components/schemas/RawDataEventFilter"},{"$ref":"#/components/schemas/RuleChainDebugEventFilter"},{"$ref":"#/components/schemas/RuleNodeDebugEventFilter"},{"$ref":"#/components/schemas/StatisticsEventFilter"}]}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/entityViews":{"post":{"tags":["entity-view-controller"],"summary":"Find related entity views (findEntityViewsByQuery)","description":"Returns all entity views that are related to the specific entity. The entity id, relation type, entity view types, depth of the search, and other query parameters defined using complex 'EntityViewSearchQuery' object. See 'Model' tab of the Parameters for more info.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"findEntityViewsByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewSearchQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityView"}}}}}}}},"/api/entityView":{"post":{"tags":["entity-view-controller"],"summary":"Save or update entity view (saveEntityView)","description":"Entity Views limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. Every Entity View references exactly one entity (device or asset) and defines telemetry and attribute keys that will be visible to the assigned Customer. As a Tenant Administrator you are able to create multiple EVs per Device or Asset and assign them to different Customers. See the 'Model' tab for more details.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Entity View entity.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveEntityView","parameters":[{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nameConflictPolicy","in":"query","description":"Optional value of name conflict policy. Possible values: FAIL or UNIQUIFY.  If omitted, FAIL policy is applied. FAIL policy implies exception will be thrown if an entity with the same name already exists.  UNIQUIFY policy appends a suffix to the entity name, if a name conflict occurs.","required":false,"schema":{"$ref":"#/components/schemas/NameConflictPolicy","default":"FAIL"}},{"name":"uniquifySeparator","in":"query","description":"Optional value of name suffix separator used by UNIQUIFY policy. By default, underscore separator is used. For example, strategy is UNIQUIFY, separator is '-'; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-7fsh4f'.","required":false,"schema":{"type":"string","default":"_"}},{"name":"uniquifyStrategy","in":"query","description":"Optional value of uniquify strategy used by UNIQUIFY policy. Possible values: RANDOM or INCREMENTAL. By default, RANDOM strategy is used, which means random alphanumeric string will be added as a suffix to entity name. INCREMENTAL implies the first possible number starting from 1 will be added as a name suffix. For example, strategy is UNIQUIFY, uniquify strategy is INCREMENTAL; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-1.","required":false,"schema":{"$ref":"#/components/schemas/UniquifyStrategy","default":"RANDOM"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityView"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityView"}}}}}}},"/api/entityGroup":{"post":{"tags":["entity-group-controller"],"summary":"Create Or Update Entity Group (saveEntityGroup)","description":"Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. When 'ownerId' is not set (or null), it defaults to the current user's owner (Tenant for tenant admins, Customer for customer users). \n\nEntity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.","operationId":"saveEntityGroup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroup"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}},"/api/entityGroup/{entityGroupId}/{userGroupId}/{roleId}/share":{"post":{"tags":["entity-group-controller"],"summary":"Share the Entity Group with User group (shareEntityGroupToChildOwnerUserGroup)","description":"Share the entity group with the specified user group using the specified role. Unlike the 'shareEntityGroup' API method, this method is designed for sharing 'down' the owner hierarchy and does not require 'WRITE' permission for the shared entity group or the target user group. In particular, it allows the current user to re-share an entity group that was shared with them by the parent owner: for example, a customer user may re-share a tenant-owned dashboard group with a user group of their sub-customer.\n\nThe following security checks are performed:\n\n* the target user group must belong to the current user's owner or to one of its sub-customers;\n* the current user must have the 'SHARE_GROUP' operation granted for the shared entity group: either as a generic permission for the corresponding entity group resource (applies only if the shared entity group belongs to the current user's owner hierarchy), or as a group permission created when the entity group was shared with the current user's user group using a group role that includes the 'SHARE_GROUP' operation;\n* the specified role must be a group role that is readable by the current user, so it must belong to the current user's owner or to one of its sub-customers;\n* the operations of the specified role must be a subset of the operations the current user was granted for the shared entity group (always passes if the current user was granted the 'ALL' operation).\n\nIf the specified role also includes the 'SHARE_GROUP' operation, the members of the target user group will be able to re-share the entity group further down their own owner hierarchy in the same way.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"shareEntityGroupToChildOwnerUserGroup","parameters":[{"name":"entityGroupId","in":"path","description":"ID of the entity group to share","required":true,"schema":{"type":"string"}},{"name":"userGroupId","in":"path","description":"ID of the user group to share the entity group with. The user group must belong to the current user's owner or to one of its sub-customers","required":true,"schema":{"type":"string"}},{"name":"roleId","in":"path","description":"ID of the group role that defines the set of operations to grant to the target user group","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/share":{"post":{"tags":["entity-group-controller"],"summary":"Share the Entity Group (shareEntityGroup)","description":"Share the entity group with certain user group based on the provided Share Group Request. The request is quite flexible and processing of the request involves multiple security checks using platform RBAC feature. Each role in 'roleIds' must be a group role readable by the current user, and each of its operations must be granted to the current user for the entity group or its entities.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.","operationId":"shareEntityGroup","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareGroupRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/makePublic":{"post":{"tags":["entity-group-controller"],"summary":"Make Entity Group Publicly available (makeEntityGroupPublic)","description":"Make the entity group available for non authorized users. Useful for public dashboards that will be embedded into the public websites. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.","operationId":"makeEntityGroupPublic","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/makePrivate":{"post":{"tags":["entity-group-controller"],"summary":"Make Entity Group Private (makeEntityGroupPrivate)","description":"Make the entity group not available for non authorized users. Every group is private by default. This call is useful to hide the group that was previously made public.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.","operationId":"makeEntityGroupPrivate","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/deleteEntities":{"post":{"tags":["entity-group-controller"],"summary":"Remove entities from the group (removeEntitiesFromEntityGroup)","description":"Removes entities from the specified entity group. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'REMOVE_FROM_GROUP' permission for specified group.","operationId":"removeEntitiesFromEntityGroup","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"A list of entity ids","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/dashboards/import":{"post":{"tags":["dashboard-controller"],"summary":"Import Dashboards (importGroupDashboards)","description":"Import the dashboards to specified group.The Dashboard object is a heavyweight object that contains information about the dashboard (e.g. title, image, assigned customers) and also configuration JSON (e.g. layouts, widgets, entity aliases).\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.","operationId":"importGroupDashboards","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"overwrite","in":"query","description":"Overwrite dashboards with the same name","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"JSON array with the dashboard objects","items":{"$ref":"#/components/schemas/Dashboard"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/addEntities":{"post":{"tags":["entity-group-controller"],"summary":"Add entities to the group (addEntitiesToEntityGroup)","description":"Add entities to the specified entity group. This operation is idempotent: entities that are already members of the group are silently ignored. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group.","operationId":"addEntitiesToEntityGroup","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","description":"A list of entity ids","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/entitiesQuery/find":{"post":{"tags":["entity-query-controller"],"summary":"Find Entity Data by Query","description":"Allows to run complex queries over platform entities (devices, assets, customers, etc) based on the combination of main entity filter and multiple key filters. Returns the paginated result of the query that contains requested entity fields and latest values of requested attributes and time series data.\n\n# Query Definition\n\n\n\nMain **entity filter** is mandatory and defines generic search criteria. For example, \"find all devices with profile 'Moisture Sensor'\" or \"Find all devices related to asset 'Building A'\"\n\nOptional **key filters** allow to filter results of the **entity filter** by complex criteria against main entity fields (name, label, type, etc), attributes and telemetry. For example, \"temperature > 20 or temperature< 10\" or \"name starts with 'T', and attribute 'model' is 'T1000', and time series field 'batteryLevel' > 40\".\n\nThe **entity fields** and **latest values** contains list of entity fields and latest attribute/telemetry fields to fetch for each entity.\n\nThe **page link** contains information about the page to fetch and the sort ordering.\n\nLet's review the example:\n\n```json\n{\n  \"entityFilter\": {\n    \"type\": \"entityType\",\n    \"resolveMultiple\": true,\n    \"entityType\": \"DEVICE\"\n  },\n  \"keyFilters\": [\n    {\n      \"key\": {\n        \"type\": \"TIME_SERIES\",\n        \"key\": \"temperature\"\n      },\n      \"valueType\": \"NUMERIC\",\n      \"predicate\": {\n        \"operation\": \"GREATER\",\n        \"value\": {\n          \"defaultValue\": 0,\n          \"dynamicValue\": {\n            \"sourceType\": \"CURRENT_USER\",\n            \"sourceAttribute\": \"temperatureThreshold\",\n            \"inherit\": false\n          }\n        },\n        \"type\": \"NUMERIC\"\n      }\n    }\n  ],\n  \"entityFields\": [\n    {\n      \"type\": \"ENTITY_FIELD\",\n      \"key\": \"name\"\n    },\n    {\n      \"type\": \"ENTITY_FIELD\",\n      \"key\": \"label\"\n    },\n    {\n      \"type\": \"ENTITY_FIELD\",\n      \"key\": \"additionalInfo\"\n    }\n  ],\n  \"latestValues\": [\n    {\n      \"type\": \"ATTRIBUTE\",\n      \"key\": \"model\"\n    },\n    {\n      \"type\": \"TIME_SERIES\",\n      \"key\": \"temperature\"\n    }\n  ],\n  \"pageLink\": {\n    \"page\": 0,\n    \"pageSize\": 10,\n    \"sortOrder\": {\n      \"key\": {\n        \"key\": \"name\",\n        \"type\": \"ENTITY_FIELD\"\n      },\n      \"direction\": \"ASC\"\n    }\n  }\n}\n```\n\n Example mentioned above search all devices which have attribute 'active' set to 'true'. Now let's review available entity filters and key filters syntax:\n\n # Entity Filters\nEntity Filter body depends on the 'type' parameter. Let's review available entity filter types. In fact, they do correspond to available dashboard aliases.\n\n## Single Entity\n\nAllows to filter only one entity based on the id. For example, this entity filter selects certain device:\n\n```json\n{\n  \"type\": \"singleEntity\",\n  \"singleEntity\": {\n    \"id\": \"d521edb0-2a7a-11ec-94eb-213c95f54092\",\n    \"entityType\": \"DEVICE\"\n  }\n}\n```\n\n## Group Entities Filter\n\nAllows to filter multiple entities of the same type using the entity group type and id. For example, this entity filter selects all devices that belong to the group 'e52b0020-2a7a-11ec-94eb-213c95f54092':\n\n```json\n{\n  \"type\": \"entityGroup\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroup\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n}\n```\n\n## Entity List Filter\n\nAllows to filter entities of the same type using their ids. For example, this entity filter selects two devices:\n\n```json\n{\n  \"type\": \"entityList\",\n  \"entityType\": \"DEVICE\",\n  \"entityList\": [\n    \"e6501f30-2a7a-11ec-94eb-213c95f54092\",\n    \"e6657bf0-2a7a-11ec-94eb-213c95f54092\"\n  ]\n}\n```\n\n## Entity Name Filter\n\nAllows to filter entities of the same type using the **'starts with'** expression over entity name. For example, this entity filter selects all devices which name starts with 'Air Quality':\n\n```json\n{\n  \"type\": \"entityName\",\n  \"entityType\": \"DEVICE\",\n  \"entityNameFilter\": \"Air Quality\"\n}\n```\n\n## Entity Type Filter\n\nAllows to filter entities based on their type (CUSTOMER, USER, DASHBOARD, ASSET, DEVICE, etc)For example, this entity filter selects all tenant customers:\n\n```json\n{\n  \"type\": \"entityType\",\n  \"entityType\": \"CUSTOMER\"\n}\n```\n\n## Group List Filter\n\nReturn multiple groups of the same type using specified ids. For example, this entity filter selects 2 device groups (if they are present in the system) with ids 'e52b0020-2a7a-11ec-94eb-213c95f54092' and 'e52b0020-2a7a-11ec-94eb-213c95f54093':\n\n```json\n{\n  \"type\": \"entityGroupList\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroupList\": [\"e52b0020-2a7a-11ec-94eb-213c95f54092\", \"e52b0020-2a7a-11ec-94eb-213c95f54093\"]\n}\n```\n\n## Group Name Filter\n\nAllows to filter entity groups based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all devices which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityGroupName\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroupNameFilter\": \"CAT\"\n}\n```\n\n## Entities by Group Name Filter\n\nAllows to filter entities that belong to group based on the entity type and the group name. Optional parameter 'ownerId' allows you to specify the owner of the group (Tenant or Customer, current user owner by default).For example, this entity filter selects all devices which belong to group 'Water Meters':\n\n```json\n{\n  \"type\": \"entitiesByGroupName\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroupNameFilter\": \"Water Meters\"\n}\n```\n\n Other example, this entity filter selects all devices which belong to group 'Water Meters' which in turn belongs to (sub-)Customer with id 'e52b0020-2a7a-11ec-94eb-213c95f54093': \n\n```json\n{\n  \"type\": \"entitiesByGroupName\",\n  \"ownerId\": {\"entityType\": \"CUSTOMER\",\"id\":\"e52b0020-2a7a-11ec-94eb-213c95f54093\"},\n  \"groupType\": \"DEVICE\",\n  \"entityGroupNameFilter\": \"Water Meters\"\n}\n```\n\n## Entity owner Filter\n\nAllows to fetch owner (Tenant or Customer) of the specified entity. For example, this entity filter selects owner of the device with id 'e52b0020-2a7a-11ec-94eb-213c95f54093':\n\n```json\n{\n  \"type\": \"stateEntityOwner\",\n  \"singleEntity\": {\n    \"id\": \"d521edb0-2a7a-11ec-94eb-213c95f54092\",\n    \"entityType\": \"DEVICE\"\n  }\n}\n```\n\n## Asset Type Filter\n\nAllows to filter assets based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'charging station' assets which name starts with 'Tesla':\n\n```json\n{\n  \"type\": \"assetType\",\n  \"assetType\": \"charging station\",\n  \"assetNameFilter\": \"Tesla\"\n}\n```\n\n## Device Type Filter\n\nAllows to filter devices based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Temperature Sensor' devices which name starts with 'ABC':\n\n```json\n{\n  \"type\": \"deviceType\",\n  \"deviceType\": \"Temperature Sensor\",\n  \"deviceNameFilter\": \"ABC\"\n}\n```\n\n## Edge Type Filter\n\nAllows to filter edge instances based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Factory' edge instances which name starts with 'Nevada':\n\n```json\n{\n  \"type\": \"edgeType\",\n  \"edgeType\": \"Factory\",\n  \"edgeNameFilter\": \"Nevada\"\n}\n```\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```\n\n## Api Usage Filter\n\nAllows to query for Api Usage based on optional customer id. If the customer id is not set, returns current tenant API usage.For example, this entity filter selects the 'Api Usage' entity for customer with id 'e6501f30-2a7a-11ec-94eb-213c95f54092':\n\n```json\n{\n  \"type\": \"apiUsageState\",\n  \"customerId\": {\n    \"id\": \"d521edb0-2a7a-11ec-94eb-213c95f54092\",\n    \"entityType\": \"CUSTOMER\"\n  }\n}\n```\n\n## Relations Query Filter\n\nAllows to filter entities that are related to the provided root entity. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'filter' object allows you to define the relation type and set of acceptable entity types to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only those who match the 'filters'.\n\nFor example, this entity filter selects all devices and assets which are related to the asset with id 'e51de0c0-2a7a-11ec-94eb-213c95f54092':\n\n```json\n{\n  \"type\": \"relationsQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e51de0c0-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 1,\n  \"fetchLastLevelOnly\": false,\n  \"filters\": [\n    {\n      \"relationType\": \"Contains\",\n      \"entityTypes\": [\n        \"DEVICE\",\n        \"ASSET\"\n      ]\n    }\n  ]\n}\n```\n\n## Asset Search Query\n\nAllows to filter assets that are related to the provided root entity. Filters related assets based on the relation type and set of asset types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'assetTypes' defines the type of the asset to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only assets that match 'relationType' and 'assetTypes' conditions.\n\nFor example, this entity filter selects 'charging station' assets which are related to the asset with id 'e51de0c0-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"assetSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e51de0c0-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 1,\n  \"fetchLastLevelOnly\": false,\n  \"relationType\": \"Contains\",\n  \"assetTypes\": [\n    \"charging station\"\n  ]\n}\n```\n\n## Device Search Query\n\nAllows to filter devices that are related to the provided root entity. Filters related devices based on the relation type and set of device types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'deviceTypes' defines the type of the device to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only devices that match 'relationType' and 'deviceTypes' conditions.\n\nFor example, this entity filter selects 'Charging port' and 'Air Quality Sensor' devices which are related to the asset with id 'e52b0020-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"deviceSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 2,\n  \"fetchLastLevelOnly\": true,\n  \"relationType\": \"Contains\",\n  \"deviceTypes\": [\n    \"Air Quality Sensor\",\n    \"Charging port\"\n  ]\n}\n```\n\n## Entity View Query\n\nAllows to filter entity views that are related to the provided root entity. Filters related entity views based on the relation type and set of entity view types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'entityViewTypes' defines the type of the entity view to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only devices that match 'relationType' and 'deviceTypes' conditions.\n\nFor example, this entity filter selects 'Concrete mixer' entity views which are related to the asset with id 'e52b0020-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"entityViewSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 1,\n  \"fetchLastLevelOnly\": false,\n  \"relationType\": \"Contains\",\n  \"entityViewTypes\": [\n    \"Concrete mixer\"\n  ]\n}\n```\n\n## Edge Search Query\n\nAllows to filter edge instances that are related to the provided root entity. Filters related edge instances based on the relation type and set of edge types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'deviceTypes' defines the type of the device to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only devices that match 'relationType' and 'deviceTypes' conditions.\n\nFor example, this entity filter selects 'Factory' edge instances which are related to the asset with id 'e52b0020-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"deviceSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 2,\n  \"fetchLastLevelOnly\": true,\n  \"relationType\": \"Contains\",\n  \"edgeTypes\": [\n    \"Factory\"\n  ]\n}\n```\n\n # Key Filters\nKey Filter allows you to define complex logical expressions over entity field, attribute or latest time series value. The filter is defined using 'key', 'valueType' and 'predicate' objects. Single Entity Query may have zero, one or multiple predicates. If multiple filters are defined, they are evaluated using logical 'AND'. The example below checks that temperature of the entity is above 20 degrees:\n\n```json\n{\n  \"key\": {\n    \"type\": \"TIME_SERIES\",\n    \"key\": \"temperature\"\n  },\n  \"valueType\": \"NUMERIC\",\n  \"predicate\": {\n    \"operation\": \"GREATER\",\n    \"value\": {\n      \"defaultValue\": 20,\n      \"dynamicValue\": null\n    },\n    \"type\": \"NUMERIC\"\n  }\n}\n```\n\n Now let's review 'key', 'valueType' and 'predicate' objects in detail.\n\n## Filter Key\n\nFilter Key defines either entity field, attribute or telemetry. It is a JSON object that consists the key name and type. The following filter key types are supported: \n\n * 'CLIENT_ATTRIBUTE' - used for client attributes; \n * 'SHARED_ATTRIBUTE' - used for shared attributes; \n * 'SERVER_ATTRIBUTE' - used for server attributes; \n * 'ATTRIBUTE' - used for any of the above; \n * 'TIME_SERIES' - used for time series values; \n * 'ENTITY_FIELD' - used for accessing entity fields like 'name', 'label', etc. The list of available fields depends on the entity type; \n * 'ALARM_FIELD' - similar to entity field, but is used in alarm queries only; \n\n\n Let's review the example:\n\n```json\n{\n  \"type\": \"TIME_SERIES\",\n  \"key\": \"temperature\"\n}\n```\n\n## Value Type and Operations\n\nProvides a hint about the data type of the entity field that is defined in the filter key. The value type impacts the list of possible operations that you may use in the corresponding predicate. For example, you may use 'STARTS_WITH' or 'END_WITH', but you can't use 'GREATER_OR_EQUAL' for string values.The following filter value types and corresponding predicate operations are supported: \n\n * 'STRING' - used to filter any 'String' or 'JSON' values. Operations: EQUAL, NOT_EQUAL, STARTS_WITH, ENDS_WITH, CONTAINS, NOT_CONTAINS; \n * 'NUMERIC' - used for 'Long' and 'Double' values. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; \n * 'BOOLEAN' - used for boolean values. Operations: EQUAL, NOT_EQUAL;\n * 'DATE_TIME' - similar to numeric, transforms value to milliseconds since epoch. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; \n\n\n## Filter Predicate\n\nFilter Predicate defines the logical expression to evaluate. The list of available operations depends on the filter value type, see above. Platform supports 4 predicate types: 'STRING', 'NUMERIC', 'BOOLEAN' and 'COMPLEX'. The last one allows to combine multiple operations over one filter key.\n\nSimple predicate example to check 'value < 100': \n\n```json\n{\n  \"operation\": \"LESS\",\n  \"value\": {\n    \"defaultValue\": 100,\n    \"dynamicValue\": null\n  },\n  \"type\": \"NUMERIC\"\n}\n```\n\nComplex predicate example, to check 'value < 10 or value > 20': \n\n```json\n{\n  \"type\": \"COMPLEX\",\n  \"operation\": \"OR\",\n  \"predicates\": [\n    {\n      \"operation\": \"LESS\",\n      \"value\": {\n        \"defaultValue\": 10,\n        \"dynamicValue\": null\n      },\n      \"type\": \"NUMERIC\"\n    },\n    {\n      \"operation\": \"GREATER\",\n      \"value\": {\n        \"defaultValue\": 20,\n        \"dynamicValue\": null\n      },\n      \"type\": \"NUMERIC\"\n    }\n  ]\n}\n```\n\nMore complex predicate example, to check 'value < 10 or (value > 50 && value < 60)': \n\n```json\n{\n  \"type\": \"COMPLEX\",\n  \"operation\": \"OR\",\n  \"predicates\": [\n    {\n      \"operation\": \"LESS\",\n      \"value\": {\n        \"defaultValue\": 10,\n        \"dynamicValue\": null\n      },\n      \"type\": \"NUMERIC\"\n    },\n    {\n      \"type\": \"COMPLEX\",\n      \"operation\": \"AND\",\n      \"predicates\": [\n        {\n          \"operation\": \"GREATER\",\n          \"value\": {\n            \"defaultValue\": 50,\n            \"dynamicValue\": null\n          },\n          \"type\": \"NUMERIC\"\n        },\n        {\n          \"operation\": \"LESS\",\n          \"value\": {\n            \"defaultValue\": 60,\n            \"dynamicValue\": null\n          },\n          \"type\": \"NUMERIC\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n You may also want to replace hardcoded values (for example, temperature > 20) with the more dynamic expression (for example, temperature > 'value of the tenant attribute with key 'temperatureThreshold'). It is possible to use 'dynamicValue' to define attribute of the tenant, customer or user that is performing the API call. See example below: \n\n```json\n{\n  \"operation\": \"GREATER\",\n  \"value\": {\n    \"defaultValue\": 0,\n    \"dynamicValue\": {\n      \"sourceType\": \"CURRENT_USER\",\n      \"sourceAttribute\": \"temperatureThreshold\"\n    }\n  },\n  \"type\": \"NUMERIC\"\n}\n```\n\n Note that you may use 'CURRENT_USER', 'CURRENT_CUSTOMER' and 'CURRENT_TENANT' as a 'sourceType'. The 'defaultValue' is used when the attribute with such a name is not defined for the chosen source.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"findEntityDataByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDataQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityData"}}}}}}},"/api/entitiesQuery/find/keys":{"post":{"tags":["entity-query-controller"],"summary":"Find Available Entity Keys by Query (deprecated)","description":"**Deprecated.** Use the V2 endpoint (`POST /api/v2/entitiesQuery/find/keys`) instead.\n\nReturns unique time series and/or attribute key names from entities matching the query.\n\nExecutes the Entity Data Query to find up to 100 entities, then fetches and aggregates all distinct key names.\n\nPrimarily used for UI features like autocomplete suggestions.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"findAvailableEntityKeysByQuery","parameters":[{"name":"timeseries","in":"query","description":"When true, includes unique time series key names in the response.\nWhen false, the 'timeseries' list will be empty.","required":true,"schema":{"type":"boolean"}},{"name":"attributes","in":"query","description":"When true, includes unique attribute key names in the response.\nWhen false, the 'attribute' list will be empty. Use 'scope' parameter to filter by attribute scope.","required":true,"schema":{"type":"boolean"}},{"name":"scope","in":"query","description":"Filters attribute keys by scope. Only applies when 'attributes' is true.\nIf not specified, returns attribute keys from all scopes.","required":false,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE","CLIENT_SCOPE"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDataQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableEntityKeys"}}}}},"deprecated":true}},"/api/entitiesQuery/count":{"post":{"tags":["entity-query-controller"],"summary":"Count Entities by Query","description":"Allows to run complex queries to search the count of platform entities (devices, assets, customers, etc) based on the combination of main entity filter and multiple key filters. Returns the number of entities that match the query definition.\n\n# Query Definition\n\n\n\nMain **entity filter** is mandatory and defines generic search criteria. For example, \"find all devices with profile 'Moisture Sensor'\" or \"Find all devices related to asset 'Building A'\"\n\nOptional **key filters** allow to filter results of the entity filter by complex criteria against main entity fields (name, label, type, etc), attributes and telemetry. For example, \"temperature > 20 or temperature< 10\" or \"name starts with 'T', and attribute 'model' is 'T1000', and time series field 'batteryLevel' > 40\".\n\nLet's review the example:\n\n```json\n{\n  \"entityFilter\": {\n    \"type\": \"entityType\",\n    \"entityType\": \"DEVICE\"\n  },\n  \"keyFilters\": [\n    {\n      \"key\": {\n        \"type\": \"ATTRIBUTE\",\n        \"key\": \"active\"\n      },\n      \"valueType\": \"BOOLEAN\",\n      \"predicate\": {\n        \"operation\": \"EQUAL\",\n        \"value\": {\n          \"defaultValue\": true,\n          \"dynamicValue\": null\n        },\n        \"type\": \"BOOLEAN\"\n      }\n    }\n  ]\n}\n```\n\n Example mentioned above search all devices which have attribute 'active' set to 'true'. Now let's review available entity filters and key filters syntax:\n\n # Entity Filters\nEntity Filter body depends on the 'type' parameter. Let's review available entity filter types. In fact, they do correspond to available dashboard aliases.\n\n## Single Entity\n\nAllows to filter only one entity based on the id. For example, this entity filter selects certain device:\n\n```json\n{\n  \"type\": \"singleEntity\",\n  \"singleEntity\": {\n    \"id\": \"d521edb0-2a7a-11ec-94eb-213c95f54092\",\n    \"entityType\": \"DEVICE\"\n  }\n}\n```\n\n## Group Entities Filter\n\nAllows to filter multiple entities of the same type using the entity group type and id. For example, this entity filter selects all devices that belong to the group 'e52b0020-2a7a-11ec-94eb-213c95f54092':\n\n```json\n{\n  \"type\": \"entityGroup\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroup\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n}\n```\n\n## Entity List Filter\n\nAllows to filter entities of the same type using their ids. For example, this entity filter selects two devices:\n\n```json\n{\n  \"type\": \"entityList\",\n  \"entityType\": \"DEVICE\",\n  \"entityList\": [\n    \"e6501f30-2a7a-11ec-94eb-213c95f54092\",\n    \"e6657bf0-2a7a-11ec-94eb-213c95f54092\"\n  ]\n}\n```\n\n## Entity Name Filter\n\nAllows to filter entities of the same type using the **'starts with'** expression over entity name. For example, this entity filter selects all devices which name starts with 'Air Quality':\n\n```json\n{\n  \"type\": \"entityName\",\n  \"entityType\": \"DEVICE\",\n  \"entityNameFilter\": \"Air Quality\"\n}\n```\n\n## Entity Type Filter\n\nAllows to filter entities based on their type (CUSTOMER, USER, DASHBOARD, ASSET, DEVICE, etc)For example, this entity filter selects all tenant customers:\n\n```json\n{\n  \"type\": \"entityType\",\n  \"entityType\": \"CUSTOMER\"\n}\n```\n\n## Group List Filter\n\nReturn multiple groups of the same type using specified ids. For example, this entity filter selects 2 device groups (if they are present in the system) with ids 'e52b0020-2a7a-11ec-94eb-213c95f54092' and 'e52b0020-2a7a-11ec-94eb-213c95f54093':\n\n```json\n{\n  \"type\": \"entityGroupList\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroupList\": [\"e52b0020-2a7a-11ec-94eb-213c95f54092\", \"e52b0020-2a7a-11ec-94eb-213c95f54093\"]\n}\n```\n\n## Group Name Filter\n\nAllows to filter entity groups based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all devices which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityGroupName\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroupNameFilter\": \"CAT\"\n}\n```\n\n## Entities by Group Name Filter\n\nAllows to filter entities that belong to group based on the entity type and the group name. Optional parameter 'ownerId' allows you to specify the owner of the group (Tenant or Customer, current user owner by default).For example, this entity filter selects all devices which belong to group 'Water Meters':\n\n```json\n{\n  \"type\": \"entitiesByGroupName\",\n  \"groupType\": \"DEVICE\",\n  \"entityGroupNameFilter\": \"Water Meters\"\n}\n```\n\n Other example, this entity filter selects all devices which belong to group 'Water Meters' which in turn belongs to (sub-)Customer with id 'e52b0020-2a7a-11ec-94eb-213c95f54093': \n\n```json\n{\n  \"type\": \"entitiesByGroupName\",\n  \"ownerId\": {\"entityType\": \"CUSTOMER\",\"id\":\"e52b0020-2a7a-11ec-94eb-213c95f54093\"},\n  \"groupType\": \"DEVICE\",\n  \"entityGroupNameFilter\": \"Water Meters\"\n}\n```\n\n## Entity owner Filter\n\nAllows to fetch owner (Tenant or Customer) of the specified entity. For example, this entity filter selects owner of the device with id 'e52b0020-2a7a-11ec-94eb-213c95f54093':\n\n```json\n{\n  \"type\": \"stateEntityOwner\",\n  \"singleEntity\": {\n    \"id\": \"d521edb0-2a7a-11ec-94eb-213c95f54092\",\n    \"entityType\": \"DEVICE\"\n  }\n}\n```\n\n## Asset Type Filter\n\nAllows to filter assets based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'charging station' assets which name starts with 'Tesla':\n\n```json\n{\n  \"type\": \"assetType\",\n  \"assetType\": \"charging station\",\n  \"assetNameFilter\": \"Tesla\"\n}\n```\n\n## Device Type Filter\n\nAllows to filter devices based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Temperature Sensor' devices which name starts with 'ABC':\n\n```json\n{\n  \"type\": \"deviceType\",\n  \"deviceType\": \"Temperature Sensor\",\n  \"deviceNameFilter\": \"ABC\"\n}\n```\n\n## Edge Type Filter\n\nAllows to filter edge instances based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Factory' edge instances which name starts with 'Nevada':\n\n```json\n{\n  \"type\": \"edgeType\",\n  \"edgeType\": \"Factory\",\n  \"edgeNameFilter\": \"Nevada\"\n}\n```\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```\n\n## Api Usage Filter\n\nAllows to query for Api Usage based on optional customer id. If the customer id is not set, returns current tenant API usage.For example, this entity filter selects the 'Api Usage' entity for customer with id 'e6501f30-2a7a-11ec-94eb-213c95f54092':\n\n```json\n{\n  \"type\": \"apiUsageState\",\n  \"customerId\": {\n    \"id\": \"d521edb0-2a7a-11ec-94eb-213c95f54092\",\n    \"entityType\": \"CUSTOMER\"\n  }\n}\n```\n\n## Relations Query Filter\n\nAllows to filter entities that are related to the provided root entity. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'filter' object allows you to define the relation type and set of acceptable entity types to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only those who match the 'filters'.\n\nFor example, this entity filter selects all devices and assets which are related to the asset with id 'e51de0c0-2a7a-11ec-94eb-213c95f54092':\n\n```json\n{\n  \"type\": \"relationsQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e51de0c0-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 1,\n  \"fetchLastLevelOnly\": false,\n  \"filters\": [\n    {\n      \"relationType\": \"Contains\",\n      \"entityTypes\": [\n        \"DEVICE\",\n        \"ASSET\"\n      ]\n    }\n  ]\n}\n```\n\n## Asset Search Query\n\nAllows to filter assets that are related to the provided root entity. Filters related assets based on the relation type and set of asset types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'assetTypes' defines the type of the asset to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only assets that match 'relationType' and 'assetTypes' conditions.\n\nFor example, this entity filter selects 'charging station' assets which are related to the asset with id 'e51de0c0-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"assetSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e51de0c0-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 1,\n  \"fetchLastLevelOnly\": false,\n  \"relationType\": \"Contains\",\n  \"assetTypes\": [\n    \"charging station\"\n  ]\n}\n```\n\n## Device Search Query\n\nAllows to filter devices that are related to the provided root entity. Filters related devices based on the relation type and set of device types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'deviceTypes' defines the type of the device to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only devices that match 'relationType' and 'deviceTypes' conditions.\n\nFor example, this entity filter selects 'Charging port' and 'Air Quality Sensor' devices which are related to the asset with id 'e52b0020-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"deviceSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 2,\n  \"fetchLastLevelOnly\": true,\n  \"relationType\": \"Contains\",\n  \"deviceTypes\": [\n    \"Air Quality Sensor\",\n    \"Charging port\"\n  ]\n}\n```\n\n## Entity View Query\n\nAllows to filter entity views that are related to the provided root entity. Filters related entity views based on the relation type and set of entity view types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'entityViewTypes' defines the type of the entity view to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only devices that match 'relationType' and 'deviceTypes' conditions.\n\nFor example, this entity filter selects 'Concrete mixer' entity views which are related to the asset with id 'e52b0020-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"entityViewSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 1,\n  \"fetchLastLevelOnly\": false,\n  \"relationType\": \"Contains\",\n  \"entityViewTypes\": [\n    \"Concrete mixer\"\n  ]\n}\n```\n\n## Edge Search Query\n\nAllows to filter edge instances that are related to the provided root entity. Filters related edge instances based on the relation type and set of edge types. Possible direction values are 'TO' and 'FROM'. The 'maxLevel' defines how many relation levels should the query search 'recursively'. Assuming the 'maxLevel' is > 1, the 'fetchLastLevelOnly' defines either to return all related entities or only entities that are on the last level of relations. The 'relationType' defines the type of the relation to search for. The 'deviceTypes' defines the type of the device to search for. The relation query calculates all related entities, even if they are filtered using different relation types, and then extracts only devices that match 'relationType' and 'deviceTypes' conditions.\n\nFor example, this entity filter selects 'Factory' edge instances which are related to the asset with id 'e52b0020-2a7a-11ec-94eb-213c95f54092' using 'Contains' relation:\n\n```json\n{\n  \"type\": \"deviceSearchQuery\",\n  \"rootEntity\": {\n    \"entityType\": \"ASSET\",\n    \"id\": \"e52b0020-2a7a-11ec-94eb-213c95f54092\"\n  },\n  \"direction\": \"FROM\",\n  \"maxLevel\": 2,\n  \"fetchLastLevelOnly\": true,\n  \"relationType\": \"Contains\",\n  \"edgeTypes\": [\n    \"Factory\"\n  ]\n}\n```\n\n # Key Filters\nKey Filter allows you to define complex logical expressions over entity field, attribute or latest time series value. The filter is defined using 'key', 'valueType' and 'predicate' objects. Single Entity Query may have zero, one or multiple predicates. If multiple filters are defined, they are evaluated using logical 'AND'. The example below checks that temperature of the entity is above 20 degrees:\n\n```json\n{\n  \"key\": {\n    \"type\": \"TIME_SERIES\",\n    \"key\": \"temperature\"\n  },\n  \"valueType\": \"NUMERIC\",\n  \"predicate\": {\n    \"operation\": \"GREATER\",\n    \"value\": {\n      \"defaultValue\": 20,\n      \"dynamicValue\": null\n    },\n    \"type\": \"NUMERIC\"\n  }\n}\n```\n\n Now let's review 'key', 'valueType' and 'predicate' objects in detail.\n\n## Filter Key\n\nFilter Key defines either entity field, attribute or telemetry. It is a JSON object that consists the key name and type. The following filter key types are supported: \n\n * 'CLIENT_ATTRIBUTE' - used for client attributes; \n * 'SHARED_ATTRIBUTE' - used for shared attributes; \n * 'SERVER_ATTRIBUTE' - used for server attributes; \n * 'ATTRIBUTE' - used for any of the above; \n * 'TIME_SERIES' - used for time series values; \n * 'ENTITY_FIELD' - used for accessing entity fields like 'name', 'label', etc. The list of available fields depends on the entity type; \n * 'ALARM_FIELD' - similar to entity field, but is used in alarm queries only; \n\n\n Let's review the example:\n\n```json\n{\n  \"type\": \"TIME_SERIES\",\n  \"key\": \"temperature\"\n}\n```\n\n## Value Type and Operations\n\nProvides a hint about the data type of the entity field that is defined in the filter key. The value type impacts the list of possible operations that you may use in the corresponding predicate. For example, you may use 'STARTS_WITH' or 'END_WITH', but you can't use 'GREATER_OR_EQUAL' for string values.The following filter value types and corresponding predicate operations are supported: \n\n * 'STRING' - used to filter any 'String' or 'JSON' values. Operations: EQUAL, NOT_EQUAL, STARTS_WITH, ENDS_WITH, CONTAINS, NOT_CONTAINS; \n * 'NUMERIC' - used for 'Long' and 'Double' values. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; \n * 'BOOLEAN' - used for boolean values. Operations: EQUAL, NOT_EQUAL;\n * 'DATE_TIME' - similar to numeric, transforms value to milliseconds since epoch. Operations: EQUAL, NOT_EQUAL, GREATER, LESS, GREATER_OR_EQUAL, LESS_OR_EQUAL; \n\n\n## Filter Predicate\n\nFilter Predicate defines the logical expression to evaluate. The list of available operations depends on the filter value type, see above. Platform supports 4 predicate types: 'STRING', 'NUMERIC', 'BOOLEAN' and 'COMPLEX'. The last one allows to combine multiple operations over one filter key.\n\nSimple predicate example to check 'value < 100': \n\n```json\n{\n  \"operation\": \"LESS\",\n  \"value\": {\n    \"defaultValue\": 100,\n    \"dynamicValue\": null\n  },\n  \"type\": \"NUMERIC\"\n}\n```\n\nComplex predicate example, to check 'value < 10 or value > 20': \n\n```json\n{\n  \"type\": \"COMPLEX\",\n  \"operation\": \"OR\",\n  \"predicates\": [\n    {\n      \"operation\": \"LESS\",\n      \"value\": {\n        \"defaultValue\": 10,\n        \"dynamicValue\": null\n      },\n      \"type\": \"NUMERIC\"\n    },\n    {\n      \"operation\": \"GREATER\",\n      \"value\": {\n        \"defaultValue\": 20,\n        \"dynamicValue\": null\n      },\n      \"type\": \"NUMERIC\"\n    }\n  ]\n}\n```\n\nMore complex predicate example, to check 'value < 10 or (value > 50 && value < 60)': \n\n```json\n{\n  \"type\": \"COMPLEX\",\n  \"operation\": \"OR\",\n  \"predicates\": [\n    {\n      \"operation\": \"LESS\",\n      \"value\": {\n        \"defaultValue\": 10,\n        \"dynamicValue\": null\n      },\n      \"type\": \"NUMERIC\"\n    },\n    {\n      \"type\": \"COMPLEX\",\n      \"operation\": \"AND\",\n      \"predicates\": [\n        {\n          \"operation\": \"GREATER\",\n          \"value\": {\n            \"defaultValue\": 50,\n            \"dynamicValue\": null\n          },\n          \"type\": \"NUMERIC\"\n        },\n        {\n          \"operation\": \"LESS\",\n          \"value\": {\n            \"defaultValue\": 60,\n            \"dynamicValue\": null\n          },\n          \"type\": \"NUMERIC\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n You may also want to replace hardcoded values (for example, temperature > 20) with the more dynamic expression (for example, temperature > 'value of the tenant attribute with key 'temperatureThreshold'). It is possible to use 'dynamicValue' to define attribute of the tenant, customer or user that is performing the API call. See example below: \n\n```json\n{\n  \"operation\": \"GREATER\",\n  \"value\": {\n    \"defaultValue\": 0,\n    \"dynamicValue\": {\n      \"sourceType\": \"CURRENT_USER\",\n      \"sourceAttribute\": \"temperatureThreshold\"\n    }\n  },\n  \"type\": \"NUMERIC\"\n}\n```\n\n Note that you may use 'CURRENT_USER', 'CURRENT_CUSTOMER' and 'CURRENT_TENANT' as a 'sourceType'. The 'defaultValue' is used when the attribute with such a name is not defined for the chosen source.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"countEntitiesByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityCountQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/entities/vc/version":{"get":{"tags":["entities-version-control-controller"],"summary":"List all versions (listVersions)","description":"Lists all available versions in a branch for all entity types. \nIf specified branch does not exist - empty page data will be returned. The response format is the same as for `listEntityVersions` API method.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"listVersions","parameters":[{"name":"branch","in":"query","description":"The name of the working branch, for example 'master'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity version name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["timestamp"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityVersion"}}}}}},"post":{"tags":["entities-version-control-controller"],"summary":"Save entities version (saveEntitiesVersion)","description":"Creates a new version of entities (or a single entity) by request.\nSupported entity types: CUSTOMER, ASSET, RULE_CHAIN, DASHBOARD, DEVICE_PROFILE, DEVICE, ENTITY_VIEW, WIDGETS_BUNDLE, CONVERTER, INTEGRATION, ROLE and USER group.\n\nThere are two available types of request: `SINGLE_ENTITY` and `COMPLEX`. Each of them contains version name (`versionName`) and name of a branch (`branch`) to create version (commit) in. If specified branch does not exists in a remote repo, then new empty branch will be created. Request of the `SINGLE_ENTITY` type has id of an entity (`entityId`) and additional configuration (`config`) which has following options: \n- `saveRelations` - whether to add inbound and outbound relations of type COMMON to created entity version;\n- `saveAttributes` - to save attributes of server scope (and also shared scope for devices);\n- `saveCredentials` - when saving a version of a device, to add its credentials to the version;\n- `savePermissions` - when saving a user group - to save group permission list;\n- `saveGroupEntities` - when saving an entity group - to save its entities as well.\n\nAn example of a `SINGLE_ENTITY` version create request:\n```json\n{\n  \"type\": \"SINGLE_ENTITY\",\n\n  \"versionName\": \"Version 1.0\",\n  \"branch\": \"dev\",\n\n  \"entityId\": {\n    \"entityType\": \"DEVICE\",\n    \"id\": \"b79448e0-d4f4-11ec-847b-0f432358ab48\"\n  },\n  \"config\": {\n    \"saveRelations\": true,\n    \"saveAttributes\": true,\n    \"saveCredentials\": false\n  }\n}\n```\n\nSecond request type (`COMPLEX`), additionally to `branch` and `versionName`, contains following properties:\n- `entityTypes` - a structure with entity types to export and configuration for each entity type;    this configuration has all the options available for `SINGLE_ENTITY` and additionally has these ones: \n     - `allEntities` and `entityIds` - if you want to save the version of all entities of the entity type         then set `allEntities` param to true, otherwise set it to false and specify `entityIds` -         in case entity type is group entity, list of specific entity groups, or if not - list of entities;\n     - `syncStrategy` - synchronization strategy to use for this entity type: when set to `OVERWRITE`         then the list of remote entities of this type will be overwritten by newly added entities. If set to         `MERGE` - existing remote entities of this entity type will not be removed, new entities will just         be added on top (or existing remote entities will be updated).\n- `syncStrategy` - default synchronization strategy to use when it is not specified for an entity type.\n\nExample for this type of request:\n```json\n{\n  \"type\": \"COMPLEX\",\n\n  \"versionName\": \"Devices and profiles: release 2\",\n  \"branch\": \"master\",\n\n  \"syncStrategy\": \"OVERWRITE\",\n  \"entityTypes\": {\n    \"DEVICE\": {\n      \"syncStrategy\": null,\n      \"allEntities\": true,\n      \"saveRelations\": true,\n      \"saveAttributes\": true,\n      \"saveCredentials\": true\n    },\n    \"DEVICE_PROFILE\": {\n      \"syncStrategy\": \"MERGE\",\n      \"allEntities\": false,\n      \"entityIds\": [\n        \"b79448e0-d4f4-11ec-847b-0f432358ab48\"\n      ],\n      \"saveRelations\": true\n    }\n  }\n}\n```\n\nResponse wil contain generated request UUID, that can be then used to retrieve status of operation via `getVersionCreateRequestStatus`.\n\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveEntitiesVersion","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ComplexVersionCreateRequest"},{"$ref":"#/components/schemas/SingleEntityVersionCreateRequest"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"uuid"}}}}}}},"/api/entities/vc/entity":{"post":{"tags":["entities-version-control-controller"],"summary":"Load entities version (loadEntitiesVersion)","description":"Loads specific version of remote entities (or single entity) by request. Supported entity types: CUSTOMER, ASSET, RULE_CHAIN, DASHBOARD, DEVICE_PROFILE, DEVICE, ENTITY_VIEW, WIDGETS_BUNDLE, CONVERTER, INTEGRATION, ROLE and USER group.\n\nThere are multiple types of request. Each of them requires branch name (`branch`) and version id (`versionId`). Request of type `SINGLE_ENTITY` is needed to restore a concrete version of a specific entity. It contains id of a remote entity (`externalEntityId`), internal entity id (`internalEntityId`) and additional configuration (`config`):\n- `loadRelations` - to update relations list (in case `saveRelations` option was enabled during version creation);\n- `loadAttributes` - to load entity attributes (if `saveAttributes` config option was enabled);\n- `loadCredentials` - to update device credentials (if `saveCredentials` option was enabled during version creation);\n- `loadPermissions` - when loading user group, to update group permission list;\n- `loadGroupEntities` - when loading an entity group, to load its entities as well;\n- `autoGenerateIntegrationKey` - if loading integration version, to autogenerate routing key.\n\nAn example of such request:\n```json\n{\n  \"type\": \"SINGLE_ENTITY\",\n  \n  \"branch\": \"dev\",\n  \"versionId\": \"b3c28d722d328324c7c15b0b30047b0c40011cf7\",\n  \n  \"externalEntityId\": {\n    \"entityType\": \"DEVICE\",\n    \"id\": \"b7944123-d4f4-11ec-847b-0f432358ab48\"\n  },\n  \"config\": {\n    \"loadRelations\": false,\n    \"loadAttributes\": true,\n    \"loadCredentials\": true\n  }\n}\n```\n\nAnother request type (`ENTITY_TYPE`) is needed to load specific version of the whole entity types. It contains a structure with entity types to load and configs for each entity type (`entityTypes`). For each specified entity type, the method will load all remote entities of this type that are present at the version. A config for each entity type contains the same options as in `SINGLE_ENTITY` request type, and additionally contains following options:\n- `removeOtherEntities` - to remove local entities that are not present on the remote - basically to    overwrite local entity type with the remote one;\n- `findExistingEntityByName` - when you are loading some remote entities that are not yet present at this tenant,    try to find existing entity by name and update it rather than create new.\n\nHere is an example of the request to completely restore version of the whole device entity type:\n```json\n{\n  \"type\": \"ENTITY_TYPE\",\n\n  \"branch\": \"dev\",\n  \"versionId\": \"b3c28d722d328324c7c15b0b30047b0c40011cf7\",\n\n  \"entityTypes\": {\n    \"DEVICE\": {\n      \"removeOtherEntities\": true,\n      \"findExistingEntityByName\": false,\n      \"loadRelations\": true,\n      \"loadAttributes\": true,\n      \"loadCredentials\": true\n    }\n  }\n}\n```\n\nThe response will contain generated request UUID that is to be used to check the status of operation via `getVersionLoadRequestStatus`.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"loadEntitiesVersion","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/EntityTypeVersionLoadRequest"},{"$ref":"#/components/schemas/SingleEntityVersionLoadRequest"}]}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"uuid"}}}}}}},"/api/edqs/system/request":{"post":{"tags":["entity-query-controller"],"operationId":"processSystemEdqsRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToCoreEdqsRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/edges":{"get":{"tags":["edge-controller"],"summary":"Get Tenant Edges (getEdges)","description":"Returns a page of edges owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getEdges","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdge"}}}}}},"post":{"tags":["edge-controller"],"summary":"Find related edges (findEdgesByQuery)","description":"Returns all edges that are related to the specific entity. The entity id, relation type, edge types, depth of the search, and other query parameters defined using complex 'EdgeSearchQuery' object. See 'Model' tab of the Parameters for more info.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"findEdgesByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdgeSearchQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Edge"}}}}}}}},"/api/edge":{"post":{"tags":["edge-controller"],"summary":"Create Or Update Edge (saveEdge)","description":"Create or update the Edge. When creating edge, platform generates Edge Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created edge id will be present in the response. Specify existing Edge id to update the edge. Referencing non-existing Edge Id will cause 'Not Found' error.\n\nEdge name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the edge names and non-unique 'label' field for user-friendly visualization purposes.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Edge entity. ","operationId":"saveEdge","parameters":[{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edge"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edge"}}}}}}},"/api/edge/{edgeId}/{ruleChainId}/root":{"post":{"tags":["edge-controller"],"summary":"Set root rule chain for provided edge (setEdgeRootRuleChain)","description":"Change root rule chain of the edge to the new provided rule chain. \nThis operation will send a notification to update root rule chain on remote edge service.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setEdgeRootRuleChain","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edge"}}}}}}},"/api/edge/{edgeId}/schedulerEvent/{schedulerEventId}":{"post":{"tags":["scheduler-event-controller"],"summary":"Assign scheduler event to edge (assignSchedulerEventToEdge)","description":"Creates assignment of an existing scheduler event to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment scheduler event (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once scheduler event will be delivered to edge service, it is going to be available for usage on remote edge instance. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"assignSchedulerEventToEdge","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"schedulerEventId","in":"path","description":"A string value representing the scheduler id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEventInfo"}}}}}},"delete":{"tags":["scheduler-event-controller"],"summary":"Unassign scheduler event from edge (unassignSchedulerEventFromEdge)","description":"Clears assignment of the scheduler event to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove entity group (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove entity group and entities inside this group locally.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"unassignSchedulerEventFromEdge","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"schedulerEventId","in":"path","description":"A string value representing the scheduler id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEventInfo"}}}}}}},"/api/edge/{edgeId}/ruleChain/{ruleChainId}":{"post":{"tags":["rule-chain-controller"],"summary":"Assign rule chain to edge (assignRuleChainToEdge)","description":"Creates assignment of an existing rule chain to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment rule chain (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once rule chain will be delivered to edge service, it's going to start processing messages locally. \n\nOnly rule chain with type 'EDGE' can be assigned to edge.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"assignRuleChainToEdge","parameters":[{"name":"edgeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"ruleChainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}},"delete":{"tags":["rule-chain-controller"],"summary":"Unassign rule chain from edge (unassignRuleChainFromEdge)","description":"Clears assignment of the rule chain to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove rule chain (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove rule chain locally.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"unassignRuleChainFromEdge","parameters":[{"name":"edgeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"ruleChainId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}}},"/api/edge/{edgeId}/integration/{integrationId}":{"post":{"tags":["integration-controller"],"summary":"Assign integration to edge (assignIntegrationToEdge)","description":"Creates assignment of an existing integration edge template to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment integration (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once integration will be delivered to edge service, it's going to start locally. \n\nOnly integration edge template can be assigned to edge.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"assignIntegrationToEdge","parameters":[{"name":"edgeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}}}},"delete":{"tags":["integration-controller"],"summary":"Unassign integration from edge (unassignIntegrationFromEdge)","description":"Clears assignment of the integration to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove integration (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove integration locally.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"unassignIntegrationFromEdge","parameters":[{"name":"edgeId","in":"path","required":true,"schema":{"type":"string"}},{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}}}}},"/api/edge/{edgeId}/entityGroup/{entityGroupId}/{groupType}":{"post":{"tags":["entity-group-controller"],"summary":"Assign entity group to edge (assignEntityGroupToEdge)","description":"Creates assignment of an existing entity group to an instance of The Edge. Assignment works in async way - first, notification event pushed to edge service queue on platform. Second, remote edge service will receive a copy of assignment entity group (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once entity group will be delivered to edge service, edge will request entities of this group to be send to edge. Once entities will be delivered to edge service, they are going to be available for usage on remote edge instance.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"assignEntityGroupToEdge","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"groupType","in":"path","description":"EntityGroup type","required":true,"schema":{"type":"string","enum":["ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD"]}},{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroup"}}}}}},"delete":{"tags":["entity-group-controller"],"summary":"Unassign entity group from edge (unassignEntityGroupFromEdge)","description":"Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove entity group (Edge will receive this instantly, if it's currently connected, or once it's going to be connected to platform). Third, once 'unassign' command will be delivered to edge service, it's going to remove entity group and entities inside this group locally.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"unassignEntityGroupFromEdge","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"groupType","in":"path","description":"EntityGroup type","required":true,"schema":{"type":"string","enum":["ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD"]}},{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroup"}}}}}}},"/api/edge/sync/{edgeId}":{"post":{"tags":["edge-controller"],"summary":"Sync edge (syncEdge)","description":"Starts synchronization process between edge and cloud. \nAll entities that are assigned to particular edge are going to be send to remote edge service.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"syncEdge","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/edge/bulk_import":{"post":{"tags":["edge-controller"],"summary":"Import the bulk of edges (processEdgesBulkImport)","description":"There's an ability to import the bulk of edges using the only .csv file.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"processEdgesBulkImport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportResultEdge"}}}}}}},"/api/domain":{"post":{"tags":["domain-controller"],"summary":"Save or Update Domain (saveDomain)","description":"Create or update the Domain. When creating domain, platform generates Domain Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Domain Id will be present in the response. Specify existing Domain Id to update the domain. Referencing non-existing Domain Id will cause 'Not Found' error.\n\nDomain name is unique for entire platform setup.\n\n\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveDomain","parameters":[{"name":"oauth2ClientIds","in":"query","description":"A list of oauth2 client registration ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}}}}}},"/api/devices":{"get":{"tags":["device-controller"],"summary":"Get Devices By Ids (getDevicesByIds)","description":"Requested devices must be owned by tenant or assigned to customer which user is performing the request. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getDevicesByIds","parameters":[{"name":"deviceIds","in":"query","description":"A list of devices ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Device"}}}}}}},"post":{"tags":["device-controller"],"summary":"Find related devices (findDevicesByQuery)","description":"Returns all devices that are related to the specific entity. The entity id, relation type, device types, depth of the search, and other query parameters defined using complex 'DeviceSearchQuery' object. See 'Model' tab of the Parameters for more info.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"findDevicesByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceSearchQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Device"}}}}}}}},"/api/device":{"post":{"tags":["device-controller"],"summary":"Create Or Update Device (saveDevice)","description":"Create or update the Device. When creating device, platform generates Device Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Device credentials are also generated if not provided in the 'accessToken' request parameter. The newly created device id will be present in the response. Specify existing Device id to update the device. Referencing non-existing device Id will cause 'Not Found' error.\n\nDevice name is unique in the scope of tenant. Use unique identifiers like MAC or IMEI for the device names and non-unique 'label' field for user-friendly visualization purposes.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveDevice","parameters":[{"name":"accessToken","in":"query","description":"Optional value of the device credentials to be used during device creation. If omitted, access token will be auto-generated.","required":false,"schema":{"type":"string"}},{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nameConflictPolicy","in":"query","description":"Optional value of name conflict policy. Possible values: FAIL or UNIQUIFY.  If omitted, FAIL policy is applied. FAIL policy implies exception will be thrown if an entity with the same name already exists.  UNIQUIFY policy appends a suffix to the entity name, if a name conflict occurs.","required":false,"schema":{"$ref":"#/components/schemas/NameConflictPolicy","default":"FAIL"}},{"name":"uniquifySeparator","in":"query","description":"Optional value of name suffix separator used by UNIQUIFY policy. By default, underscore separator is used. For example, strategy is UNIQUIFY, separator is '-'; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-7fsh4f'.","required":false,"schema":{"type":"string","default":"_"}},{"name":"uniquifyStrategy","in":"query","description":"Optional value of uniquify strategy used by UNIQUIFY policy. Possible values: RANDOM or INCREMENTAL. By default, RANDOM strategy is used, which means random alphanumeric string will be added as a suffix to entity name. INCREMENTAL implies the first possible number starting from 1 will be added as a name suffix. For example, strategy is UNIQUIFY, uniquify strategy is INCREMENTAL; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-1.","required":false,"schema":{"$ref":"#/components/schemas/UniquifyStrategy","default":"RANDOM"}}],"requestBody":{"description":"A JSON value representing the device.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}}}}},"/api/deviceProfile":{"post":{"tags":["device-profile-controller"],"summary":"Create Or Update Device Profile (saveDeviceProfile)","description":"Create or update the Device Profile. When creating device profile, platform generates device profile id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created device profile id will be present in the response. Specify existing device profile id to update the device profile. Referencing non-existing device profile Id will cause 'Not Found' error. \n\nDevice profile name is unique in the scope of tenant. Only one 'default' device profile may exist in scope of tenant.\n\n# Device profile data definition\n\nDevice profile data object contains device provision strategy and transport type configuration for device connectivity. Let's review some examples. First one is the default device profile data configuration and second one - the custom one. \n\n```json\n{\n   \"configuration\":{\n      \"type\":\"DEFAULT\"\n   },\n   \"provisionConfiguration\":{\n      \"type\":\"DISABLED\",\n      \"provisionDeviceSecret\":null\n   },\n   \"transportConfiguration\":{\n      \"type\":\"DEFAULT\"\n   }\n}\n```\n\n```json\n{\n   \"configuration\":{\n      \"type\":\"DEFAULT\"\n   },\n   \"provisionConfiguration\":{\n      \"type\":\"ALLOW_CREATE_NEW_DEVICES\",\n      \"provisionDeviceSecret\":\"vaxb9hzqdbz3oqukvomg\"\n   },\n   \"transportConfiguration\":{\n      \"type\":\"MQTT\",\n      \"deviceTelemetryTopic\":\"v1/devices/me/telemetry\",\n      \"deviceAttributesTopic\":\"v1/devices/me/attributes\",\n      \"transportPayloadTypeConfiguration\":{\n         \"transportPayloadType\":\"PROTOBUF\",\n         \"deviceTelemetryProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage telemetry;\\n\\nmessage SensorDataReading {\\n\\n  optional double temperature = 1;\\n  optional double humidity = 2;\\n  InnerObject innerObject = 3;\\n\\n  message InnerObject {\\n    optional string key1 = 1;\\n    optional bool key2 = 2;\\n    optional double key3 = 3;\\n    optional int32 key4 = 4;\\n    optional string key5 = 5;\\n  }\\n}\",\n         \"deviceAttributesProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage attributes;\\n\\nmessage SensorConfiguration {\\n  optional string firmwareVersion = 1;\\n  optional string serialNumber = 2;\\n}\",\n         \"deviceRpcRequestProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage rpc;\\n\\nmessage RpcRequestMsg {\\n  optional string method = 1;\\n  optional int32 requestId = 2;\\n  optional string params = 3;\\n}\",\n         \"deviceRpcResponseProtoSchema\":\"syntax =\\\"proto3\\\";\\npackage rpc;\\n\\nmessage RpcResponseMsg {\\n  optional string payload = 1;\\n}\"\n      }\n   }\n}\n```\n\nLet's review some specific objects examples related to the device profile configuration:# Provision Configuration\n\nThere are 3 types of device provision configuration for the device profile: \n * 'DISABLED';\n * 'ALLOW_CREATE_NEW_DEVICES';\n * 'CHECK_PRE_PROVISIONED_DEVICES'.\n\nPlease refer to the [docs](https://thingsboard.io/docs/user-guide/device-provisioning/) for more details.\n\n# Transport Configuration\n\n5 transport configuration types are available:\n * 'DEFAULT';\n * 'MQTT';\n * 'LWM2M';\n * 'COAP';\n * 'SNMP'.\n\nDefault type supports basic MQTT, HTTP, CoAP and LwM2M transports. Please refer to the [docs](https://thingsboard.io/docs/user-guide/device-profiles/#transport-configuration) for more details about other types.\n\nSee another example of COAP transport configuration below:\n\n```json\n{\n   \"type\":\"COAP\",\n   \"clientSettings\":{\n      \"edrxCycle\":null,\n      \"powerMode\":\"DRX\",\n      \"psmActivityTimer\":null,\n      \"pagingTransmissionWindow\":null\n   },\n   \"coapDeviceTypeConfiguration\":{\n      \"coapDeviceType\":\"DEFAULT\",\n      \"transportPayloadTypeConfiguration\":{\n         \"transportPayloadType\":\"JSON\"\n      }\n   }\n}\n```Remove 'id', 'tenantId' from the request body example (below) to create new Device Profile entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveDeviceProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceProfile"}}}}}}},"/api/deviceProfile/{deviceProfileId}/default":{"post":{"tags":["device-profile-controller"],"summary":"Make Device Profile Default (setDefaultDeviceProfile)","description":"Marks device profile as default within a tenant scope.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setDefaultDeviceProfile","parameters":[{"name":"deviceProfileId","in":"path","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceProfile"}}}}}}},"/api/deviceGroupOtaPackage":{"post":{"tags":["device-group-ota-package-controller"],"operationId":"saveDeviceGroupOtaPackage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupOtaPackage"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupOtaPackage"}}}}}}},"/api/device/credentials":{"post":{"tags":["device-controller"],"summary":"Update device credentials (updateDeviceCredentials)","description":"During device creation, platform generates random 'ACCESS_TOKEN' credentials.\nUse this method to update the device credentials. First use 'getDeviceCredentialsByDeviceId' to get the credentials id and value.\nThen use current method to update the credentials type and value. It is not possible to create multiple device credentials for the same device.\nThe structure of device credentials id and value is simple for the 'ACCESS_TOKEN' but is much more complex for the 'MQTT_BASIC' or 'LWM2M_CREDENTIALS'.\nYou may find the example of device with different type of credentials below: \n\n- Credentials type: **\"Access token\"** with **device ID** and with **device ID** below: \n\n```json\n{\n  \"id\": {\n    \"id\":\"c886a090-168d-11ee-87c9-6f157dbc816a\"\n   },\n  \"deviceId\": {\n    \"id\":\"c5fb3ac0-168d-11ee-87c9-6f157dbc816a\",\n    \"entityType\":\"DEVICE\"\n   },\n  \"credentialsType\": \"ACCESS_TOKEN\",\n  \"credentialsId\": \"6hmxew8pmmzng4e3une4\"\n}\n```\n\n- Credentials type: **\"X509\"** with **device profile ID** below: \n\nNote: **credentialsId** -  format **Sha3Hash**, **certificateValue** - format **PEM** (with \"--BEGIN CERTIFICATE----\" and  -\"----END CERTIFICATE-\").\n\n```json\n{\n  \"id\": {\n    \"id\":\"309bd9c0-14f4-11ee-9fc9-d9b7463abb63\"\n   },\n  \"deviceId\": {\n    \"id\":\"3092b200-14f4-11ee-9fc9-d9b7463abb63\",\n    \"entityType\":\"DEVICE\"\n   },\n  \"credentialsType\": \"X509_CERTIFICATE\",\n  \"credentialsId\": \"6b8adb49015500e51a527acd332b51684ab9b49b4ade03a9582a44c455e2e9b6\",\n  \"credentialsValue\": \"-----BEGIN CERTIFICATE----- MIICMTCCAdegAwIBAgIUUEKxS9hTz4l+oLUMF0LV6TC/gCIwCgYIKoZIzj0EAwIwbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlUHJvZmlsZUNlcnRAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MB4XDTIzMDMyOTE0NTczNloXDTI0MDMyODE0NTczNlowbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlUHJvZmlsZUNlcnRAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECMlWO72krDoUL9FQjUmSCetkhaEGJUfQkdSfkLSNa0GyAEIMbfmzI4zITeapunu4rGet3EMyLydQzuQanBicp6NTMFEwHQYDVR0OBBYEFHpZ78tPnztNii4Da/yCw6mhEIL3MB8GA1UdIwQYMBaAFHpZ78tPnztNii4Da/yCw6mhEIL3MA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSAAwRQIgJ7qyMFqNcwSYkH6o+UlQXzLWfwZbNjVk+aR7foAZNGsCIQDsd7v3WQIGHiArfZeDs1DLEDuV/2h6L+ZNoGNhEKL+1A== -----END CERTIFICATE-----\"\n}\n```\n\n- Credentials type: **\"MQTT_BASIC\"** with **device profile ID** below: \n\n```json\n{\n  \"id\": {\n    \"id\":\"d877ffb0-14f5-11ee-9fc9-d9b7463abb63\"\n   },\n  \"deviceId\": {\n    \"id\":\"d875dcd0-14f5-11ee-9fc9-d9b7463abb63\",\n    \"entityType\":\"DEVICE\"\n   },\n  \"credentialsType\": \"MQTT_BASIC\",\n  \"credentialsValue\": \"{\\\"clientId\\\":\\\"juy03yv4owqxcmqhqtvk\\\",\\\"userName\\\":\\\"ov19fxca0cyjn7lm7w7u\\\",\\\"password\\\":\\\"twy94he114dfi9usyk1o\\\"}\"\n}\n```\n\n- You may find the example of **LwM2M** device and **RPK** credentials below: \n\nNote: LwM2M device - only existing device profile ID (Transport configuration -> Transport type: \"LWM2M\".\n\n```json\n{\n  \"id\": {\n    \"id\":\"e238d4d0-1689-11ee-98c6-1713c1be5a8e\"\n   },\n  \"deviceId\": {\n    \"id\":\"e232e160-1689-11ee-98c6-1713c1be5a8e\",\n    \"entityType\":\"DEVICE\"\n   },\n  \"credentialsType\": \"LWM2M_CREDENTIALS\",\n  \"credentialsId\": \"LwRpk00000000\",\n  \"credentialsValue\":\n       \"{\\\"client\\\":{ \\\"endpoint\\\":\\\"LwRpk00000000\\\", \\\"securityConfigClientMode\\\":\\\"RPK\\\", \\\"key\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEdvBZZ2vQRK9wgDhctj6B1c7bxR3Z0wYg1+YdoYFnVUKWb+rIfTTyYK9tmQJx5Vlb5fxdLnVv1RJOPiwsLIQbAA==\\\"   }, \\\"bootstrap\\\":{ \\\"bootstrapServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}, \\\"lwm2mServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}} }\"\n}\n```\n\nUpdate to real value:\n - 'id' (this is id of Device Credentials ->  \"Get Device Credentials (getDeviceCredentialsByDeviceId)\",\n - 'deviceId.id' (this is id of Device).\nRemove 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"updateDeviceCredentials","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCredentials"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCredentials"}}}}}}},"/api/device/bulk_import":{"post":{"tags":["device-controller"],"summary":"Import the bulk of devices (processDevicesBulkImport)","description":"There's an ability to import the bulk of devices using the only .csv file. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"processDevicesBulkImport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportResultDevice"}}}}}}},"/api/device-with-credentials":{"post":{"tags":["device-controller"],"summary":"Create Device (saveDevice) with credentials ","description":"Create or update the Device. When creating device, platform generates Device Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). Requires to provide the Device Credentials object as well as an existing device profile ID or use \"default\".\nYou may find the example of device with different type of credentials below: \n\n- Credentials type: **\"Access token\"** with **device profile ID** below: \n\n```json\n{\n  \"device\": {\n    \"name\":\"Name_DeviceWithCredantial_AccessToken\",\n    \"label\":\"Label_DeviceWithCredantial_AccessToken\",\n    \"deviceProfileId\":{\n      \"id\":\"5636aba0-1022-11ee-9631-51fb57f69174\",\n      \"entityType\":\"DEVICE_PROFILE\"\n     }\n   },\n  \"credentials\": {\n    \"credentialsType\": \"ACCESS_TOKEN\",\n    \"credentialsId\": \"6hmxew8pmmzng4e3une2\"\n   }\n}\n```\n\n- Credentials type: **\"Access token\"** with  **device profile default** below: \n\n```json\n{\n  \"device\": {\n    \"name\":\"Name_DeviceWithCredantial_AccessToken_Default\",\n    \"label\":\"Label_DeviceWithCredantial_AccessToken_Default\",\n    \"type\": \"default\"\n   },\n  \"credentials\": {\n    \"credentialsType\": \"ACCESS_TOKEN\",\n    \"credentialsId\": \"6hmxew8pmmzng4e3une3\"\n   }\n}\n```\n\n- Credentials type: **\"X509\"** with **device profile ID** below: \n\nNote: **credentialsId** -  format **Sha3Hash**, **certificateValue** - format **PEM** (with \"--BEGIN CERTIFICATE----\" and  -\"----END CERTIFICATE-\").\n\n```json\n{\n  \"device\": {\n    \"name\":\"Name_DeviceWithCredantial_X509_Certificate\",\n    \"label\":\"Label_DeviceWithCredantial_X509_Certificate\",\n    \"deviceProfileId\":{\n      \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\",\n      \"entityType\":\"DEVICE_PROFILE\"\n     }\n   },\n  \"credentials\": {\n    \"credentialsType\": \"X509_CERTIFICATE\",\n    \"credentialsId\": \"84f5911765abba1f96bf4165604e9e90338fc6214081a8e623b6ff9669aedb27\",\n    \"credentialsValue\": \"-----BEGIN CERTIFICATE----- MIICMTCCAdegAwIBAgIUI9dBuwN6pTtK6uZ03rkiCwV4wEYwCgYIKoZIzj0EAwIwbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlQ2VydGlmaWNhdGVAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MB4XDTIzMDMyOTE0NTYxN1oXDTI0MDMyODE0NTYxN1owbjELMAkGA1UEBhMCVVMxETAPBgNVBAgMCE5ldyBZb3JrMRowGAYDVQQKDBFUaGluZ3NCb2FyZCwgSW5jLjEwMC4GA1UEAwwnZGV2aWNlQ2VydGlmaWNhdGVAWDUwOVByb3Zpc2lvblN0cmF0ZWd5MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9Zo791qKQiGNBm11r4ZGxh+w+ossZL3xc46ufq5QckQHP7zkD2XDAcmP5GvdkM1sBFN9AWaCkQfNnWmfERsOOKNTMFEwHQYDVR0OBBYEFFFc5uyCyglQoZiKhzXzMcQ3BKORMB8GA1UdIwQYMBaAFFFc5uyCyglQoZiKhzXzMcQ3BKORMA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwIDSAAwRQIhANbA9CuhoOifZMMmqkpuld+65CR+ItKdXeRAhLMZuccuAiB0FSQB34zMutXrZj1g8Gl5OkE7YryFHbei1z0SveHR8g== -----END CERTIFICATE-----\"\n   }\n}\n```\n\n- Credentials type: **\"MQTT_BASIC\"** with **device profile ID** below: \n\n```json\n{\n  \"device\": {\n    \"name\":\"Name_DeviceWithCredantial_MQTT_Basic\",\n    \"label\":\"Label_DeviceWithCredantial_MQTT_Basic\",\n    \"deviceProfileId\":{\n      \"id\":\"9d9588c0-06c9-11ee-b618-19be30fdeb60\",\n      \"entityType\":\"DEVICE_PROFILE\"\n     }\n   },\n  \"credentials\": {\n    \"credentialsType\": \"MQTT_BASIC\",\n    \"credentialsValue\": \"{\\\"clientId\\\":\\\"5euh5nzm34bjjh1efmlt\\\",\\\"userName\\\":\\\"onasd1lgwasmjl7v2v7h\\\",\\\"password\\\":\\\"b9xtm4ny8kt9zewaga5o\\\"}\"\n   }\n}\n```\n\n- You may find the example of **LwM2M** device and **RPK** credentials below: \n\nNote: LwM2M device - only existing device profile ID (Transport configuration -> Transport type: \"LWM2M\".\n\n```json\n{\n  \"device\": {\n    \"name\":\"Name_LwRpk00000000\",\n    \"label\":\"Label_LwRpk00000000\",\n    \"deviceProfileId\":{\n      \"id\":\"a660bd50-10ef-11ee-8737-b5634e73c779\",\n      \"entityType\":\"DEVICE_PROFILE\"\n     }\n   },\n  \"credentials\": {\n    \"credentialsType\": \"LWM2M_CREDENTIALS\",\n    \"credentialsId\": \"LwRpk00000000\",\n    \"credentialsValue\":\n       \"{\\\"client\\\":{ \\\"endpoint\\\":\\\"LwRpk00000000\\\", \\\"securityConfigClientMode\\\":\\\"RPK\\\", \\\"key\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\"   }, \\\"bootstrap\\\":{ \\\"bootstrapServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}, \\\"lwm2mServer\\\":{ \\\"securityMode\\\":\\\"RPK\\\", \\\"clientPublicKeyOrId\\\":\\\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUEBxNl/RcYJNm8mk91CyVXoIJiROYDlXcSSqK6e5bDHwOW4ZiN2lNnXalyF0Jxw8MbAytnDMERXyAja5VEMeVQ==\\\", \\\"clientSecretKey\\\":\\\"MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgd9GAx7yZW37autew5KZykn4IgRpge/tZSjnudnZJnMahRANCAARQQHE2X9Fxgk2byaT3ULJVeggmJE5gOVdxJKorp7lsMfA5bhmI3aU2ddqXIXQnHDwxsDK2cMwRFfICNrlUQx5V\\\"}} }\"\n   }\n}\n```\n\nRemove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Device entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveDeviceWithCredentials","parameters":[{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nameConflictPolicy","in":"query","description":"Optional value of name conflict policy. Possible values: FAIL or UNIQUIFY.  If omitted, FAIL policy is applied. FAIL policy implies exception will be thrown if an entity with the same name already exists.  UNIQUIFY policy appends a suffix to the entity name, if a name conflict occurs.","required":false,"schema":{"$ref":"#/components/schemas/NameConflictPolicy","default":"FAIL"}},{"name":"uniquifySeparator","in":"query","description":"Optional value of name suffix separator used by UNIQUIFY policy. By default, underscore separator is used. For example, strategy is UNIQUIFY, separator is '-'; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-7fsh4f'.","required":false,"schema":{"type":"string","default":"_"}},{"name":"uniquifyStrategy","in":"query","description":"Optional value of uniquify strategy used by UNIQUIFY policy. Possible values: RANDOM or INCREMENTAL. By default, RANDOM strategy is used, which means random alphanumeric string will be added as a suffix to entity name. INCREMENTAL implies the first possible number starting from 1 will be added as a name suffix. For example, strategy is UNIQUIFY, uniquify strategy is INCREMENTAL; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-1.","required":false,"schema":{"$ref":"#/components/schemas/UniquifyStrategy","default":"RANDOM"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveDeviceWithCredentialsRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}}}}},"/api/dashboard":{"post":{"tags":["dashboard-controller"],"summary":"Create Or Update Dashboard (saveDashboard)","description":"Create or update the Dashboard. When creating dashboard, platform generates Dashboard Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Dashboard id will be present in the response. Specify existing Dashboard id to update the dashboard. Referencing non-existing dashboard Id will cause 'Not Found' error. Only users with 'TENANT_ADMIN') authority may create the dashboards.Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Dashboard entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveDashboard","parameters":[{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON value representing the dashboard.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}}}}},"/api/customer":{"post":{"tags":["customer-controller"],"summary":"Create or update Customer (saveCustomer)","description":"Creates or Updates the Customer. When creating customer, platform generates Customer Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Customer Id will be present in the response. Specify existing Customer Id to update the Customer. Referencing non-existing Customer Id will cause 'Not Found' error.Remove 'id', 'tenantId' from the request body example (below) to create new Customer entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveCustomer","parameters":[{"name":"entityGroupId","in":"query","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity group.","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of string values, separated by comma ',' representing the Entity Group Ids. For example, '784f394c-42b6-435a-983c-b7beff2784f9','a84f394c-42b6-435a-083c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity groups.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nameConflictPolicy","in":"query","description":"Optional value of name conflict policy. Possible values: FAIL or UNIQUIFY.  If omitted, FAIL policy is applied. FAIL policy implies exception will be thrown if an entity with the same name already exists.  UNIQUIFY policy appends a suffix to the entity name, if a name conflict occurs.","required":false,"schema":{"$ref":"#/components/schemas/NameConflictPolicy","default":"FAIL"}},{"name":"uniquifySeparator","in":"query","description":"Optional value of name suffix separator used by UNIQUIFY policy. By default, underscore separator is used. For example, strategy is UNIQUIFY, separator is '-'; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-7fsh4f'.","required":false,"schema":{"type":"string","default":"_"}},{"name":"uniquifyStrategy","in":"query","description":"Optional value of uniquify strategy used by UNIQUIFY policy. Possible values: RANDOM or INCREMENTAL. By default, RANDOM strategy is used, which means random alphanumeric string will be added as a suffix to entity name. INCREMENTAL implies the first possible number starting from 1 will be added as a name suffix. For example, strategy is UNIQUIFY, uniquify strategy is INCREMENTAL; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-1.","required":false,"schema":{"$ref":"#/components/schemas/UniquifyStrategy","default":"RANDOM"}}],"requestBody":{"description":"A JSON value representing the customer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/api/customer/device/{deviceName}/claim":{"post":{"tags":["device-controller"],"summary":"Claim device (claimDevice)","description":"Claiming makes it possible to assign a device to the specific customer using device/server side claiming data (in the form of secret key).To make this happen you have to provide unique device name and optional claiming data (it is needed only for device-side claiming).Once device is claimed, the customer becomes its owner and customer users may access device data as well as control the device. \nIn order to enable claiming devices feature a system parameter security.claim.allowClaimingByDefault should be set to true, otherwise a server-side claimingAllowed attribute with the value true is obligatory for provisioned devices. \nSee official documentation for more details regarding claiming.\n\nAvailable for users with 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'CLAIM_DEVICES' permission for the entity (entities).","operationId":"claimDevice","parameters":[{"name":"deviceName","in":"path","description":"Unique name of the device which is going to be claimed","required":true,"schema":{"type":"string"}},{"name":"subCustomerId","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimResult"}}}}}},"delete":{"tags":["device-controller"],"summary":"Reclaim device (reClaimDevice)","description":"Reclaiming means the device will be unassigned from the customer and the device will be available for claiming again.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'CLAIM_DEVICES' permission for the entity (entities).","operationId":"reClaimDevice","parameters":[{"name":"deviceName","in":"path","description":"Unique name of the device which is going to be reclaimed","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/customer/dashboard/home/info":{"get":{"tags":["dashboard-controller"],"summary":"Get Customer Home Dashboard Info (getCustomerHomeDashboardInfo)","description":"Returns the home dashboard info object that is configured as 'homeDashboardId' parameter in the 'additionalInfo' of the corresponding customer. \n\nAvailable for users with 'CUSTOMER_USER' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getCustomerHomeDashboardInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDashboardInfo"}}}}}},"post":{"tags":["dashboard-controller"],"summary":"Update Customer Home Dashboard Info (setCustomerHomeDashboardInfo)","description":"Update the home dashboard assignment for the current customer. \n\nAvailable for users with 'CUSTOMER_USER' authority.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"setCustomerHomeDashboardInfo","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDashboardInfo"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/customMenu":{"get":{"tags":["custom-menu-controller"],"summary":"Get end-user Custom Menu configuration (getCustomMenu)","description":"Fetch the Custom Menu configuration object for the authorized user. The custom menu is configured in the white labeling parameters and has one of three user scopes:SYSTEM, TENANT, CUSTOMER and four assignee type: NO_ASSIGN, ALL, CUSTOMERS, USERS.There are three default (assignee type: ALL) menus configured on the system level for each scope and if no other menu is configured for user, system configuration of the corresponding scope will be applied.If a custom menu with assignee type ALL is configured on the tenant level, it overrides the menu configuration of the corresponding scope on the system level. If a custom menu with assignee type USER_GROUPS is configured on the tenant level, it overrides default tenant menu.If a custom menu with assignee type CUSTOMERS is configured on tenant level for specific customer, it will be applied to all customer users.If a custom menu with assignee type ALL is configured on the customer level, it overrides the menu assigned on tenant level.If a custom menu with assignee type USER_GROUPS is configured on the customer level, it overrides default customer menu.If a custom menu is assigned to specific user, it overrides all other configuration.","operationId":"getCustomMenu","parameters":[{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenuConfig"}}}}}},"post":{"tags":["custom-menu-controller"],"summary":"Create Custom Menu (createCustomMenu)","description":"The api is designed to create Custom Menu without configuration. Is not applicable for update.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the custom menu with specified id.","operationId":"createCustomMenu","parameters":[{"name":"assignToList","in":"query","description":"A list of entity ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"force","in":"query","description":"Use force if you want to create default menu that conflicts with the existing one (old one will be update NO_ASSIGN assignee type)","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenuInfo"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenu"}}}}}}},"/api/converter":{"post":{"tags":["converter-controller"],"summary":"Create Or Update Converter (saveConverter)","description":"Create or update the Converter. When creating converter, platform generates Converter Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created converter id will be present in the response. Specify existing Converter id to update the converter. Referencing non-existing converter Id will cause 'Not Found' error. Converter name is unique in the scope of tenant. \n\n# Converter Configuration\n\nConverter configuration (**'configuration'** field) is the JSON object that should contain one of two possible fields: **'decoder'** or **'encoder'**. The former is used when the converter has UPLINK type, the latter is used - when DOWNLINK type. It can contain both 'decoder' and 'encoder' fields, when the correct one is specified for the appropriate converter type, another one can be set to 'null'. See the examples of each one below. \n\n## Uplink Converter Configuration\n\n***Default converter may be different, depending on integration type***.\n\n```json\n{\n   \"decoder\":\"// Decode an uplink message from a buffer\\n// payload - array of bytes\\n// metadata - key/value object\\n\\n/** Decoder **/\\n\\n// decode payload to string\\nvar payloadStr = decodeToString(payload);\\n\\n// decode payload to JSON\\n// var data = decodeToJson(payload);\\n\\nvar deviceName = 'Device A';\\nvar deviceType = 'thermostat';\\nvar customerName = 'customer';\\nvar groupName = 'thermostat devices';\\nvar manufacturer = 'Example corporation';\\n// use assetName and assetType instead of deviceName and deviceType\\n// to automatically create assets instead of devices.\\n// var assetName = 'Asset A';\\n// var assetType = 'building';\\n\\n// Result object with device/asset attributes/telemetry data\\nvar result = {\\n// Use deviceName and deviceType or assetName and assetType, but not both.\\n   deviceName: deviceName,\\n   deviceType: deviceType,\\n// assetName: assetName,\\n// assetType: assetType,\\n   customerName: customerName,\\n   groupName: groupName,\\n   contentAwareAttributeKeys: ['manufacturer'],\\n   attributes: {\\n       model: 'Model A',\\n       serialNumber: 'SN111',\\n       integrationName: metadata['integrationName'],\\n       manufacturer: manufacturer\\n   },\\n   telemetry: {\\n       temperature: 42,\\n       humidity: 80,\\n       rawData: payloadStr\\n   }\\n};\\n\\n/** Helper functions **/\\n\\nfunction decodeToString(payload) {\\n   return String.fromCharCode.apply(String, payload);\\n}\\n\\nfunction decodeToJson(payload) {\\n   // covert payload to string.\\n   var str = decodeToString(payload);\\n\\n   // parse string to JSON\\n   var data = JSON.parse(str);\\n   return data;\\n}\\n\\nreturn result;\",\n   \"encoder\":null\n}\n```\n\nDecoder field in the more readable form:\n\n```text\n// Decode an uplink message from a buffer\n// payload - array of bytes\n// metadata - key/value object\n\n/** Decoder **/\n\n// decode payload to string\nvar payloadStr = decodeToString(payload);\n\n// decode payload to JSON\n// var data = decodeToJson(payload);\n\nvar deviceName = 'Device A';\nvar deviceType = 'thermostat';\nvar customerName = 'customer';\nvar groupName = 'thermostat devices';\nvar manufacturer = 'Example corporation';\n// use assetName and assetType instead of deviceName and deviceType\n// to automatically create assets instead of devices.\n// var assetName = 'Asset A';\n// var assetType = 'building';\n\n// Result object with device/asset attributes/telemetry data\nvar result = {\n// Use deviceName and deviceType or assetName and assetType, but not both.\n   deviceName: deviceName,\n   deviceType: deviceType,\n// assetName: assetName,\n// assetType: assetType,\n   customerName: customerName,\n   groupName: groupName,\n   attributes: {\n       model: 'Model A',\n       serialNumber: 'SN111',\n       integrationName: metadata['integrationName']\n       manufacturer: manufacturer,\n   },\n   telemetry: {\n       temperature: 42,\n       humidity: 80,\n       rawData: payloadStr\n   }\n};\n\n/** Helper functions **/\n\nfunction decodeToString(payload) {\n   return String.fromCharCode.apply(String, payload);\n}\n\nfunction decodeToJson(payload) {\n   // covert payload to string.\n   var str = decodeToString(payload);\n\n   // parse string to JSON\n   var data = JSON.parse(str);\n   return data;\n}\n\nreturn result;\n```\n\n## Downlink Converter Configuration\n\n```json\n{\n   \"decoder\":null,\n   \"encoder\":\"// Encode downlink data from incoming Rule Engine message\\n\\n// msg - JSON message payload downlink message json\\n// msgType - type of message, for ex. 'ATTRIBUTES_UPDATED', 'POST_TELEMETRY_REQUEST', etc.\\n// metadata - list of key-value pairs with additional data about the message\\n// integrationMetadata - list of key-value pairs with additional data defined in Integration executing this converter\\n\\n/** Encoder **/\\n\\nvar data = {};\\n\\n// Process data from incoming message and metadata\\n\\ndata.tempFreq = msg.temperatureUploadFrequency;\\ndata.humFreq = msg.humidityUploadFrequency;\\n\\ndata.devSerialNumber = metadata['ss_serialNumber'];\\n\\n// Result object with encoded downlink payload\\nvar result = {\\n\\n    // downlink data content type: JSON, TEXT or BINARY (base64 format)\\n    contentType: \\\"JSON\\\",\\n\\n    // downlink data\\n    data: JSON.stringify(data),\\n\\n    // Optional metadata object presented in key/value format\\n    metadata: {\\n            topic: metadata['deviceType']+'/'+metadata['deviceName']+'/upload'\\n    }\\n\\n};\\n\\nreturn result;\"\n}\n```\n\nEncoder field in the more readable form:\n\n```text\n// Encode downlink data from incoming Rule Engine message\n\n// msg - JSON message payload downlink message json\n// msgType - type of message, for ex. 'ATTRIBUTES_UPDATED', 'POST_TELEMETRY_REQUEST', etc.\n// metadata - list of key-value pairs with additional data about the message\n// integrationMetadata - list of key-value pairs with additional data defined in Integration executing this converter\n\n/** Encoder **/\n\nvar data = {};\n\n// Process data from incoming message and metadata\n\ndata.tempFreq = msg.temperatureUploadFrequency;\ndata.humFreq = msg.humidityUploadFrequency;\n\ndata.devSerialNumber = metadata['ss_serialNumber'];\n\n// Result object with encoded downlink payload\nvar result = {\n\n    // downlink data content type: JSON, TEXT or BINARY (base64 format)\n    contentType: \"JSON\",\n\n    // downlink data\n    data: JSON.stringify(data),\n\n    // Optional metadata object presented in key/value format\n    metadata: {\n            topic: metadata['deviceType']+'/'+metadata['deviceName']+'/upload'\n    }\n\n};\n\nreturn result;\n```\n\nRemove 'id', 'tenantId' from the request body example (below) to create new converter entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveConverter","requestBody":{"description":"A JSON value representing the converter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Converter"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Converter"}}}}}}},"/api/converter/unwrap/{integrationType}":{"post":{"tags":["converter-controller"],"summary":"Transform input raw payload to the dedicated converter data (unwrapRawPayload)","description":"Returns a JSON object representing the result of the unwrapped incoming raw message. \n\n## Request Body Example\n\n```json\n{\n   \"metadata\":{\n   },\n   \"payload\":\"ewogICAgImRhdGEiOiAiZGF0YSIKfQ==\",\n}\n``` * 'metadata' - integration metadata; \n * 'payload' - JSON object representing the input raw message.\n\n## Response Body Example\n\n * 'metadata' - integration metadata enriched with the data from the input message; \n * 'payload' - base64 string representation of the payload from the unwrapped input message; \n * 'contentType' - string representation payload contentType.","operationId":"unwrapRawPayload","parameters":[{"name":"integrationType","in":"path","description":"A string value representing the integration type. One of the following:\nAPACHE_PULSAR, AWS_IOT, AWS_KINESIS, AWS_SQS, AZURE_EVENT_HUB, AZURE_IOT_HUB, AZURE_SERVICE_BUS, CHIRPSTACK, COAP, CUSTOM, HTTP, IBM_WATSON_IOT, KAFKA, LORIOT, MQTT, OCEANCONNECT, OPC_UA, PUB_SUB, RABBITMQ,  SIGFOX,  TCP,  THINGPARK,  TMOBILE_IOT_CDP,  TPE,  TTI,  TTN,  TUYA,  UDP","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}}],"requestBody":{"description":"A JSON value representing the input message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/converter/testUpLink":{"post":{"tags":["converter-controller"],"summary":"Test converter function (testUpLinkConverter)","description":"Returns a JSON object representing the result of the processed incoming message. \n\n## Request Body Example\n\n```json\n{\n   \"metadata\":{\n   },\n   \"payload\":\"ewogICAgImRhdGEiOiAiZGF0YSIKfQ==\",\n   \"decoder\":\"// Decode an uplink message from a buffer\\n// payload - array of bytes\\n// metadata - key/value object\\n\\n/** Decoder **/\\n\\n// decode payload to string\\nvar payloadStr = decodeToString(payload);\\n\\n// decode payload to JSON\\n// var data = decodeToJson(payload);\\n\\nvar deviceName = 'Device A';\\nvar deviceType = 'thermostat';\\nvar customerName = 'customer';\\nvar groupName = 'thermostat devices';\\nvar manufacturer = 'Example corporation';\\n// use assetName and assetType instead of deviceName and deviceType\\n// to automatically create assets instead of devices.\\n// var assetName = 'Asset A';\\n// var assetType = 'building';\\n\\n// Result object with device/asset attributes/telemetry data\\nvar result = {\\n// Use deviceName and deviceType or assetName and assetType, but not both.\\n   deviceName: deviceName,\\n   deviceType: deviceType,\\n// assetName: assetName,\\n// assetType: assetType,\\n   customerName: customerName,\\n   groupName: groupName,\\n   attributes: {\\n       model: 'Model A',\\n       serialNumber: 'SN111',\\n       integrationName: metadata['integrationName']\\n       manufacturer: manufacturer\\n   },\\n   telemetry: {\\n       temperature: 42,\\n       humidity: 80,\\n       rawData: payloadStr\\n   }\\n};\\n\\n/** Helper functions **/\\n\\nfunction decodeToString(payload) {\\n   return String.fromCharCode.apply(String, payload);\\n}\\n\\nfunction decodeToJson(payload) {\\n   // covert payload to string.\\n   var str = decodeToString(payload);\\n\\n   // parse string to JSON\\n   var data = JSON.parse(str);\\n   return data;\\n}\\n\\nreturn result;\"\n}\n```\n\n * 'metadata' - integration metadata; \n * 'payload' - base64 string representation of the data; \n * 'decoder' - string representation of the decoder configuration; \n * 'converter' - JSON object representing converter.\n\n## Response Body Example\n\n```json\n{\n   \"output\":\"{\\\"deviceName\\\":\\\"Device A\\\",\\\"deviceType\\\":\\\"thermostat\\\",\\\"customerName\\\":\\\"customer\\\",\\\"groupName\\\":\\\"thermostat devices\\\",\\\"attributes\\\":{\\\"model\\\":\\\"Model A\\\",\\\"serialNumber\\\":\\\"SN111\\\"},\\\"telemetry\\\":{\\\"temperature\\\":42,\\\"humidity\\\":80,\\\"rawData\\\":\\\"{\\\\n    \\\\\\\"data\\\\\\\": \\\\\\\"data\\\\\\\"\\\\n}\\\"}}\",\n   \"error\":\"\"\n}\n```\n\n * 'output' - string representation of the output message; \n * 'error' - string representation of the error message. \n","operationId":"testUpLinkConverter","parameters":[{"name":"scriptLang","in":"query","description":"Script language: JS or TBEL","required":false,"schema":{"$ref":"#/components/schemas/ScriptLanguage"}}],"requestBody":{"description":"A JSON value representing the input to the converter function.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/converter/testDownLink":{"post":{"tags":["converter-controller"],"summary":"Test converter function (testDownLinkConverter)","description":"Returns a JSON object representing the result of the processed incoming message. \n\n## Request Body Example\n\n```json\n{\n   \"metadata\":{\n      \"data\":\"40\"\n   },\n   \"msg\":\"{\\n    \\\"temp\\\": 42,\\n    \\\"humidity\\\": 77\\n}\",\n   \"msgType\":\"POST_TELEMETRY_REQUEST\",\n   \"integrationMetadata\":{\n      \"integrationName\":\"Integration\"\n   },\n   \"encoder\":\"// Encode downlink data from incoming Rule Engine message\\n\\n// msg - JSON message payload downlink message json\\n// msgType - type of message, for ex. 'ATTRIBUTES_UPDATED', 'POST_TELEMETRY_REQUEST', etc.\\n// metadata - list of key-value pairs with additional data about the message\\n// integrationMetadata - list of key-value pairs with additional data defined in Integration executing this converter\\n\\n/** Encoder **/\\n\\nvar data = {};\\n\\n// Process data from incoming message and metadata\\n\\ndata.tempValue = msg.temp;\\ndata.humValue = msg.humidity;\\n\\ndata.devSerialNumber = metadata['ss_serialNumber'];\\n\\n// Result object with encoded downlink payload\\nvar result = {\\n\\n    // downlink data content type: JSON, TEXT or BINARY (base64 format)\\n    contentType: \\\"JSON\\\",\\n\\n    // downlink data\\n    data: JSON.stringify(data),\\n\\n    // Optional metadata object presented in key/value format\\n    metadata: {\\n            topic: metadata['deviceType']+'/'+metadata['deviceName']+'/upload'\\n    }\\n\\n};\\n\\nreturn result;\"\n}\n```\n\n * 'metadata' - message metadata pushed from the rule engine; \n * 'msg' - message data pushed from the rule engine; \n * 'msgType' - type of the message pushed from the rule engine; \n * 'integrationMetadata' - integration metadata object; \n * 'encoder' - string representation of the encoder configuration.\n\n## Response Body Example\n\n```json\n{\n   \"contentType\":\"JSON\",\n   \"data\":\"{\\\"tempValue\\\":42,\\\"humValue\\\":77}\",\n   \"metadata\":{\n      \"topic\":\"sensor/Temp Sensor/upload\"\n   }\n}\n```\n\n * 'contentType' - downlink data content type; \n * 'data' - downlink data; \n * 'metadata' - optional metadata object. \n","operationId":"testDownLinkConverter","parameters":[{"name":"scriptLang","in":"query","description":"Script language: JS or TBEL","required":false,"schema":{"$ref":"#/components/schemas/ScriptLanguage"}}],"requestBody":{"description":"A JSON value representing the input to the converter function.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/calculatedField":{"post":{"tags":["calculated-field-controller"],"summary":"Create Or Update Calculated Field (saveCalculatedField)","description":"Creates or Updates the Calculated Field. When creating calculated field, platform generates Calculated Field Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Calculated Field Id will be present in the response. Specify existing Calculated Field Id to update the calculated field. Referencing non-existing Calculated Field Id will cause 'Not Found' error. Remove 'id', 'tenantId' from the request body example (below) to create new Calculated Field entity. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveCalculatedField","requestBody":{"description":"A JSON value representing the calculated field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculatedField"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculatedField"}}}}}}},"/api/calculatedField/testScript":{"post":{"tags":["calculated-field-controller"],"summary":"Test Script expression","description":"Execute the Script expression and return the result. The format of request: \n\n```json\n{\n  \"expression\": \"var temp = 0; foreach(element: temperature.values) {temp += element.value;} var avgTemperature = temp / temperature.values.size(); var adjustedTemperature = avgTemperature + 0.1 * humidity.value; return {\\\"adjustedTemperature\\\": adjustedTemperature};\",\n  \"arguments\": {\n    \"temperature\": {\n      \"type\": \"TS_ROLLING\",\n      \"timeWindow\": {\n        \"startTs\": 1739775630002,\n        \"endTs\": 65432211,\n        \"limit\": 5\n      },\n      \"values\": [\n        { \"ts\": 1739775639851, \"value\": 23 },\n        { \"ts\": 1739775664561, \"value\": 43 },\n        { \"ts\": 1739775713079, \"value\": 15 },\n        { \"ts\": 1739775999522, \"value\": 34 },\n        { \"ts\": 1739776228452, \"value\": 22 }\n      ]\n    },\n    \"humidity\": { \"type\": \"SINGLE_VALUE\", \"ts\": 1739776478057, \"value\": 23 }\n  }\n}\n```\n\n Expected result JSON contains \"output\" and \"error\".\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"testCalculatedFieldScript","requestBody":{"description":"Test calculated field TBEL expression.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/billingEndpoint/tenantSubscriptionCreated":{"post":{"tags":["billing-endpoint-controller"],"operationId":"notifyTenantSubscriptionCreated","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/tenantStateChanged":{"post":{"tags":["billing-endpoint-controller"],"operationId":"notifyTenantStateChanged","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/tenantPlanChanged":{"post":{"tags":["billing-endpoint-controller"],"operationId":"notifyTenantPlanChanged","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/tenantCanUpdatePlan":{"post":{"tags":["billing-endpoint-controller"],"operationId":"checkTenantCanUpdatePlan","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/sendSubscriptionRenewalReminder":{"post":{"tags":["billing-endpoint-controller"],"operationId":"sendSubscriptionRenewalReminderEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionRenewalReminder"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/sendResetPassword":{"post":{"tags":["billing-endpoint-controller"],"operationId":"sendResetPasswordEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/sendPasswordWasReset":{"post":{"tags":["billing-endpoint-controller"],"operationId":"sendPasswordWasResetEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/sendActivation":{"post":{"tags":["billing-endpoint-controller"],"operationId":"sendBillingActivationEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/billingEndpoint/sendAccountActivated":{"post":{"tags":["billing-endpoint-controller"],"operationId":"sendAccountActivatedEmail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/auth/logout":{"post":{"tags":["auth-controller"],"summary":"Logout (logout)","description":"Special API call to record the 'logout' of the user to the Audit Logs. Since platform uses [JWT](https://jwt.io/), the actual logout is the procedure of clearing the [JWT](https://jwt.io/) token on the client side. ","operationId":"logout","responses":{"200":{"description":"OK"}}}},"/api/auth/changePassword":{"post":{"tags":["auth-controller"],"summary":"Change password for current User (changePassword)","description":"Change the password for the User which credentials are used to perform this REST API call. Be aware that previously generated [JWT](https://jwt.io/) tokens will be still valid until they expire.","operationId":"changePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/auth/2fa/verification/send":{"post":{"tags":["two-factor-auth-controller"],"summary":"Request 2FA verification code (requestTwoFaVerificationCode)","description":"Request 2FA verification code.\n\nTo make a request to this endpoint, you need an access token with the scope of PRE_VERIFICATION_TOKEN, which is issued on username/password auth if 2FA is enabled.\n\nThe API method is rate limited (using rate limit config from TwoFactorAuthSettings). Will return a Bad Request error if provider is not configured for usage, and Too Many Requests error if rate limits are exceeded.","operationId":"requestTwoFaVerificationCode","parameters":[{"name":"providerType","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TwoFaProviderType"}}],"responses":{"200":{"description":"OK"}}}},"/api/auth/2fa/verification/check":{"post":{"tags":["two-factor-auth-controller"],"summary":"Check 2FA verification code (checkTwoFaVerificationCode)","description":"Checks 2FA verification code, and if it is correct the method returns a regular access and refresh token pair.\n\nThe API method is rate limited (using rate limit config from TwoFactorAuthSettings), and also will block a user after X unsuccessful verification attempts if such behavior is configured (in TwoFactorAuthSettings).\n\nWill return a Bad Request error if provider is not configured for usage, and Too Many Requests error if rate limits are exceeded.","operationId":"checkTwoFaVerificationCode","parameters":[{"name":"providerType","in":"query","required":true,"schema":{"$ref":"#/components/schemas/TwoFaProviderType"}},{"name":"verificationCode","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/auth/2fa/login":{"post":{"tags":["two-factor-auth-controller"],"summary":"Get regular token pair after successfully configuring 2FA","description":"Checks 2FA is configured, returning token pair on success.","operationId":"authenticateByTwoFaConfigurationToken","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/assets":{"get":{"tags":["asset-controller"],"summary":"Get Assets By Ids (getAssetsByIds)","description":"Requested assets must be owned by tenant or assigned to customer which user is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAssetsByIds","parameters":[{"name":"assetIds","in":"query","description":"A list of asset ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}}}}}},"post":{"tags":["asset-controller"],"summary":"Find related assets (findAssetsByQuery)","description":"Returns all assets that are related to the specific entity. The entity id, relation type, asset types, depth of the search, and other query parameters defined using complex 'AssetSearchQuery' object. See 'Model' tab of the Parameters for more info. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"findAssetsByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetSearchQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Asset"}}}}}}}},"/api/asset":{"post":{"tags":["asset-controller"],"summary":"Create Or Update Asset (saveAsset)","description":"Creates or Updates the Asset. When creating asset, platform generates Asset Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Asset id will be present in the response. Specify existing Asset id to update the asset. Referencing non-existing Asset Id will cause 'Not Found' error. Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Asset entity. \n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveAsset","parameters":[{"name":"entityGroupId","in":"query","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity group.","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of string values, separated by comma ',' representing the Entity Group Ids. For example, '784f394c-42b6-435a-983c-b7beff2784f9','a84f394c-42b6-435a-083c-b7beff2784f9'. If specified, the entity will be added to the corresponding entity groups.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"nameConflictPolicy","in":"query","description":"Optional value of name conflict policy. Possible values: FAIL or UNIQUIFY.  If omitted, FAIL policy is applied. FAIL policy implies exception will be thrown if an entity with the same name already exists.  UNIQUIFY policy appends a suffix to the entity name, if a name conflict occurs.","required":false,"schema":{"$ref":"#/components/schemas/NameConflictPolicy","default":"FAIL"}},{"name":"uniquifySeparator","in":"query","description":"Optional value of name suffix separator used by UNIQUIFY policy. By default, underscore separator is used. For example, strategy is UNIQUIFY, separator is '-'; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-7fsh4f'.","required":false,"schema":{"type":"string","default":"_"}},{"name":"uniquifyStrategy","in":"query","description":"Optional value of uniquify strategy used by UNIQUIFY policy. Possible values: RANDOM or INCREMENTAL. By default, RANDOM strategy is used, which means random alphanumeric string will be added as a suffix to entity name. INCREMENTAL implies the first possible number starting from 1 will be added as a name suffix. For example, strategy is UNIQUIFY, uniquify strategy is INCREMENTAL; if a name conflict occurs for entity name 'test-name', created entity will have name like 'test-name-1.","required":false,"schema":{"$ref":"#/components/schemas/UniquifyStrategy","default":"RANDOM"}}],"requestBody":{"description":"A JSON value representing the asset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}}}},"/api/assetProfile":{"post":{"tags":["asset-profile-controller"],"summary":"Create Or Update Asset Profile (saveAssetProfile)","description":"Create or update the Asset Profile. When creating asset profile, platform generates asset profile id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created asset profile id will be present in the response. Specify existing asset profile id to update the asset profile. Referencing non-existing asset profile Id will cause 'Not Found' error. \n\nAsset profile name is unique in the scope of tenant. Only one 'default' asset profile may exist in scope of tenant. Remove 'id', 'tenantId' from the request body example (below) to create new Asset Profile entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAssetProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProfile"}}}}}}},"/api/assetProfile/{assetProfileId}/default":{"post":{"tags":["asset-profile-controller"],"summary":"Make Asset Profile Default (setDefaultAssetProfile)","description":"Marks asset profile as default within a tenant scope.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setDefaultAssetProfile","parameters":[{"name":"assetProfileId","in":"path","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProfile"}}}}}}},"/api/asset/bulk_import":{"post":{"tags":["asset-controller"],"summary":"Import the bulk of assets (processAssetsBulkImport)","description":"There's an ability to import the bulk of assets using the only .csv file.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"processAssetBulkImport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkImportResultAsset"}}}}}}},"/api/apiKey":{"post":{"tags":["api-key-controller"],"summary":"Save API key for user (saveApiKey)","description":"Creates an API key for the given user and returns the token ONCE as 'ApiKey {value}'.\n\nAvailable for any authorized user. ","operationId":"saveApiKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyInfo"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKey"}}}}}}},"/api/alarmsQuery/find":{"post":{"tags":["entity-query-controller"],"summary":"Find Alarms by Query","description":"This method description defines how Alarm Data Query extends the Entity Data Query. See method 'Find Entity Data by Query' first to get the info about 'Entity Data Query'.\n\n The platform will first search the entities that match the entity and key filters. Then, the platform will use 'Alarm Page Link' to filter the alarms related to those entities. Finally, platform fetch the properties of alarm that are defined in the **'alarmFields'** and combine them with the other entity, attribute and latest time series fields to return the result. \n\n See example of the alarm query below. The query will search first 100 active alarms with type 'Temperature Alarm' or 'Fire Alarm' for any device with current temperature > 0. The query will return combination of the entity fields: name of the device, device model and latest temperature reading and alarms fields: createdTime, type, severity and status: \n\n```json\n{\n  \"entityFilter\": {\n    \"type\": \"entityType\",\n    \"resolveMultiple\": true,\n    \"entityType\": \"DEVICE\"\n  },\n  \"pageLink\": {\n    \"page\": 0,\n    \"pageSize\": 100,\n    \"textSearch\": null,\n    \"searchPropagatedAlarms\": false,\n    \"statusList\": [\n      \"ACTIVE\"\n    ],\n    \"severityList\": [\n      \"CRITICAL\",\n      \"MAJOR\"\n    ],\n    \"typeList\": [\n      \"Temperature Alarm\",\n      \"Fire Alarm\"\n    ],\n    \"sortOrder\": {\n      \"key\": {\n        \"key\": \"createdTime\",\n        \"type\": \"ALARM_FIELD\"\n      },\n      \"direction\": \"DESC\"\n    },\n    \"timeWindow\": 86400000\n  },\n  \"keyFilters\": [\n    {\n      \"key\": {\n        \"type\": \"TIME_SERIES\",\n        \"key\": \"temperature\"\n      },\n      \"valueType\": \"NUMERIC\",\n      \"predicate\": {\n        \"operation\": \"GREATER\",\n        \"value\": {\n          \"defaultValue\": 0,\n          \"dynamicValue\": null\n        },\n        \"type\": \"NUMERIC\"\n      }\n    }\n  ],\n  \"alarmFields\": [\n    {\n      \"type\": \"ALARM_FIELD\",\n      \"key\": \"createdTime\"\n    },\n    {\n      \"type\": \"ALARM_FIELD\",\n      \"key\": \"type\"\n    },\n    {\n      \"type\": \"ALARM_FIELD\",\n      \"key\": \"severity\"\n    },\n    {\n      \"type\": \"ALARM_FIELD\",\n      \"key\": \"status\"\n    }\n  ],\n  \"entityFields\": [\n    {\n      \"type\": \"ENTITY_FIELD\",\n      \"key\": \"name\"\n    }\n  ],\n  \"latestValues\": [\n    {\n      \"type\": \"ATTRIBUTE\",\n      \"key\": \"model\"\n    },\n    {\n      \"type\": \"TIME_SERIES\",\n      \"key\": \"temperature\"\n    }\n  ]\n}\n```","operationId":"findAlarmDataByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmDataQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmData"}}}}}}},"/api/alarmsQuery/count":{"post":{"tags":["entity-query-controller"],"summary":"Count Alarms by Query (countAlarmsByQuery)","description":"Returns the number of alarms that match the query definition.","operationId":"countAlarmsByQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmCountQuery"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/alarm":{"post":{"tags":["alarm-controller"],"summary":"Create or Update Alarm (saveAlarm)","description":"Creates or Updates the Alarm. When creating alarm, platform generates Alarm Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Alarm id will be present in the response. Specify existing Alarm id to update the alarm. Referencing non-existing Alarm Id will cause 'Not Found' error. \n\nPlatform also deduplicate the alarms based on the entity id of originator and alarm 'type'. For example, if the user or system component create the alarm with the type 'HighTemperature' for device 'Device A' the new active alarm is created. If the user tries to create 'HighTemperature' alarm for the same device again, the previous alarm will be updated (the 'end_ts' will be set to current timestamp). If the user clears the alarm (see 'Clear Alarm(clearAlarm)'), than new alarm with the same type and same device may be created. Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Alarm entity. \n\nThe alarm originator is an immutable routing key: when updating an existing alarm, the 'originator' in the request body must match the stored alarm's originator. A request that references an existing alarm id but carries a different originator is treated as a lookup miss and causes a 'Not Found' error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"saveAlarm","requestBody":{"description":"A JSON value representing the alarm.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alarm"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alarm"}}}}}}},"/api/alarm/{alarmId}/comment":{"get":{"tags":["alarm-comment-controller"],"summary":"Get Alarm comments (getAlarmComments)","description":"Returns a page of alarm comments for specified alarm. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAlarmComments","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","id"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmCommentInfo"}}}}}},"post":{"tags":["alarm-comment-controller"],"summary":"Create or update Alarm Comment ","description":"Creates or Updates the Alarm Comment. When creating comment, platform generates Alarm Comment Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Alarm Comment id will be present in the response. Specify existing Alarm Comment id to update the alarm. Referencing non-existing Alarm Comment Id will cause 'Not Found' error. \n\n To create new Alarm comment entity it is enough to specify 'comment' json element with 'text' node, for example: {\"comment\": { \"text\": \"my comment\"}}. \n\n If comment type is not specified the default value 'OTHER' will be saved. If 'alarmId' or 'userId' specified in body it will be ignored.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"saveAlarmComment","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON value representing the comment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmComment"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmComment"}}}}}}},"/api/alarm/{alarmId}/clear":{"post":{"tags":["alarm-controller"],"summary":"Clear Alarm (clearAlarm)","description":"Clear the Alarm. Once cleared, the 'clear_ts' field will be set to current timestamp and special rule chain event 'ALARM_CLEAR' will be generated. Referencing non-existing Alarm Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"clearAlarm","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmInfo"}}}}}}},"/api/alarm/{alarmId}/assign/{assigneeId}":{"post":{"tags":["alarm-controller"],"summary":"Assign/Reassign Alarm (assignAlarm)","description":"Assign the Alarm. Once assigned, the 'assign_ts' field will be set to current timestamp and special rule chain event 'ALARM_ASSIGNED' (or ALARM_REASSIGNED in case of assigning already assigned alarm) will be generated. Referencing non-existing Alarm Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"assignAlarm","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"assigneeId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmInfo"}}}}}}},"/api/alarm/{alarmId}/ack":{"post":{"tags":["alarm-controller"],"summary":"Acknowledge Alarm (ackAlarm)","description":"Acknowledge the Alarm. Once acknowledged, the 'ack_ts' field will be set to current timestamp and special rule chain event 'ALARM_ACK' will be generated. Referencing non-existing Alarm Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).","operationId":"ackAlarm","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmInfo"}}}}}}},"/api/alarm/rule":{"post":{"tags":["alarm-rule-controller"],"summary":"Create Or Update Alarm Rule (saveAlarmRule)","description":"Creates or Updates the Alarm Rule. When creating alarm rule, platform generates Alarm Rule Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Alarm Rule Id will be present in the response. Specify existing Alarm Rule Id to update the alarm rule. Referencing non-existing Alarm Rule Id will cause 'Not Found' error. Remove 'id', 'tenantId' from the request body example (below) to create new Alarm Rule entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAlarmRule","requestBody":{"description":"A JSON value representing the alarm rule.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmRuleDefinition"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmRuleDefinition"}}}}}}},"/api/alarm/rule/testScript":{"post":{"tags":["alarm-rule-controller"],"summary":"Test alarm rule TBEL expression (testAlarmRuleScript)","description":"Execute the alarm rule TBEL condition expression and return the result. Alarm rule expressions must return a boolean value. The format of request: \n\n```json\n{\n  \"expression\": \"return temperature > 50;\",\n  \"arguments\": {\n    \"temperature\": { \"type\": \"SINGLE_VALUE\", \"ts\": 1739776478057, \"value\": 55 }\n  }\n}\n```\n\n Expected result JSON contains \"output\" and \"error\".\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"testAlarmRuleScript","requestBody":{"description":"Test alarm rule TBEL condition expression. The expression must return a boolean value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/tools/resolve-approval":{"post":{"tags":["ai-tool-controller"],"operationId":"resolveToolApproval","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/solution/{solutionId}/{step}/messages":{"post":{"tags":["ai-solution-controller"],"operationId":"sendMessage","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"step","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SolutionStep"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionChatMessage"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/solution/{solutionId}/{step}/chat":{"post":{"tags":["ai-solution-controller"],"operationId":"chat","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"step","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SolutionStep"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}},"deprecated":true}},"/api/ai/solution/{solutionId}/install":{"post":{"tags":["ai-solution-controller"],"operationId":"installSolution","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/solution/{solutionId}/create":{"post":{"tags":["ai-solution-controller"],"operationId":"createSolution","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/solution/start":{"post":{"tags":["ai-solution-controller"],"operationId":"startNew","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/resources":{"post":{"tags":["ai-resource-controller"],"operationId":"uploadAiResource","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/model":{"get":{"tags":["ai-model-controller"],"summary":"Get AI models (getAiModels)","description":"Returns a page of AI models. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAiModels","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the AI model name, provider and model ID.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","provider","modelId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAiModel"}}}}}},"post":{"tags":["ai-model-controller"],"summary":"Create or update AI model (saveAiModel)","description":"Creates or updates an AI model record.\n\n• **Create:** Omit the `id` to create a new record. The platform assigns a UUID to the new record and returns it in the `id` field of the response.\n\n• **Update:** Include an existing `id` to modify that record. If no matching record exists, the API responds with **404 Not Found**.\n\nTenant ID for the AI model will be taken from the authenticated user making the request, regardless of any value provided in the request body.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAiModel","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiModel"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiModel"}}}}}}},"/api/ai/model/{modelUuid}/chat":{"post":{"tags":["ai-model-controller"],"summary":"Send request to a saved AI chat model (sendChatRequestToAiModel)","description":"Submits a single prompt - made up of an optional system message and a required user message - to the AI chat model with the specified `id`, using its saved configuration, and returns either the generated answer or an error envelope. The user must have the 'INVOKE' permission for AI models, and customer users additionally require the model to have customer access enabled. Roles that grant all operations, such as the default 'Customer Administrator' role, include 'INVOKE', so enabling customer access makes the model callable by every customer user with such a role.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"sendChatRequestToAiModel","parameters":[{"name":"modelUuid","in":"path","description":"ID of the AI model record","required":true,"schema":{"type":"string","format":"uuid"},"example":"de7900d4-30e2-11f0-9cd2-0242ac120002"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbChatPrompt"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Failure"},{"$ref":"#/components/schemas/Success"}]}}}}}}},"/api/ai/model/chat":{"post":{"tags":["ai-model-controller"],"summary":"Send request to AI chat model (sendChatRequest)","description":"Submits a single prompt - made up of an optional system message and a required user message - to the specified AI chat model and returns either the generated answer or an error envelope.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"sendChatRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbChatRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/Failure"},{"$ref":"#/components/schemas/Success"}]}}}}}}},"/api/ai/devices/{deviceId}/dashboard":{"post":{"tags":["ai-device-dashboard-controller"],"operationId":"generateDashboard","parameters":[{"name":"deviceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/chats":{"get":{"tags":["ai-chat-controller"],"operationId":"listChats","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"post":{"tags":["ai-chat-controller"],"operationId":"createChat","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/chats/{chatId}/resume":{"post":{"tags":["ai-chat-controller"],"operationId":"resumeChat","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"Accept-Language","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServerSentEventString"}}}}}}}},"/api/ai/chats/{chatId}/messages":{"get":{"tags":["ai-chat-controller"],"operationId":"getChatMessages","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"post":{"tags":["ai-chat-controller"],"operationId":"sendChatMessage","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"Accept-Language","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"200":{"description":"OK","content":{"text/event-stream":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ServerSentEventString"}}}}}}}},"/api/agent":{"post":{"tags":["agent-controller"],"summary":"Create Or Update Agent (saveAgent)","description":"Creates or Updates the Agent. When creating agent, platform generates Agent Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Agent id will be present in the response. Specify existing Agent id to update the agent. Referencing non-existing Agent Id will cause 'Not Found' error. Remove 'id', 'tenantId' and optionally 'customerId' from the request body example (below) to create new Agent entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAgent","parameters":[{"name":"entityGroupId","in":"query","required":false,"schema":{"type":"string"}},{"name":"entityGroupIds","in":"query","description":"A list of entity group ids, separated by comma ','","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"description":"A JSON value representing the agent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}}}}},"/api/agent/{agentId}/upgrade":{"post":{"tags":["agent-controller"],"summary":"Upgrade Agent (upgradeAgent)","description":"Creates an agent-scoped upgrade event that makes the agent replace its own container with the given image. At most one agent upgrade can be active per agent, and it blocks all application events for that agent until it completes.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"upgradeAgent","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpgradeRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppEvent"}}}}}}},"/api/agent/profile":{"post":{"tags":["agent-profile-controller"],"summary":"Create or Update Agent Profile (saveAgentProfile)","description":"Creates or updates the Agent Profile. When an id is not present in the request, a new Agent Profile is created, otherwise the existing one is updated. Optionally synchronizes the agent application profile assignments in the same request: when the 'appProfileIds' parameter is absent, existing assignments are left untouched; when it is present, the assignment set is replaced with the given ids — including an explicitly empty value (e.g. 'appProfileIds='), which removes all assignments.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAgentProfile","parameters":[{"name":"appProfileIds","in":"query","description":"Agent application profile ids to assign to this agent profile. Absent: assignments are not modified. Present: assignments are replaced with the given ids; an explicitly empty value removes all assignments.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfile"}}}}}}},"/api/agent/profile/{agentProfileId}/default":{"post":{"tags":["agent-profile-controller"],"summary":"Make Agent Profile Default (setDefaultAgentProfile)","description":"Marks agent profile as default within a tenant scope.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setDefaultAgentProfile","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfile"}}}}}}},"/api/agent/profile/{agentProfileId}/appProfiles/assign":{"post":{"tags":["agent-profile-controller"],"summary":"Assign Multiple App Profiles to Agent Profile (assignAppProfilesToAgentProfile)","description":"Assigns the given set of agent application profiles to the agent profile in a single request, replacing the previous assignment set. An explicitly empty 'appProfileIds' value (e.g. 'appProfileIds=') removes all assignments.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"assignAppProfilesToAgentProfile","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"appProfileIds","in":"query","description":"Agent application profile ids that replace the current assignment set. An explicitly empty value removes all assignments.","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/profile/{agentProfileId}/appProfile/{applicationProfileId}":{"post":{"tags":["agent-profile-controller"],"summary":"Assign App Profile to Agent Profile (assignAppProfileToAgentProfile)","description":"Assigns the given agent application profile to the agent profile, making it available to applications managed by that agent profile.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"assignAppProfileToAgentProfile","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"applicationProfileId","in":"path","description":"Agent Application Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}},"delete":{"tags":["agent-profile-controller"],"summary":"Unassign App Profile from Agent Profile (unassignAppProfileFromAgentProfile)","description":"Removes the assignment of the given agent application profile from the agent profile.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"unassignAppProfileFromAgentProfile","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"applicationProfileId","in":"path","description":"Agent Application Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/profile/{agentProfileId}/appProfile/{applicationProfileId}/bulk":{"get":{"tags":["agent-profile-controller"],"summary":"Get Bulk Actions for Agent Profile and Application Profile (getAgentProfileAppProfileBulkActions)","description":"Returns a page of bulk actions previously submitted for the given agent profile and application profile pair. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentProfileAppProfileBulkActions","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"applicationProfileId","in":"path","description":"Agent Application Profile Id","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentBulkAction"}}}}}},"post":{"tags":["agent-profile-controller"],"summary":"Bulk Operation (bulkOperation)","description":"Enqueues a bulk operation over the applications of the given agent profile and application profile and returns the created bulk action to track its progress.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"bulkOperation","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"applicationProfileId","in":"path","description":"Agent Application Profile Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBulkAction"}}}}}}},"/api/agent/profile/{agentProfileId}/appProfile/{applicationProfileId}/bulk/preview":{"post":{"tags":["agent-profile-controller"],"summary":"Preview Bulk Operation (previewBulkOperation)","description":"Previews the effect of a bulk operation over the applications of the given agent profile and application profile without enqueuing it, returning the set of affected applications and the resulting actions.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"previewBulkOperation","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"applicationProfileId","in":"path","description":"Agent Application Profile Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkOperationPreview"}}}}}}},"/api/agent/profile/{agentProfileId}/appProfile/{applicationProfileId}/autoDiscovery":{"post":{"tags":["agent-profile-controller"],"summary":"Set App Profile Relates On Auto-Discovery (setAppProfileRelatesOnAutoDiscovery)","description":"Enables or disables automatic assignment of the app profile to new auto-discovered applications with a matching template. Only one app profile per agent profile and template pair may relate on auto-discovery.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"setAppProfileRelatesOnAutoDiscovery","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"applicationProfileId","in":"path","description":"Agent Application Profile Id","required":true,"schema":{"type":"string"}},{"name":"relate","in":"query","description":"Whether the app profile should be auto-assigned to new auto-discovered applications with a matching template","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/app/{agentApplicationId}/relatedEntity/{entityType}/{entityId}":{"post":{"tags":["agent-application-controller"],"summary":"Assign Related Entity to Agent Application (assignRelatedEntityToAgentApp)","description":"Links an Edge or Gateway Device to the specified agent application and re-merges entity credentials into the compose.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"assignRelatedEntityToAgentApp","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"entityType","in":"path","description":"Related entity type (EDGE or DEVICE)","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Related entity id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/api/agent/app/{agentApplicationId}/event":{"post":{"tags":["agent-application-controller"],"summary":"Execute Agent Application Event (createAgentAppEvent)","description":"Creates an event for the specified agent application. The action type determines the operation (UPDATE, DELETE, RESTART, UPGRADE, ROLLBACK). Step inputs can be provided for actions that require them. Returns the created event so the caller can open a progress view.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"createAgentAppEvent","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"A JSON value representing the event request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppEvent"}}}}}}},"/api/agent/app/{agentApplicationId}/event/{agentAppEventId}/cancel":{"post":{"tags":["agent-application-controller"],"summary":"Cancel Agent Application Event (cancelAgentAppEvent)","description":"Force-cancels an in-flight or pending agent application event, marking it as ERROR. Cannot cancel events that are already in a terminal state (FINISHED or ERROR).\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"cancelAgentAppEvent","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"agentAppEventId","in":"path","description":"A string value representing the agent app event id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/app/{agentApplicationId}/detach":{"post":{"tags":["agent-application-controller"],"summary":"Detach Application from Profile (detachFromProfile)","description":"Detaches the application from its profile. The application keeps the effective config it already carries (profile config with its own credentials merged in) and becomes standalone and editable.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"detachFromProfile","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/api/agent/app/{agentApplicationId}/attach/{profileId}":{"post":{"tags":["agent-application-controller"],"summary":"Attach Application to Profile (attachToProfile)","description":"Re-attaches the application to a profile. The application adopts the profile's template version without running any upgrade or downgrade steps. After attachment the profile becomes the source of the config; the app's own credentials are carried over.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"attachToProfile","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"profileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/api/agent/app/profiles/merge/{templateVersion}/preview":{"post":{"tags":["agent-app-profile-controller"],"summary":"Merge template into application profile for preview (mergeAgentAppProfileForPreview)","description":"Merges the specified template into an agent application profile for preview purposes. The compose type determines which compose configuration variant from the template is used. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"mergeAgentAppProfileForPreview","parameters":[{"name":"templateVersion","in":"path","description":"The template version to merge (e.g. '4.3.1.2EDGEPE')","required":true,"schema":{"type":"string"}},{"name":"composeType","in":"query","description":"The compose type to select from the template (e.g. 'monolith', 'microservices')","required":false,"schema":{"type":"string"}},{"name":"actionType","in":"query","description":"The event action this merge previews (e.g. UPGRADE). Drives action-specific merge rules.","required":false,"schema":{"$ref":"#/components/schemas/AgentAppEventActionType"}},{"name":"setHostValues","in":"query","description":"Whether to auto-fill host values (e.g. CLOUD_RPC_HOST) from the platform base URL. Should be true only for the install preview; keep false when previewing the saved compose of an existing profile to preserve user-configured host values.","required":false,"schema":{"type":"boolean","default":false}}],"requestBody":{"description":"Agent application profile to merge template with","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfile"}}}}}}},"/api/agent/app/profile":{"post":{"tags":["agent-app-profile-controller"],"summary":"Create or Update Agent Application Profile (saveAgentAppProfile)","description":"Creates or updates an agent application profile.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAgentAppProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfile"}}}}}}},"/api/agent/app/profile/materialize/{appType}/{templateVersion}":{"post":{"tags":["agent-app-profile-controller"],"summary":"Create Agent Application Profile from template (materializeAgentAppProfile)","description":"Creates an agent application profile from the default configuration of the template with the given app type and version. Used to materialize a predefined (virtual) profile shown in the UI into a real profile on first use. If a profile with the given app type and template version already exists, the existing profile is returned (the oldest one by created time) instead of creating a new one.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"materializeAgentAppProfile","parameters":[{"name":"appType","in":"path","description":"Application type, e.g. 'EDGE', 'GATEWAY', 'GENERIC'","required":true,"schema":{"$ref":"#/components/schemas/AgentApplicationType"}},{"name":"templateVersion","in":"path","description":"The template version to materialize (e.g. '4.3.1.2EDGEPE')","required":true,"schema":{"type":"string"}},{"name":"composeType","in":"query","description":"The compose type to select from the template (e.g. 'in_memory', 'kafka'). Defaults to the template's first compose type.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfile"}}}}}}},"/api/agent/app/merge/{templateVersion}/preview":{"post":{"tags":["agent-application-controller"],"summary":"Merge template into application for preview (mergeAgentApplicationForPreview)","description":"Merges the specified template into an agent application for preview purposes. If no application is provided in the body, a new one is created from the template. The compose type determines which compose configuration variant from the template is used. Optionally provide relatedEntityType and relatedEntityId to auto-fill entity credentials (Edge routing key/secret or Gateway access token) into the compose.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"mergeAgentApplicationForPreview","parameters":[{"name":"templateVersion","in":"path","description":"The template version to merge (e.g. '4.3.1.2EDGEPE')","required":true,"schema":{"type":"string"}},{"name":"appType","in":"query","description":"Application type (EDGE, GATEWAY, GENERIC). Required when no application body is supplied.","required":false,"schema":{"$ref":"#/components/schemas/AgentApplicationType"}},{"name":"composeType","in":"query","description":"The compose type to select from the template (e.g. 'monolith', 'microservices')","required":false,"schema":{"type":"string"}},{"name":"actionType","in":"query","description":"The event action this merge previews (e.g. UPGRADE). Drives action-specific merge rules.","required":false,"schema":{"$ref":"#/components/schemas/AgentAppEventActionType"}},{"name":"setHostValues","in":"query","description":"Whether to auto-fill host values (e.g. CLOUD_RPC_HOST) from the platform base URL. Should be true only for the install preview; keep false when previewing the saved compose of an existing application to preserve user-configured host values.","required":false,"schema":{"type":"boolean","default":false}},{"name":"relatedEntityType","in":"query","description":"Related entity type (EDGE or DEVICE)","required":false,"schema":{"type":"string"}},{"name":"relatedEntityId","in":"query","description":"Related entity id","required":false,"schema":{"type":"string"}}],"requestBody":{"description":"Optional agent application to merge with. If null, a new application is created from the template.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/api/agent/app/event":{"post":{"tags":["agent-application-controller"],"summary":"Install Agent Application (installAgentApp)","description":"Creates a new agent application and an INSTALL event in a single operation. Returns both the created application and the INSTALL event so the caller can open a progress view without a second round-trip. The request body must include the application object.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"installAgentApp","requestBody":{"description":"A JSON value representing the install event request with the application.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppEventRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppInstallResponse"}}}}}}},"/api/admin/settings":{"post":{"tags":["admin-controller"],"summary":"Creates or Updates the Administration Settings (saveAdminSettings)","description":"Creates or Updates the Administration Settings. Platform generates random Administration Settings Id during settings creation. The Administration Settings Id will be present in the response. Specify the Administration Settings Id when you would like to update the Administration Settings. Referencing non-existing Administration Settings Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the 'ADMIN_SETTINGS' (for 'SYS_ADMIN' authority) or 'WHITE_LABELING' (for 'TENANT_ADMIN' authority) resource.","operationId":"saveAdminSettings","requestBody":{"description":"A JSON value representing the Administration Settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettings"}}}}}}},"/api/admin/settings/testSms":{"post":{"tags":["admin-controller"],"summary":"Send test sms (sendTestSms)","description":"Attempts to send test sms to the System Administrator User using SMS Settings and phone number provided as a parameters of the request. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the 'ADMIN_SETTINGS' (for 'SYS_ADMIN' authority) or 'WHITE_LABELING' (for 'TENANT_ADMIN' authority) resource.","operationId":"sendTestSms","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestSmsRequest"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/admin/settings/testMail":{"post":{"tags":["admin-controller"],"summary":"Send test email (sendTestMail)","description":"Attempts to send test email using Mail Settings provided as a parameter. Email is sent to the address specified in the profile of user who is performing the requestYou may change the 'To' email in the user profile of the System/Tenant Administrator. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the 'ADMIN_SETTINGS' (for 'SYS_ADMIN' authority) or 'WHITE_LABELING' (for 'TENANT_ADMIN' authority) resource.","operationId":"sendTestMail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettings"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/admin/securitySettings":{"get":{"tags":["admin-controller"],"summary":"Get the Security Settings object (getSecuritySettings)","description":"Get the Security Settings object that contains password policy, etc.\n\nAvailable for users with 'SYS_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the 'ADMIN_SETTINGS' (for 'SYS_ADMIN' authority) or 'WHITE_LABELING' (for 'TENANT_ADMIN' authority) resource.","operationId":"getSecuritySettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecuritySettings"}}}}}},"post":{"tags":["admin-controller"],"summary":"Update Security Settings (saveSecuritySettings)","description":"Updates the Security Settings object that contains password policy, etc.\n\nAvailable for users with 'SYS_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the 'ADMIN_SETTINGS' (for 'SYS_ADMIN' authority) or 'WHITE_LABELING' (for 'TENANT_ADMIN' authority) resource.","operationId":"saveSecuritySettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecuritySettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecuritySettings"}}}}}}},"/api/admin/repositorySettings":{"get":{"tags":["admin-controller"],"summary":"Get repository settings (getRepositorySettings)","description":"Get the repository settings object. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRepositorySettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositorySettings"}}}}}},"post":{"tags":["admin-controller"],"summary":"Creates or Updates the repository settings (saveRepositorySettings)","description":"Creates or Updates the repository settings object. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveRepositorySettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositorySettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositorySettings"}}}}}},"delete":{"tags":["admin-controller"],"summary":"Delete repository settings (deleteRepositorySettings)","description":"Deletes the repository settings.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteRepositorySettings","responses":{"200":{"description":"OK"}}}},"/api/admin/repositorySettings/checkAccess":{"post":{"tags":["admin-controller"],"summary":"Check repository access (checkRepositoryAccess)","description":"Attempts to check repository access. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"checkRepositoryAccess","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositorySettings"}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/admin/jwtSettings":{"get":{"tags":["admin-controller"],"summary":"Get the JWT Settings object (getJwtSettings)","description":"Get the JWT Settings object that contains JWT token policy, etc. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getJwtSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtSettings"}}}}}},"post":{"tags":["admin-controller"],"summary":"Update JWT Settings (saveJwtSettings)","description":"Updates the JWT Settings object that contains JWT token policy, etc. The tokenSigningKey field is a Base64 encoded string.\n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"saveJwtSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/admin/autoCommitSettings":{"get":{"tags":["admin-controller"],"summary":"Get auto commit settings (getAutoCommitSettings)","description":"Get the auto commit settings object. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAutoCommitSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoCommitSettings"}}}}}},"post":{"tags":["admin-controller"],"summary":"Creates or Updates the auto commit settings (saveAutoCommitSettings)","description":"Creates or Updates the auto commit settings object. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"saveAutoCommitSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoCommitSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoCommitSettings"}}}}}},"delete":{"tags":["admin-controller"],"summary":"Delete auto commit settings (deleteAutoCommitSettings)","description":"Deletes the auto commit settings.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAutoCommitSettings","responses":{"200":{"description":"OK"}}}},"/api/2fa/settings":{"get":{"tags":["two-factor-auth-config-controller"],"summary":"Get platform 2FA settings (getPlatformTwoFaSettings)","description":"Get platform settings for 2FA. The settings are described for savePlatformTwoFaSettings API method. If 2FA is not configured, then an empty response will be returned.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getPlatformTwoFaSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformTwoFaSettings"}}}}}},"post":{"tags":["two-factor-auth-config-controller"],"summary":"Save platform 2FA settings (savePlatformTwoFaSettings)","description":"Save 2FA settings for platform. The settings have following properties:\n- `useSystemTwoFactorAuthSettings` - option for tenant admins to use 2FA settings configured by sysadmin. If this param is set to true, then the settings will not be validated for constraints (if it is a tenant admin; for sysadmin this param is ignored).\n- `providers` - the list of 2FA providers' configs. Users will only be allowed to use 2FA providers from this list. \n\n- `minVerificationCodeSendPeriod` - minimal period in seconds to wait after verification code send request to send next request. \n- `verificationCodeCheckRateLimit` - rate limit configuration for verification code checking.\nThe format is standard: 'amountOfRequests:periodInSeconds'. The value of '1:60' would limit verification code checking requests to one per minute.\n- `maxVerificationFailuresBeforeUserLockout` - maximum number of verification failures before a user gets disabled.\n- `totalAllowedTimeForVerification` - total amount of time in seconds allotted for verification. Basically, this property sets a lifetime for pre-verification token. If not set, default value of 30 minutes is used.\n\n\nTOTP 2FA provider config has following settings:\n- `issuerName` - issuer name that will be displayed in an authenticator app near a username. Must not be blank.\n\nFor SMS 2FA provider:\n- `smsVerificationMessageTemplate` - verification message template.  Available template variables are ${code} and ${userEmail}. It must not be blank and must contain verification code variable.\n- `verificationCodeLifetime` - verification code lifetime in seconds. Required to be positive.\n\nFor EMAIL provider type:\n- `verificationCodeLifetime` - the same as for SMS.\n\nExample of the settings:\n```\n{\n  \"useSystemTwoFactorAuthSettings\": false,\n  \"providers\": [\n    {\n      \"providerType\": \"TOTP\",\n      \"issuerName\": \"TB\"\n    },\n    {\n      \"providerType\": \"EMAIL\",\n      \"verificationCodeLifetime\": 60\n    },\n    {\n      \"providerType\": \"SMS\",\n      \"verificationCodeLifetime\": 60,\n      \"smsVerificationMessageTemplate\": \"Here is your verification code: ${code}\"\n    }\n  ],\n  \"minVerificationCodeSendPeriod\": 60,\n  \"verificationCodeCheckRateLimit\": \"3:900\",\n  \"maxVerificationFailuresBeforeUserLockout\": 10,\n  \"totalAllowedTimeForVerification\": 600\n}\n```\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"savePlatformTwoFaSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformTwoFaSettings"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformTwoFaSettings"}}}}}}},"/api/2fa/account/config/submit":{"post":{"tags":["two-factor-auth-config-controller"],"summary":"Submit 2FA account config (submitTwoFaAccountConfig)","description":"Submit 2FA account config to prepare for a future verification. Basically, this method will send a verification code for a given account config, if this has sense for a chosen 2FA provider. This code is needed to then verify and save the account config.\n\nExample of EMAIL 2FA account config:\n```\n{\n  \"providerType\": \"EMAIL\",\n  \"useByDefault\": true,\n  \"email\": \"separate-email-for-2fa@thingsboard.org\"\n}\n```\n\nExample of SMS 2FA account config:\n```\n{\n  \"providerType\": \"SMS\",\n  \"useByDefault\": false,\n  \"phoneNumber\": \"+38012312321\"\n}\n```\n\nFor TOTP this method does nothing.\n\nWill throw an error (Bad Request) if submitted account config is not valid, or if the provider is not configured for usage. \n\nAvailable for any authorized user. ","operationId":"submitTwoFaAccountConfig","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BackupCodeTwoFaAccountConfig"},{"$ref":"#/components/schemas/EmailTwoFaAccountConfig"},{"$ref":"#/components/schemas/SmsTwoFaAccountConfig"},{"$ref":"#/components/schemas/TotpTwoFaAccountConfig"}]}}},"required":true},"responses":{"200":{"description":"OK"}}}},"/api/2fa/account/config/generate":{"post":{"tags":["two-factor-auth-config-controller"],"summary":"Generate 2FA account config (generateTwoFaAccountConfig)","description":"Generate new 2FA account config template for specified provider type. \n\nFor TOTP, this will return a corresponding account config template with a generated OTP auth URL (with new random secret key for each API call) that can be then converted to a QR code to scan with an authenticator app. Example:\n```\n{\n  \"providerType\": \"TOTP\",\n  \"useByDefault\": false,\n  \"authUrl\": \"otpauth://totp/TB%202FA:tenant@thingsboard.org?issuer=TB+2FA&secret=PNJDNWJVAK4ZTUYT7RFGPQLXA7XGU7PX\"\n}\n```\n\nFor EMAIL, the generated config will contain email from user's account:\n```\n{\n  \"providerType\": \"EMAIL\",\n  \"useByDefault\": false,\n  \"email\": \"tenant@thingsboard.org\"\n}\n```\n\nFor SMS 2FA this method will just return a config with empty/default values as there is nothing to generate/preset:\n```\n{\n  \"providerType\": \"SMS\",\n  \"useByDefault\": false,\n  \"phoneNumber\": null\n}\n```\n\nWill throw an error (Bad Request) if the provider is not configured for usage. \n\nAvailable for any authorized user. ","operationId":"generateTwoFaAccountConfig","parameters":[{"name":"providerType","in":"query","description":"2FA provider type to generate new account config for","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/BackupCodeTwoFaAccountConfig"},{"$ref":"#/components/schemas/EmailTwoFaAccountConfig"},{"$ref":"#/components/schemas/SmsTwoFaAccountConfig"},{"$ref":"#/components/schemas/TotpTwoFaAccountConfig"}]}}}}}}},"/api/ai/chats/{chatId}":{"delete":{"tags":["ai-chat-controller"],"operationId":"deleteChat","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"}}},"patch":{"tags":["ai-chat-controller"],"operationId":"updateChat","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}},"required":true},"responses":{"204":{"description":"No Content"}}}},"/api/widgetsBundles":{"get":{"tags":["widgets-bundle-controller"],"summary":"Get Widget Bundles (getWidgetsBundles)","description":"Returns a page of Widget Bundle objects available for current user. Widget Bundle represents a group(bundle) of widgets. Widgets are grouped into bundle by type or use case.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for any authorized user. ","operationId":"getWidgetsBundles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the widget bundle title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","tenantId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"tenantOnly","in":"query","description":"Optional boolean parameter to include only tenant-level bundles without system","required":false,"schema":{"type":"boolean"}},{"name":"fullSearch","in":"query","description":"Optional boolean parameter indicating extended search of widget bundles by description and by name / description of related widget types","required":false,"schema":{"type":"boolean"}},{"name":"scadaFirst","in":"query","description":"Optional boolean parameter indicating whether to fetch widgets bundles with SCADA symbols first. Works only when fullSearch parameter is enabled","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataWidgetsBundle"}}}}}}},"/api/widgetsBundles/list":{"get":{"tags":["widgets-bundle-controller"],"summary":"Get Widgets Bundles By Ids (getWidgetsBundlesList)","description":"Requested widgets bundles must be system level or owned by tenant of the user which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getWidgetsBundlesList","parameters":[{"name":"widgetsBundleIds","in":"query","description":"A list of widgets bundle ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetsBundle"}}}}}}}},"/api/widgetsBundles/all":{"get":{"tags":["widgets-bundle-controller"],"summary":"Get all Widget Bundles (getAllWidgetsBundles)","description":"Returns an array of Widget Bundle objects that are available for current user.Widget Bundle represents a group(bundle) of widgets. Widgets are grouped into bundle by type or use case.  \n\nAvailable for any authorized user. ","operationId":"getAllWidgetsBundles","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetsBundle"}}}}}}}},"/api/widgetsBundle/{widgetsBundleId}":{"get":{"tags":["widgets-bundle-controller"],"summary":"Get Widget Bundle (getWidgetsBundleById)","description":"Get the Widget Bundle based on the provided Widget Bundle Id. Widget Bundle represents a group(bundle) of widgets. Widgets are grouped into bundle by type or use case. \n\nAvailable for any authorized user. ","operationId":"getWidgetsBundleById","parameters":[{"name":"widgetsBundleId","in":"path","description":"A string value representing the widget bundle id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"inlineImages","in":"query","description":"Inline images as a data URL (Base64)","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetsBundle"}}}}}},"delete":{"tags":["widgets-bundle-controller"],"summary":"Delete widgets bundle (deleteWidgetsBundle)","description":"Deletes the widget bundle. Referencing non-existing Widget Bundle Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteWidgetsBundle","parameters":[{"name":"widgetsBundleId","in":"path","description":"A string value representing the widget bundle id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/widgetTypes":{"get":{"tags":["widget-type-controller"],"summary":"Get Widget Types (getWidgetTypes)","description":"Returns a page of Widget Type objects available for current user. Widget Type represents the template for widget creation. Widget Type and Widget are similar to class and object in OOP theory. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for any authorized user. ","operationId":"getWidgetTypes","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the widget type name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deprecated","tenantId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC, DESC"]}},{"name":"tenantOnly","in":"query","description":"Optional boolean parameter indicating whether only tenant widget types should be returned","required":false,"schema":{"type":"boolean"}},{"name":"fullSearch","in":"query","description":"Optional boolean parameter indicating whether search widgets by description not only by name","required":false,"schema":{"type":"boolean"}},{"name":"deprecatedFilter","in":"query","description":"Optional string parameter indicating whether to include deprecated widgets","required":false,"schema":{"type":"string","enum":["ALL","ACTUAL","DEPRECATED"]}},{"name":"widgetTypeList","in":"query","description":"A list of string values separated by comma ',' representing one of the widget type value","required":false,"schema":{"type":"array","items":{"type":"string","enum":["timeseries","latest","control","alarm","static"]}}},{"name":"scadaFirst","in":"query","description":"Optional boolean parameter indicating whether to fetch SCADA symbol widgets first","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataWidgetTypeInfo"}}}}}}},"/api/widgetTypesInfos":{"get":{"tags":["widget-type-controller"],"summary":"Get Widget Type Info objects (getBundleWidgetTypesInfos)","description":"Get the Widget Type Info objects based on the provided parameters. Widget Type Info is a lightweight object that represents Widget Type but does not contain the heavyweight widget descriptor JSON\n\nAvailable for any authorized user. ","operationId":"getBundleWidgetTypesInfos","parameters":[{"name":"widgetsBundleId","in":"query","description":"Widget Bundle Id","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the widget type name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deprecated","tenantId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"fullSearch","in":"query","description":"Optional boolean parameter indicating whether search widgets by description not only by name","required":false,"schema":{"type":"boolean"}},{"name":"deprecatedFilter","in":"query","description":"Optional string parameter indicating whether to include deprecated widgets","required":false,"schema":{"type":"string","enum":["ALL","ACTUAL","DEPRECATED"]}},{"name":"widgetTypeList","in":"query","description":"A list of string values separated by comma ',' representing one of the widget type value","required":false,"schema":{"type":"array","items":{"type":"string","enum":["timeseries","latest","control","alarm","static"]}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataWidgetTypeInfo"}}}}}}},"/api/widgetTypesDetails":{"get":{"tags":["widget-type-controller"],"summary":"Get all Widget types details for specified Bundle (getBundleWidgetTypesDetails)","description":"Returns an array of Widget Type Details objects that belong to specified Widget Bundle.Widget Type Details extend Widget Type and add image and description properties. Those properties are useful to edit the Widget Type but they are not required for Dashboard rendering.  \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getBundleWidgetTypesDetails","parameters":[{"name":"widgetsBundleId","in":"query","description":"Widget Bundle Id","required":true,"schema":{"type":"string"}},{"name":"includeResources","in":"query","description":"Export used resources and replace resource links with resource metadata","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WidgetTypeDetails"}}}}}}}},"/api/widgetTypeInfo/{widgetTypeId}":{"get":{"tags":["widget-type-controller"],"summary":"Get Widget Type Info (getWidgetTypeInfoById)","description":"Get the Widget Type Info based on the provided Widget Type Id. Widget Type Details extend Widget Type and add image and description properties. Those properties are useful to edit the Widget Type but they are not required for Dashboard rendering. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getWidgetTypeInfoById","parameters":[{"name":"widgetTypeId","in":"path","description":"A string value representing the widget type id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetTypeInfo"}}}}}}},"/api/widgetTypeFqns":{"get":{"tags":["widget-type-controller"],"summary":"Get all Widget type fqns for specified Bundle (getBundleWidgetTypeFqns)","description":"Returns an array of Widget Type fqns that belong to specified Widget Bundle.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getBundleWidgetTypeFqns","parameters":[{"name":"widgetsBundleId","in":"query","description":"Widget Bundle Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/widgetType/{widgetTypeId}":{"get":{"tags":["widget-type-controller"],"summary":"Get Widget Type Details (getWidgetTypeById)","description":"Get the Widget Type Details based on the provided Widget Type Id. Widget Type Details extend Widget Type and add image and description properties. Those properties are useful to edit the Widget Type but they are not required for Dashboard rendering. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getWidgetTypeById","parameters":[{"name":"widgetTypeId","in":"path","description":"A string value representing the widget type id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"includeResources","in":"query","description":"Export used resources and replace resource links with resource metadata","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WidgetTypeDetails"}}}}}},"delete":{"tags":["widget-type-controller"],"summary":"Delete widget type (deleteWidgetType)","description":"Deletes the  Widget Type. Referencing non-existing Widget Type Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteWidgetType","parameters":[{"name":"widgetTypeId","in":"path","description":"A string value representing the widget type id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/whiteLabel/isWhiteLabelingAllowed":{"get":{"tags":["white-labeling-controller"],"summary":"Check White Labeling Allowed","description":"Check if the White Labeling is enabled for the current user owner (tenant or customer)\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"isWhiteLabelingAllowed","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/whiteLabel/isCustomerWhiteLabelingAllowed":{"get":{"tags":["white-labeling-controller"],"summary":"Check Customer White Labeling Allowed","description":"Check if the White Labeling is enabled for the customers of the current tenant\n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"isCustomerWhiteLabelingAllowed","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/whiteLabel/currentWhiteLabelParams":{"get":{"tags":["white-labeling-controller"],"summary":"Get White Labeling configuration (getCurrentWhiteLabelParams)","description":"Fetch the White Labeling configuration that corresponds to the authority of the user. The API call is designed to load the White Labeling configuration for edition. So, the result is NOT merged with the parent level White Labeling configuration. Let's assume there is a custom White Labeling  configured on a system level. And there is no custom White Labeling  items configured on a tenant level. In such a case, the API call will return default object for the tenant administrator. \n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getCurrentWhiteLabelParams","parameters":[{"name":"customerId","in":"query","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhiteLabelingParams"}}}}}},"delete":{"tags":["white-labeling-controller"],"summary":"Delete General White Labeling configuration (deleteCurrentWhiteLabelParams)","description":"Delete the White Labeling configuration that corresponds to the authority of the user. \n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"deleteCurrentWhiteLabelParams","parameters":[{"name":"customerId","in":"query","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/whiteLabel/currentLoginWhiteLabelParams":{"get":{"tags":["white-labeling-controller"],"summary":"Get Login White Labeling configuration (getCurrentWhiteLabelParams)","description":"Fetch the Login  White Labeling configuration that corresponds to the authority of the user. The API call is designed to load the Login White Labeling configuration for edition. So, the result is NOT merged with the parent level White Labeling configuration. Let's assume there is a custom White Labeling  configured on a system level. And there is no custom White Labeling  items configured on a tenant level. In such a case, the API call will return default object for the tenant administrator. \n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getCurrentLoginWhiteLabelParams","parameters":[{"name":"customerId","in":"query","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginWhiteLabelingParams"}}}}}},"delete":{"tags":["white-labeling-controller"],"summary":"Delete Login White Labeling configuration (deleteCurrentLoginWhiteLabelParams)","description":"Delete the Login White Labeling configuration that corresponds to the authority of the user. \n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"deleteCurrentLoginWhiteLabelParams","parameters":[{"name":"customerId","in":"query","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/v2/reports":{"get":{"tags":["report-controller"],"operationId":"getReports","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on report's name or customer title","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataReport"}}}}}}},"/api/v2/reportInfos":{"get":{"tags":["report-controller"],"operationId":"getReportInfosByIds","parameters":[{"name":"strReportIds","in":"query","description":"A list of report ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportInfo"}}}}}}}},"/api/v2/reportInfos/all":{"get":{"tags":["report-controller"],"operationId":"getReportInfos","parameters":[{"name":"reportTemplateId","in":"query","description":"Report template id","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"userId","in":"query","description":"The user used for report generation.","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on report's name or customer title","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataReportInfo"}}}}}}},"/api/v2/report/{reportId}":{"get":{"tags":["report-controller"],"summary":"Get Report (getReportById)","description":"Fetch the Report object based on the provided report Id. The platform uses Report to store generated reports information.Referencing non-existing Report Id will cause 'Not Found' error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getReportById","parameters":[{"name":"reportId","in":"path","description":"A string value representing the report id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}}}},"delete":{"tags":["report-controller"],"summary":"Delete Report (deleteReport)","description":"Deletes the report. Referencing non-existing Report Id will cause 'Not Found' error.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteReport","parameters":[{"name":"reportId","in":"path","description":"A string value representing the report id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/v2/report/{reportId}/download":{"get":{"tags":["report-controller"],"operationId":"downloadReport","parameters":[{"name":"reportId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/v2/report/public/{publicKey}/download":{"get":{"tags":["report-controller"],"summary":"Download report by public key (downloadReportByPublicKey)","description":"Downloads the report identified by its public key. This endpoint is intentionally public: it requires no authentication and is accessible to anyone in possession of the report's random public key. It only returns data for reports that have been explicitly made public (see updateReportPublicStatus).","operationId":"downloadReportByPublicKey","parameters":[{"name":"publicKey","in":"path","description":"The random public key of the report","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/v2/alarms":{"get":{"tags":["alarm-controller"],"summary":"Get All Alarms (getAllAlarmsV2)","description":"Returns a page of alarms that belongs to the current user owner. If the user has the authority of 'Tenant Administrator', the server returns alarms that belongs to the tenant of current user. If the user has the authority of 'Customer User', the server returns alarms that belongs to the customer of current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAllAlarmsV2","parameters":[{"name":"statusList","in":"query","description":"A list of string values separated by comma ',' representing one of the AlarmSearchStatus enumeration value","required":false,"schema":{"type":"array","items":{"type":"string","enum":["ANY","ACTIVE","CLEARED","ACK","UNACK"]}}},{"name":"severityList","in":"query","description":"A list of string values separated by comma ',' representing one of the AlarmSeverity enumeration value","required":false,"schema":{"type":"array","items":{"type":"string","enum":["CRITICAL","MAJOR","MINOR","WARNING","INDETERMINATE"]}}},{"name":"typeList","in":"query","description":"A list of string values separated by comma ',' representing alarm types","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"assigneeId","in":"query","description":"A string value representing the assignee user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on of next alarm fields: type, severity or status","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","startTs","endTs","type","ackTs","clearTs","severity","status"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmInfo"}}}}}}},"/api/v2/alarm/{entityType}/{entityId}":{"get":{"tags":["alarm-controller"],"summary":"Get Alarms (getAlarmsV2)","description":"Returns a page of alarms for the selected entity. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAlarmsV2","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"statusList","in":"query","description":"A list of string values separated by comma ',' representing one of the AlarmSearchStatus enumeration value","required":false,"schema":{"type":"array","items":{"type":"string","enum":["ANY","ACTIVE","CLEARED","ACK","UNACK"]}}},{"name":"severityList","in":"query","description":"A list of string values separated by comma ',' representing one of the AlarmSeverity enumeration value","required":false,"schema":{"type":"array","items":{"type":"string","enum":["CRITICAL","MAJOR","MINOR","WARNING","INDETERMINATE"]}}},{"name":"typeList","in":"query","description":"A list of string values separated by comma ',' representing alarm types","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"assigneeId","in":"query","description":"A string value representing the assignee user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on of next alarm fields: type, severity or status","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","startTs","endTs","type","ackTs","clearTs","severity","status"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmInfo"}}}}}}},"/api/users/list":{"get":{"tags":["user-controller"],"summary":"Get Users By Ids (getUsersByIds)","description":"Requested users must be owned by tenant or assigned to customer which user is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUsersByIds","parameters":[{"name":"userIds","in":"query","description":"A list of user ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/User"}}}}}}}},"/api/users/info":{"get":{"tags":["user-controller"],"summary":"Find users by query (findUsersByQuery)","description":"Returns page of user data objects. Search is been executed by email, firstName and lastName fields. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"findUsersByQuery","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUserEmailInfo"}}}}}}},"/api/users/assign/{alarmId}":{"get":{"tags":["user-controller"],"summary":"Get usersForAssign (getUsersForAssign)","description":"Returns page of user data objects that can be assigned to provided alarmId. Search is been executed by email, firstName and lastName fields. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getUsersForAssign","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUserEmailInfo"}}}}}}},"/api/userInfos/all":{"get":{"tags":["user-controller"],"summary":"Get All User Infos for current user (getAllUserInfos)","description":"Returns a page of user info objects owned by the tenant or the customer of a current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllUserInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUserInfo"}}}}}}},"/api/userGroup/{userGroupId}/groupPermissions":{"get":{"tags":["group-permission-controller"],"summary":"Get group permissions by User Group Id (getUserGroupPermissions)","description":"Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserGroupPermissions","parameters":[{"name":"userGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupPermissionInfo"}}}}}}}},"/api/user/{userId}":{"get":{"tags":["user-controller"],"summary":"Get User (getUserById)","description":"Fetch the User object based on the provided User Id. If the user has the authority of 'SYS_ADMIN', the server does not perform additional checks. If the user has the authority of 'TENANT_ADMIN', the server checks that the requested user is owned by the same tenant. If the user has the authority of 'CUSTOMER_USER', the server checks that the requested user is owned by the same customer.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserById","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}}},"delete":{"tags":["user-controller"],"summary":"Delete User (deleteUser)","description":"Deletes the User, it's credentials and all the relations (from and to the User). Referencing non-existing User Id will cause an error. \n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteUser","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/user/{userId}/token":{"get":{"tags":["user-controller"],"summary":"Get User Token (getUserToken)","description":"Returns the token of the User based on the provided User Id. If the user who performs the request has the authority of 'SYS_ADMIN', it is possible to get the token of any tenant administrator. If the user who performs the request has the authority of 'TENANT_ADMIN', it is possible to get the token of any customer user that belongs to the same tenant. ","operationId":"getUserToken","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/user/{userId}/activationLink":{"get":{"tags":["user-controller"],"summary":"Get activation link (getActivationLink)","description":"Get the activation link for the user. The base url for activation link is configurable in the general settings of system administrator. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getActivationLink","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/user/{userId}/activationLinkInfo":{"get":{"tags":["user-controller"],"summary":"Get activation link info (getActivationLinkInfo)","description":"Get the activation link info for the user. The base url for activation link is configurable in the general settings of system administrator. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getActivationLinkInfo","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserActivationLink"}}}}}}},"/api/user/users":{"get":{"tags":["user-controller"],"summary":"Get Users (getUsers)","description":"Returns a page of user objects available for the current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserUsers","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUser"}}}}}}},"/api/user/tokenAccessEnabled":{"get":{"tags":["user-controller"],"summary":"Check Token Access Enabled (isUserTokenAccessEnabled)","description":"Checks that the system is configured to allow administrators to impersonate themself as other users. If the user who performs the request has the authority of 'SYS_ADMIN', it is possible to login as any tenant administrator. If the user who performs the request has the authority of 'TENANT_ADMIN', it is possible to login as any customer user.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"isUserTokenAccessEnabled","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/user/lastVisitedDashboards":{"get":{"tags":["user-controller"],"summary":"Get information about last visited and starred dashboards (getLastVisitedDashboards)","description":"Fetch the list of last visited and starred dashboards. Both lists are limited to 10 items.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getLastVisitedDashboards","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDashboardsInfo"}}}}}}},"/api/user/info/{userId}":{"get":{"tags":["user-controller"],"summary":"Get User info (getUserInfoById)","description":"Fetch the User info object based on the provided User Id. If the user has the authority of 'SYS_ADMIN', the server does not perform additional checks. If the user has the authority of 'TENANT_ADMIN', the server checks that the requested user is owned by the same tenant. If the user has the authority of 'CUSTOMER_USER', the server checks that the requested user is owned by the same customer.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserInfoById","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserInfo"}}}}}}},"/api/user/entityViews":{"get":{"tags":["entity-view-controller"],"summary":"Get Entity Views (getUserEntityViews)","description":"Returns a page of entity views that are available for the current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserEntityViews","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"type","in":"query","description":"\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityView"}}}}}}},"/api/user/edges":{"get":{"tags":["edge-controller"],"summary":"Get Edges (getUserEdges)","description":"Returns a page of edges available for current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserEdges","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"type","in":"query","description":"A string value representing the edge type. For example, 'default'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdge"}}}}}}},"/api/user/devices":{"get":{"tags":["device-controller"],"summary":"Get Devices (getUserDevices)","description":"Returns a page of devices that are available for the current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserDevices","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"type","in":"query","description":"Device type as the name of the device profile","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deviceProfileName","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDevice"}}}}}}},"/api/user/dashboards":{"get":{"tags":["dashboard-controller"],"summary":"Get Dashboards (getUserDashboards)","description":"Returns a page of Dashboard Info objects available for specified or current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. The Dashboard Info object contains lightweight information about the dashboard (e.g. title, image, assigned customers) but does not contain the heavyweight configuration JSON.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserDashboards","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"mobile","in":"query","description":"Exclude dashboards that are hidden for mobile","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the dashboard title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"operation","in":"query","description":"Filter by allowed operations for the current user","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDashboardInfo"}}}}}}},"/api/user/dashboards/{dashboardId}/{action}":{"get":{"tags":["user-controller"],"summary":"Report action of User over the dashboard (reportUserDashboardAction)","description":"Report action of User over the dashboard. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"reportUserDashboardAction","parameters":[{"name":"dashboardId","in":"path","description":"A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"action","in":"path","description":"Dashboard action, one of: \"visit\", \"star\" or \"unstar\".","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserDashboardsInfo"}}}}}}},"/api/user/customers":{"get":{"tags":["customer-controller"],"summary":"Get Customers (getUserCustomers)","description":"Returns a page of customers available for the user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserCustomers","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","email","country","city"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCustomer"}}}}}}},"/api/user/assets":{"get":{"tags":["asset-controller"],"summary":"Get Assets (getUserAssets)","description":"Returns a page of assets objects available for the current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Asset Info is an extension of the default Asset object that contains information about the owner name. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getUserAssets","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"type","in":"query","description":"Asset type","required":false,"schema":{"type":"string"}},{"name":"assetProfileId","in":"query","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAsset"}}}}}}},"/api/usage":{"get":{"tags":["usage-info-controller"],"operationId":"getTenantUsageInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageInfo"}}}}}}},"/api/uiSettings/helpBaseUrl":{"get":{"tags":["ui-settings-controller"],"summary":"Get UI help base url (getHelpBaseUrl)","description":"Get UI help base url used to fetch help assets. The actual value of the base url is configurable in the system configuration file.","operationId":"getHelpBaseUrl","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/trendz/view/{viewId}":{"get":{"tags":["trendz-api-controller"],"summary":"Get Trendz View by Id (getTrendzViewById)","description":"Fetch the Trendz View object based on the provided Trendz View Id. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getTrendzViewById","parameters":[{"name":"viewId","in":"path","description":"A string value representing the Trendz view id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzViewConfig"}}}}}}},"/api/trendz/view/all":{"get":{"tags":["trendz-api-controller"],"summary":"Get Trendz Views (getTrendzViews)","description":"Returns a page of Trendz views that are available for the current user. Can only be used if Trendz is already synchronized and integration is enabled. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getTrendzViews","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the Trendz view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["name","createdAt","updatedAt","favorite"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTrendzViewConfigLite"}}}}}}},"/api/trendz/usage":{"get":{"tags":["trendz-api-controller"],"summary":"Get Trendz Usage (getTrendzUsage)","description":"Fetch the Trendz usage object. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTrendzUsage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzUsage"}}}}}}},"/api/trendz/sync":{"get":{"tags":["trendz-controller"],"summary":"Get Trendz synchronization result (getTrendzSyncResult)","description":"Retrieves Trendz synchronization result and status. Returns trendzVersion, updatedTs, resultType, and status.\n\nAvailable for any authorized user. ","operationId":"getTrendzSyncResult","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzSynchronizationResult"}}}}}}},"/api/trendz/summary":{"get":{"tags":["trendz-api-controller"],"summary":"Get Trendz Summary (getTrendzSummary)","description":"Fetch the Trendz summary object. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getTrendzSummary","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzSummary"}}}}}}},"/api/trendz/healthcheck":{"get":{"tags":["trendz-controller"],"summary":"Perform Trendz healthcheck (performTrendzHealthcheck)","description":"Performs healthcheck for Trendz integration. Returns version, type, status, and message. Can only be performed if Trendz is already synchronized and integration is enabled.\n\nAvailable for any authorized user. ","operationId":"performTrendzHealthcheck","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrendzHealthcheckResult"}}}}}}},"/api/translation/info":{"get":{"tags":["translation-controller"],"summary":"Get Translation info (getTranslationInfos)","description":"Fetch the list of customized locales and corresponding details such as language display name, country display name and translation progress percentage.\n\n Response example: \n\n```json\n[\n  {\n    \"localeCode\": \"uk_UA\",\n    \"language\": \"Ukrainian (українська)\",\n    \"country\": \"Україна\",\n    \"progress\": 32\n  },\n  {\n    \"localeCode\": \"es_ES\",\n    \"language\": \"Spanish (español)\",\n    \"country\": \"España\",\n    \"progress\": 79\n  }]\n```\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getTranslationInfos","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TranslationInfo"}}}}}}}},"/api/translation/full/{localeCode}":{"get":{"tags":["translation-controller"],"summary":"Get end-user all-to-one translation (getFullTranslation)","description":"Fetch the end-user translation for specified locale. The result is the merge of user custom translation, system language translation and default locale translation.","operationId":"getFullTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/translation/full/{localeCode}/download":{"get":{"tags":["translation-controller"],"summary":"Download end-user all-to-one translation (downloadFullTranslation)","description":"Fetch the end-user translation for the specified locale. The result is a json file with merged user custom translation, system language translation and default locale translation.","operationId":"downloadFullTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/translation/edit/basic/{localeCode}":{"get":{"tags":["translation-controller"],"summary":"Get end-user multi-translation for basic edit (getTranslationForBasicEdit)","description":"Fetch the translation info map where value is info object containing key translation, origin translation, translation of parent level, translation status.","operationId":"getTranslationForBasicEdit","parameters":[{"name":"localeCode","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/translation/custom/merged/{localeCode}":{"get":{"tags":["custom-translation-controller"],"summary":"Get end-user Custom Translation configuration (getMergedCustomTranslation)","description":"Fetch end-user Custom Translation for specified locale. The custom translation is configured in the white labeling parameters. If custom translation translation is defined on the tenant level, it overrides the custom translation of the system level. Similar, if the custom translation is defined on the customer level, it overrides the translation configuration of the tenant level.","operationId":"getMergedCustomTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/translation/availableLocales":{"get":{"tags":["translation-controller"],"summary":"Get list of available locales (getAvailableLocales)","description":"Fetch the list of customized locales from all levels\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getAvailableLocales","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/translation/availableJavaLocales":{"get":{"tags":["translation-controller"],"summary":"Get list of available java locales (getAvailableJavaLocales)","description":"The result is map where key is locale code and value is locale language and country","operationId":"getAvailableJavaLocales","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/tenants":{"get":{"tags":["tenant-controller"],"summary":"Get Tenants (getTenants)","description":"Returns a page of tenants registered in the platform. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenants","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the tenant name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","email","country","state","city","address","address2","zip","phone","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTenant"}}}}}}},"/api/tenants/list":{"get":{"tags":["tenant-controller"],"summary":"Get Tenants By Ids (getTenantsByIds)","description":"Fetch Tenant objects based on the provided ids. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantsByIds","parameters":[{"name":"tenantIds","in":"query","description":"A list of tenant ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Tenant"}}}}}}}},"/api/tenantProfiles":{"get":{"tags":["tenant-profile-controller"],"summary":"Get Tenant Profiles (getTenantProfiles)","description":"Returns a page of tenant profiles registered in the platform. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantProfiles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the tenant profile name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","description","isDefault"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTenantProfile"}}}}}}},"/api/tenantProfiles/list":{"get":{"tags":["tenant-profile-controller"],"summary":"Get Tenant Profile list (getTenantProfileList)","operationId":"getTenantProfileList","parameters":[{"name":"ids","in":"query","description":"Comma-separated list of tenant profile ids","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TenantProfile"}}}}}}}},"/api/tenantProfileInfos":{"get":{"tags":["tenant-profile-controller"],"summary":"Get Tenant Profiles Info (getTenantProfileInfos)","description":"Returns a page of tenant profile info objects registered in the platform. Tenant Profile Info is a lightweight object that contains only id and name of the profile. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantProfileInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the tenant profile name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["id","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/tenantProfileInfo/{tenantProfileId}":{"get":{"tags":["tenant-profile-controller"],"summary":"Get Tenant Profile Info (getTenantProfileInfoById)","description":"Fetch the Tenant Profile Info object based on the provided Tenant Profile Id. Tenant Profile Info is a lightweight object that contains only id and name of the profile. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantProfileInfoById","parameters":[{"name":"tenantProfileId","in":"path","description":"A string value representing the tenant profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInfo"}}}}}}},"/api/tenantProfileInfo/default":{"get":{"tags":["tenant-profile-controller"],"summary":"Get default Tenant Profile Info (getDefaultTenantProfileInfo)","description":"Fetch the default Tenant Profile Info object based. Tenant Profile Info is a lightweight object that contains only id and name of the profile. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getDefaultTenantProfileInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInfo"}}}}}}},"/api/tenantProfile/{tenantProfileId}":{"get":{"tags":["tenant-profile-controller"],"summary":"Get Tenant Profile (getTenantProfileById)","description":"Fetch the Tenant Profile object based on the provided Tenant Profile Id. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantProfileById","parameters":[{"name":"tenantProfileId","in":"path","description":"A string value representing the tenant profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantProfile"}}}}}},"delete":{"tags":["tenant-profile-controller"],"summary":"Delete Tenant Profile (deleteTenantProfile)","description":"Deletes the tenant profile. Referencing non-existing tenant profile Id will cause an error. Referencing profile that is used by the tenants will cause an error. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"deleteTenantProfile","parameters":[{"name":"tenantProfileId","in":"path","description":"A string value representing the tenant profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/tenantProfile/{tenantProfileId}/profileConfig":{"get":{"tags":["subscription-controller"],"operationId":"getTenantProfileConfigurationById","parameters":[{"name":"tenantProfileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultTenantProfileConfiguration"}}}}}}},"/api/tenantInfos":{"get":{"tags":["tenant-controller"],"summary":"Get Tenants Info (getTenants)","description":"Returns a page of tenant info objects registered in the platform. The Tenant Info object extends regular Tenant object and includes Tenant Profile name. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the tenant name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","tenantProfileName","title","email","country","state","city","address","address2","zip","phone","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTenantInfo"}}}}}}},"/api/tenant/{tenantId}":{"get":{"tags":["tenant-controller"],"summary":"Get Tenant (getTenantById)","description":"Fetch the Tenant object based on the provided Tenant Id. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTenantById","parameters":[{"name":"tenantId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tenant"}}}}}},"delete":{"tags":["tenant-controller"],"summary":"Delete Tenant (deleteTenant)","description":"Deletes the tenant, it's customers, rule chains, devices and all other related entities. Referencing non-existing tenant Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteTenant","parameters":[{"name":"tenantId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/tenant/{tenantId}/users":{"get":{"tags":["user-controller"],"summary":"Get Tenant Users (getTenantAdmins)","description":"Returns a page of users owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getTenantAdmins","parameters":[{"name":"tenantId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUser"}}}}}}},"/api/tenant/{tenantId}/dashboards":{"get":{"tags":["dashboard-controller"],"summary":"Get Tenant Dashboards by System Administrator (getTenantDashboardsByTenantId)","description":"Returns a page of dashboard info objects owned by tenant. The Dashboard Info object contains lightweight information about the dashboard (e.g. title, image, assigned customers) but does not contain the heavyweight configuration JSON. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getTenantDashboardsByTenantId","parameters":[{"name":"tenantId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the dashboard title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDashboardInfo"}}}}}}},"/api/tenant/whiteLabelingAllowed":{"get":{"tags":["white-labeling-controller"],"operationId":"tenantWhiteLabelingAllowed","responses":{"200":{"description":"OK"}}}},"/api/tenant/subscription":{"get":{"tags":["subscription-controller"],"operationId":"getTenantSubscription","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionDetails"}}}}}}},"/api/tenant/subscription/usage":{"get":{"tags":["subscription-controller"],"operationId":"getTenantSubscriptionUsage","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionUsage"}}}}}}},"/api/tenant/subscription/trendzUsed":{"get":{"tags":["subscription-controller"],"operationId":"trendzUsed","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/tenant/subscription/mergedProfileConfig":{"get":{"tags":["subscription-controller"],"operationId":"getMergedTenantProfileConfiguration","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultTenantProfileConfiguration"}}}}}}},"/api/tenant/info/{tenantId}":{"get":{"tags":["tenant-controller"],"summary":"Get Tenant Info (getTenantInfoById)","description":"Fetch the Tenant Info object based on the provided Tenant Id. The Tenant Info object extends regular Tenant object and includes Tenant Profile name. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTenantInfoById","parameters":[{"name":"tenantId","in":"path","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantInfo"}}}}}}},"/api/tenant/entityViews":{"get":{"tags":["entity-view-controller"],"summary":"Get Tenant Entity Views (getTenantEntityViews)","description":"Returns a page of entity views owned by tenant. Entity Views limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. Every Entity View references exactly one entity (device or asset) and defines telemetry and attribute keys that will be visible to the assigned Customer. As a Tenant Administrator you are able to create multiple EVs per Device or Asset and assign them to different Customers. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantEntityViews","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityView"}}}}}}},"/api/tenant/entityView":{"get":{"tags":["entity-view-controller"],"summary":"Get Entity View by name (getTenantEntityViewByName)","description":"Fetch the Entity View object based on the tenant id and entity view name. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantEntityViewByName","parameters":[{"name":"entityViewName","in":"query","description":"Entity View name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityView"}}}}}}},"/api/tenant/edges":{"get":{"tags":["edge-controller"],"summary":"Get Tenant Edges (getTenantEdges)","description":"Returns a page of edges owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantEdges","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"A string value representing the edge type. For example, 'default'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdge"}}}}}}},"/api/tenant/edge":{"get":{"tags":["edge-controller"],"summary":"Get Tenant Edge by name (getTenantEdgeByName)","description":"Requested edge must be owned by tenant or customer that the user belongs to. Edge name is an unique property of edge. So it can be used to identify the edge.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantEdgeByName","parameters":[{"name":"edgeName","in":"query","description":"Unique name of the edge","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edge"}}}}}}},"/api/tenant/devices":{"get":{"tags":["device-controller"],"summary":"Get Tenant Devices (getTenantDevices)","description":"Returns a page of devices owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getTenantDevices","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"Device type as the name of the device profile","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deviceProfileName","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDevice"}}}}}}},"/api/tenant/device":{"get":{"tags":["device-controller"],"summary":"Get Tenant Device (getTenantDevice)","description":"Requested device must be owned by tenant that the user belongs to. Device name is an unique property of device. So it can be used to identify the device.\n\nAvailable for users with 'TENANT_ADMIN' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getTenantDeviceByName","parameters":[{"name":"deviceName","in":"query","description":"A string value representing the Device name.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}}}}},"/api/tenant/dashboards":{"get":{"tags":["dashboard-controller"],"summary":"Get Tenant Dashboards (getTenantDashboards)","description":"Returns a page of dashboard info objects owned by the tenant of a current user. The Dashboard Info object contains lightweight information about the dashboard (e.g. title, image, assigned customers) but does not contain the heavyweight configuration JSON. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantDashboards","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"mobile","in":"query","description":"Exclude dashboards that are hidden for mobile","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the dashboard title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDashboardInfo"}}}}}}},"/api/tenant/customers":{"get":{"tags":["customer-controller"],"summary":"Get Tenant Customer by Customer title (getTenantCustomer)","description":"Get the Customer using Customer Title. \n\nAvailable for users with 'TENANT_ADMIN' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getTenantCustomer","parameters":[{"name":"customerTitle","in":"query","description":"A string value representing the Customer title.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}}},"/api/tenant/assets":{"get":{"tags":["asset-controller"],"summary":"Get Tenant Assets (getTenantAssets)","description":"Returns a page of assets owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getTenantAssets","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"Asset type","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAsset"}}}}}}},"/api/tenant/asset":{"get":{"tags":["asset-controller"],"summary":"Get Tenant Asset (getTenantAssetByName)","description":"Requested asset must be owned by tenant that the user belongs to. Asset name is an unique property of asset. So it can be used to identify the asset.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getTenantAssetByName","parameters":[{"name":"assetName","in":"query","description":"A string value representing the Asset name.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}}}},"/api/tenant/agents":{"get":{"tags":["agent-controller"],"summary":"Get Tenant Agents (getTenantAgents)","description":"Returns a page of agents owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantAgents","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value representing agent name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgent"}}}}}}},"/api/tenant/agentInfos":{"get":{"tags":["agent-controller"],"summary":"Get Tenant Agent Infos (getTenantAgentInfos)","description":"Returns a page of agent info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantAgentInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value representing agent name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentInfo"}}}}}}},"/api/tenant/agent/profiles":{"get":{"tags":["agent-profile-controller"],"summary":"Get Tenant Agent Profiles (getTenantAgentProfiles)","description":"Returns a page of Agent Profile objects owned by the current tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantAgentProfiles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentProfile"}}}}}}},"/api/tenant/agent/profileInfos":{"get":{"tags":["agent-profile-controller"],"summary":"Get Tenant Agent Profile Infos (getTenantAgentProfileInfos)","description":"Returns a page of Agent Profile Info objects owned by the current tenant. Agent Profile Info is a lightweight object that contains only id and name of the profile. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantAgentProfileInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentProfileInfo"}}}}}}},"/api/tenant/agent/app/profiles":{"get":{"tags":["agent-app-profile-controller"],"summary":"Get Tenant Agent Application Profiles (getTenantAgentAppProfiles)","description":"Returns a page of agent application profiles owned by tenant.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantAgentAppProfiles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional search text","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentAppProfile"}}}}}}},"/api/system/info":{"get":{"tags":["system-info-controller"],"summary":"Get platform version (getSystemVersionInfo)","description":"Returns the version and edition of the platform build.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getSystemVersionInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemVersionInfo"}}}}}}},"/api/signup/termsOfUseAccepted":{"get":{"tags":["sign-up-controller"],"summary":"Check Terms Of User (termsOfUseAccepted)","description":"Checks that current user accepted the privacy policy.","operationId":"termsOfUseAccepted","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/signup/privacyPolicyAccepted":{"get":{"tags":["sign-up-controller"],"summary":"Check privacy policy (privacyPolicyAccepted)","description":"Checks that current user accepted the privacy policy.","operationId":"privacyPolicyAccepted","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/signup/displayWelcome":{"get":{"tags":["sign-up-controller"],"operationId":"isDisplayWelcome","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/secrets":{"get":{"tags":["secret-controller"],"summary":"Get Tenant Secret infos (getSecretInfos)","description":"Returns a page of secret infos owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getSecretInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the secret name and description.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataSecretInfo"}}}}}}},"/api/secret/{id}/info":{"get":{"tags":["secret-controller"],"summary":"Get Secret info by Id (getSecretInfoById)","description":"\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getSecretInfoById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretInfo"}}}}}}},"/api/secret/names":{"get":{"tags":["secret-controller"],"summary":"Get Tenant Secret names (getSecretNames)","description":"Returns a page of secret names owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getSecretNames","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/schedulerEvents":{"get":{"tags":["scheduler-event-controller"],"summary":"Get scheduler events (getSchedulerEvents)","description":"Requested scheduler events must be owned by tenant or assigned to customer which user is performing the request. Scheduler Event With Customer Info extends Scheduler Event Info object and adds 'customerTitle' - a String value representing the title of the customer which user created a Scheduler Event and 'customerIsPublic' - a boolean parameter that specifies if customer is public. See the 'Model' tab of the Response Class for more details. \n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getSchedulerEvents","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on event's name, type, or customer's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","description":"A string value representing the scheduler type. For example, 'generateReport'","required":false,"schema":{"type":"string"}},{"name":"edgeId","in":"query","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataSchedulerEventWithCustomerInfo"}}}}}}},"/api/schedulerEvents/startTime/{startTime}/endTime/{endTime}":{"get":{"tags":["scheduler-event-controller"],"summary":"Get scheduler events (getSchedulerEventsByRange)","description":"Retrieves scheduler events filtering by event run time. Requested scheduler events must be owned by tenant or assigned to customer which user is performing the request. Scheduler Event With Customer Info extends Scheduler Event Info object and adds 'customerTitle' - a String value representing the title of the customer which user created a Scheduler Event and 'customerIsPublic' - a boolean parameter that specifies if customer is public. See the 'Model' tab of the Response Class for more details. \n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getSchedulerEventsByRange","parameters":[{"name":"startTime","in":"path","description":"Start time filter in milliseconds for scheduler event run time","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"path","description":"End time filter in milliseconds for scheduler event run time","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"type","in":"query","description":"A string value representing the scheduler type. For example, 'generateReport'","required":false,"schema":{"type":"string"}},{"name":"edgeId","in":"query","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on event's name, type, or customer's name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchedulerEventWithCustomerInfo"}}}}}}}},"/api/schedulerEvents/list":{"get":{"tags":["scheduler-event-controller"],"summary":"Get Scheduler Events By Ids (getSchedulerEventsByIds)","description":"Requested scheduler events must be owned by tenant or assigned to customer which user is performing the request. Scheduler Events allows you to schedule various types of events with flexible schedule configuration. Scheduler fires configured scheduler events according to their schedule. See the 'Model' tab of the Response Class for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getSchedulerEventsByIds","parameters":[{"name":"schedulerEventIds","in":"query","description":"A list of scheduler event ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchedulerEventInfo"}}}}}}}},"/api/schedulerEvents/all":{"get":{"tags":["scheduler-event-controller"],"summary":"Get all scheduler events (getAllSchedulerEvents)","description":"Requested scheduler events must be owned by tenant or assigned to customer which user is performing the request. Scheduler Event With Customer Info extends Scheduler Event Info object and adds 'customerTitle' - a String value representing the title of the customer which user created a Scheduler Event and 'customerIsPublic' - a boolean parameter that specifies if customer is public. See the 'Model' tab of the Response Class for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllSchedulerEvents","parameters":[{"name":"type","in":"query","description":"A string value representing the scheduler type. For example, 'generateReport'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchedulerEventWithCustomerInfo"}}}}}}}},"/api/schedulerEvent/{schedulerEventId}":{"get":{"tags":["scheduler-event-controller"],"summary":"Get Scheduler Event (getSchedulerEventById)","description":"Fetch the SchedulerEvent object based on the provided scheduler event Id. Scheduler Event extends Scheduler Event Info object and adds 'configuration' - a JSON structure of scheduler event configuration. See the 'Model' tab of the Response Class for more details. Referencing non-existing Scheduler Event Id will cause 'Not Found' error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getSchedulerEventById","parameters":[{"name":"schedulerEventId","in":"path","description":"A string value representing the scheduler id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEvent"}}}}}},"delete":{"tags":["scheduler-event-controller"],"summary":"Delete Scheduler Event (deleteSchedulerEvent)","description":"Deletes the scheduler event. Referencing non-existing Scheduler Event Id will cause 'Not Found' error.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteSchedulerEvent","parameters":[{"name":"schedulerEventId","in":"path","description":"A string value representing the scheduler id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/schedulerEvent/info/{schedulerEventId}":{"get":{"tags":["scheduler-event-controller"],"summary":"Get Scheduler Event With Customer Info (getSchedulerEventInfoById)","description":"Fetch the SchedulerEventWithCustomerInfo object based on the provided scheduler event Id. Scheduler Event With Customer Info extends Scheduler Event Info object and adds 'customerTitle' - a String value representing the title of the customer which user created a Scheduler Event and 'customerIsPublic' - a boolean parameter that specifies if customer is public. See the 'Model' tab of the Response Class for more details. Referencing non-existing Scheduler Event Id will cause 'Not Found' error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getSchedulerEventInfoById","parameters":[{"name":"schedulerEventId","in":"path","description":"A string value representing the scheduler id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchedulerEventWithCustomerInfo"}}}}}}},"/api/scheduledReports":{"get":{"tags":["scheduler-event-controller"],"summary":"Get Scheduled Report Events (getScheduledReportEvents)","description":"\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getScheduledReportEvents","parameters":[{"name":"reportTemplateId","in":"query","description":"Report template id","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"userId","in":"query","description":"The user used for report generation.","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the scheduler event name or customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataScheduledReportInfo"}}}}}}},"/api/ruleNode/{ruleNodeId}/debugIn":{"get":{"tags":["rule-chain-controller"],"summary":"Get latest input message (getLatestRuleNodeDebugInput)","description":"Gets the input message from the debug events for specified Rule Chain Id. Referencing non-existing rule chain Id will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLatestRuleNodeDebugInput","parameters":[{"name":"ruleNodeId","in":"path","description":"A string value representing the rule node id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ruleChains":{"get":{"tags":["rule-chain-controller"],"summary":"Get Rule Chains (getRuleChains)","description":"Returns a page of Rule Chains owned by tenant. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRuleChains","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"Rule chain type (CORE or EDGE)","required":false,"schema":{"type":"string","enum":["CORE","EDGE"]}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the rule chain name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","root"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataRuleChain"}}}}}}},"/api/ruleChains/list":{"get":{"tags":["rule-chain-controller"],"summary":"Get Rule Chains By Ids (getRuleChainsByIds)","description":"Requested rule chains must be owned by tenant which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getRuleChainsByIds","parameters":[{"name":"ruleChainIds","in":"query","description":"A list of rule chain ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleChain"}}}}}}}},"/api/ruleChains/export":{"get":{"tags":["rule-chain-controller"],"summary":"Export Rule Chains","description":"Exports all tenant rule chains as one JSON.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"exportRuleChains","parameters":[{"name":"limit","in":"query","description":"A limit of rule chains to export.","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChainData"}}}}}}},"/api/ruleChain/{ruleChainId}":{"get":{"tags":["rule-chain-controller"],"summary":"Get Rule Chain (getRuleChainById)","description":"Fetch the Rule Chain object based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRuleChainById","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChain"}}}}}},"delete":{"tags":["rule-chain-controller"],"summary":"Delete rule chain (deleteRuleChain)","description":"Deletes the rule chain. Referencing non-existing rule chain Id will cause an error. Referencing rule chain that is used in the device profiles will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteRuleChain","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/ruleChain/{ruleChainId}/output/labels":{"get":{"tags":["rule-chain-controller"],"summary":"Get Rule Chain output labels (getRuleChainOutputLabels)","description":"Fetch the unique labels for the \"output\" Rule Nodes that belong to the Rule Chain based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRuleChainOutputLabels","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"uniqueItems":true}}}}}}},"/api/ruleChain/{ruleChainId}/output/labels/usage":{"get":{"tags":["rule-chain-controller"],"summary":"Get output labels usage (getRuleChainOutputLabelsUsage)","description":"Fetch the list of rule chains and the relation types (labels) they use to process output of the current rule chain based on the provided Rule Chain Id. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRuleChainOutputLabelsUsage","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleChainOutputLabelsUsage"}}}}}}}},"/api/ruleChain/{ruleChainId}/metadata":{"get":{"tags":["rule-chain-controller"],"summary":"Get Rule Chain (getRuleChainById)","description":"Fetch the Rule Chain Metadata object based on the provided Rule Chain Id. The metadata object contains information about the rule nodes and their connections.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRuleChainMetaData","parameters":[{"name":"ruleChainId","in":"path","description":"A string value representing the rule chain id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleChainMetaData"}}}}}}},"/api/ruleChain/tbelEnabled":{"get":{"tags":["rule-chain-controller"],"summary":"Is TBEL script executor enabled","description":"Returns 'True' if the TBEL script execution is enabled\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"isTbelEnabled","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/ruleChain/autoAssignToEdgeRuleChains":{"get":{"tags":["rule-chain-controller"],"summary":"Get Auto Assign To Edge Rule Chains (getAutoAssignToEdgeRuleChains)","description":"Returns a list of Rule Chains that will be assigned to a newly created edge. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAutoAssignToEdgeRuleChains","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RuleChain"}}}}}}}},"/api/rpc/persistent/{rpcId}":{"get":{"tags":["rpc-v-2-controller"],"summary":"Get persistent RPC request","description":"Get information about the status of the RPC call.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getPersistedRpc","parameters":[{"name":"rpcId","in":"path","description":"A string value representing the rpc id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rpc"}}}}}},"delete":{"tags":["rpc-v-2-controller"],"summary":"Delete persistent RPC","description":"Deletes the persistent RPC request.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteRpc","parameters":[{"name":"rpcId","in":"path","description":"A string value representing the rpc id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/rpc/persistent/device/{deviceId}":{"get":{"tags":["rpc-v-2-controller"],"summary":"Get persistent RPC requests","description":"Allows to query RPC calls for specific device using pagination.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getPersistedRpcByDevice","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"rpcStatus","in":"query","description":"Status of the RPC","required":false,"schema":{"type":"string","enum":["QUEUED","SENT","DELIVERED","SUCCESSFUL","TIMEOUT","EXPIRED","FAILED"]}},{"name":"textSearch","in":"query","description":"Not implemented. Leave empty.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","expirationTime","request","response"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataRpc"}}}}}}},"/api/roles":{"get":{"tags":["role-controller"],"summary":"Get Roles (getRoles)","description":"Returns a page of roles that are available for the current user. Role Contains a set of permissions. Role has two types. Generic Role may be assigned to the user group and will provide permissions for all entities of a certain type. Group Role may be assigned to both user and entity group and will provides permissions only for the entities that belong to specified entity group. The assignment of the Role to the User Group is done using [Group Permission Controller](/swagger-ui.html#/group-permission-controller).You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getRoles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"type","in":"query","description":"Type of the role","required":false,"schema":{"type":"string","enum":["GENERIC","GROUP"]}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the role name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","description"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataRole"}}}}}}},"/api/roles/list":{"get":{"tags":["role-controller"],"summary":"Get Roles By Ids (getRolesByIds)","description":"Returns the list of rows based on their ids. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getRolesByIds","parameters":[{"name":"roleIds","in":"query","description":"A list of role ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Role"}}}}}}}},"/api/role/{roleId}":{"get":{"tags":["role-controller"],"summary":"Get Role by Id (getRoleById)","description":"Fetch the Role object based on the provided Role Id. Role Contains a set of permissions. Role has two types. Generic Role may be assigned to the user group and will provide permissions for all entities of a certain type. Group Role may be assigned to both user and entity group and will provides permissions only for the entities that belong to specified entity group. The assignment of the Role to the User Group is done using [Group Permission Controller](/swagger-ui.html#/group-permission-controller). Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getRoleById","parameters":[{"name":"roleId","in":"path","description":"A string value representing the role id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Role"}}}}}},"delete":{"tags":["role-controller"],"summary":"Delete role (deleteRole)","description":"Deletes the role. Referencing non-existing role Id will cause an error.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteRole","parameters":[{"name":"roleId","in":"path","description":"A string value representing the role id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/resource/{resourceType}/{scope}/{key}":{"get":{"tags":["tb-resource-controller"],"summary":"Download resource (downloadResourceIfChanged)","description":"Download resource with a given type and key for the given scope\n\nAvailable for any authorized user. ","operationId":"downloadResourceIfChanged","parameters":[{"name":"resourceType","in":"path","description":"Type of the resource","required":true,"schema":{"type":"string","enum":["lwm2m_model","jks","pkcs_12","js_module","dashboard"]}},{"name":"scope","in":"path","description":"Scope of the resource","required":true,"schema":{"type":"string","enum":["system","tenant"]}},{"name":"key","in":"path","description":"Key of the resource, e.g. 'extension.js'","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/resource/{resourceType}/{scope}/{key}/info":{"get":{"tags":["tb-resource-controller"],"summary":"Get resource info (getResourceInfo)","description":"Get info for the resource with the given type, scope and key. Resource Info is a lightweight object that includes main information about the Resource excluding the heavyweight data. \n\nAvailable for any authorized user. ","operationId":"getResourceInfo","parameters":[{"name":"resourceType","in":"path","description":"Type of the resource","required":true,"schema":{"type":"string","enum":["lwm2m_model","jks","pkcs_12","js_module","dashboard"]}},{"name":"scope","in":"path","description":"Scope of the resource","required":true,"schema":{"type":"string","enum":["system","tenant"]}},{"name":"key","in":"path","description":"Key of the resource, e.g. 'extension.js'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/resource/{resourceId}":{"get":{"tags":["tb-resource-controller"],"summary":"Get Resource (getResourceById)","description":"Fetch the Resource object based on the provided Resource Id. Resource is a heavyweight object that includes main information about the Resource and also data. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getResourceById","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResource"}}}}},"deprecated":true},"delete":{"tags":["tb-resource-controller"],"summary":"Delete Resource (deleteResource)","description":"Deletes the Resource. Referencing non-existing Resource Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteResource","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceDeleteResult"}}}}}}},"/api/resource/{resourceId}/download":{"get":{"tags":["tb-resource-controller"],"summary":"Download Resource (downloadResource)","description":"Download Resource based on the provided Resource Id.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"downloadResource","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/resource/tenant":{"get":{"tags":["tb-resource-controller"],"summary":"Get All Resource Infos (getTenantResources)","description":"Returns a page of Resource Info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Resource Info is a lightweight object that includes main information about the Resource excluding the heavyweight data. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getTenantResources","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the resource title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","resourceType","tenantId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTbResourceInfo"}}}}}}},"/api/resource/pkcs12/{resourceId}/download":{"get":{"tags":["tb-resource-controller"],"summary":"Download PKCS_12 Resource (downloadPkcs12ResourceIfChanged)","description":"Download Resource based on the provided Resource Id or return 304 status code if resource was not changed.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"downloadPkcs12ResourceIfChanged","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/x-pkcs12":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/resource/lwm2m":{"get":{"tags":["tb-resource-controller"],"summary":"Get LwM2M Objects (getLwm2mListObjects)","description":"Returns a page of LwM2M objects parsed from Resources with type 'LWM2M_MODEL' owned by tenant or sysadmin. You can specify parameters to filter the results. LwM2M Object is a object that includes information about the LwM2M model which can be used in transport configuration for the LwM2M device profile. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLwm2mListObjects","parameters":[{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":true,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":true,"schema":{"type":"string","enum":["id","name"]}},{"name":"objectIds","in":"query","description":"LwM2M Object ids.","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LwM2mObject"}}}}}}}},"/api/resource/lwm2m/{resourceId}/download":{"get":{"tags":["tb-resource-controller"],"summary":"Download LWM2M Resource (downloadLwm2mResourceIfChanged)","description":"Download Resource based on the provided Resource Id or return 304 status code if resource was not changed.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"downloadLwm2mResourceIfChanged","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/xml":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/resource/lwm2m/page":{"get":{"tags":["tb-resource-controller"],"summary":"Get LwM2M Objects (getLwm2mListObjectsPage)","description":"Returns a page of LwM2M objects parsed from Resources with type 'LWM2M_MODEL' owned by tenant or sysadmin. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. LwM2M Object is a object that includes information about the LwM2M model which can be used in transport configuration for the LwM2M device profile. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLwm2mListObjectsPage","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the resource title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["id","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LwM2mObject"}}}}}}}},"/api/resource/list":{"get":{"tags":["tb-resource-controller"],"summary":"Get Resource Infos by ids (getSystemOrTenantResourcesByIds)","operationId":"getSystemOrTenantResourcesByIds","parameters":[{"name":"resourceIds","in":"query","description":"A list of resource ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}}},"/api/resource/js/{resourceId}/download":{"get":{"tags":["tb-resource-controller"],"summary":"Download JS Resource (downloadJsResourceIfChanged)","description":"Download Resource based on the provided Resource Id or return 304 status code if resource was not changed.\n\nAvailable for any authorized user. ","operationId":"downloadJsResourceIfChanged","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/javascript":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/resource/jks/{resourceId}/download":{"get":{"tags":["tb-resource-controller"],"summary":"Download JKS Resource (downloadJksResourceIfChanged)","description":"Download Resource based on the provided Resource Id or return 304 status code if resource was not changed.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"downloadJksResourceIfChanged","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/x-java-keystore":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/resource/info/{resourceId}":{"get":{"tags":["tb-resource-controller"],"summary":"Get Resource Info (getResourceInfoById)","description":"Fetch the Resource Info object based on the provided Resource Id. Resource Info is a lightweight object that includes main information about the Resource excluding the heavyweight data. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getResourceInfoById","parameters":[{"name":"resourceId","in":"path","description":"A string value representing the resource id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbResourceInfo"}}}}}}},"/api/reportTemplates":{"get":{"tags":["report-template-controller"],"summary":"Get report templates by Report Template Ids (getReportTemplatesByIds)","description":"Returns a list of ReportTemplateInfo objects based on the provided ids. Filters the list based on the user permissions. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getReportTemplatesByIds","parameters":[{"name":"reportTemplateIds","in":"query","description":"A list of report template ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReportTemplateInfo"}}}}}}}},"/api/reportTemplateInfos/all":{"get":{"tags":["report-template-controller"],"summary":"Get All Report Templates for current user (getAllReportTemplateInfos)","description":"Returns a page of report template info objects owned by the tenant or the customer of a current user. Report Templates allows you to create reports according to the report template configuration. Report service uses report template configuration to generate report. See the 'Model' tab of the Response Class for more details.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllReportTemplateInfos","parameters":[{"name":"typeList","in":"query","description":"A list of string values separated by comma ',' representing one of the ReportTemplateType enumeration value.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["REPORT","SUB_REPORT"]}}},{"name":"formatList","in":"query","description":"A list of string values separated by comma ',' representing one of the TbReportFormat enumeration value.","required":false,"schema":{"type":"array","items":{"type":"string","enum":["PDF","CSV"]}}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the report template name or customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","ownerName"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataReportTemplateInfo"}}}}}}},"/api/reportTemplate/{reportTemplateId}":{"get":{"tags":["report-template-controller"],"summary":"Get Report Template (getReportTemplateById)","description":"Fetch the ReportTemplate object based on the provided report template Id. Report Template extends Report Template Info object and adds 'configuration' - a JSON structure of report template configuration. See the 'Model' tab of the Response Class for more details. Referencing non-existing Report Template Id will cause 'Not Found' error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getReportTemplateById","parameters":[{"name":"reportTemplateId","in":"path","description":"A string value representing the report template id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportTemplate"}}}}}},"delete":{"tags":["report-template-controller"],"summary":"Delete Report Template (deleteReportTemplate)","description":"Deletes the report template. Referencing non-existing Report Template Id will cause 'Not Found' error.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteReportTemplate","parameters":[{"name":"reportTemplateId","in":"path","description":"A string value representing the report template id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/reportTemplate/info/{reportTemplateId}":{"get":{"tags":["report-template-controller"],"summary":"Get Report Template Info (getReportTemplateInfoById)","description":"Fetch the ReportTemplateInfo object based on the provided report template Id. Report Templates allows you to create reports according to the report template configuration. Report service uses report template configuration to generate report. See the 'Model' tab of the Response Class for more details. Referencing non-existing Report Template Id will cause 'Not Found' error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getReportTemplateInfoById","parameters":[{"name":"reportTemplateId","in":"path","description":"A string value representing the report template id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportTemplateInfo"}}}}}}},"/api/relations/to/{toType}/{toId}":{"get":{"tags":["entity-relation-controller"],"summary":"Get List of Relations (findEntityRelationsByTo)","description":"Returns list of relation objects for the specified entity by the 'to' direction. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer.","operationId":"findEntityRelationsByTo","parameters":[{"name":"toType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"toId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}}}}}}},"/api/relations/to/{toType}/{toId}/{relationType}":{"get":{"tags":["entity-relation-controller"],"summary":"Get List of Relations (findEntityRelationsByToAndRelationType)","description":"Returns list of relation objects for the specified entity by the 'to' direction and relation type. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer.","operationId":"findEntityRelationsByToAndRelationType","parameters":[{"name":"toType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"toId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"relationType","in":"path","description":"A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value.","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}}}}}}},"/api/relations/info/to/{toType}/{toId}":{"get":{"tags":["entity-relation-controller"],"summary":"Get List of Relation Infos (findEntityRelationInfosByTo)","description":"Returns list of relation info objects for the specified entity by the 'to' direction. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer. Relation Info is an extension of the default Relation object that contains information about the 'from' and 'to' entity names. ","operationId":"findEntityRelationInfosByTo","parameters":[{"name":"toType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"toId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelationInfo"}}}}}}}},"/api/relations/info/from/{fromType}/{fromId}":{"get":{"tags":["entity-relation-controller"],"summary":"Get List of Relation Infos (findEntityRelationInfosByFrom)","description":"Returns list of relation info objects for the specified entity by the 'from' direction. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer. Relation Info is an extension of the default Relation object that contains information about the 'from' and 'to' entity names. ","operationId":"findEntityRelationInfosByFrom","parameters":[{"name":"fromType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"fromId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelationInfo"}}}}}}}},"/api/relations/from/{fromType}/{fromId}":{"get":{"tags":["entity-relation-controller"],"summary":"Get List of Relations (findEntityRelationsByFrom)","description":"Returns list of relation objects for the specified entity by the 'from' direction. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer.","operationId":"findEntityRelationsByFrom","parameters":[{"name":"fromType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"fromId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}}}}}}},"/api/relations/from/{fromType}/{fromId}/{relationType}":{"get":{"tags":["entity-relation-controller"],"summary":"Get List of Relations (findEntityRelationsByFromAndRelationType)","description":"Returns list of relation objects for the specified entity by the 'from' direction and relation type. \n\nIf the user has the authority of 'System Administrator', the server checks that the entity is owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that the entity is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the entity is assigned to the same customer.","operationId":"findEntityRelationsByFromAndRelationType","parameters":[{"name":"fromType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"fromId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"relationType","in":"path","description":"A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value.","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}}}}}}}},"/api/relation":{"get":{"tags":["entity-relation-controller"],"summary":"Get Relation (getRelation)","description":"Returns relation object between two specified entities if present. Otherwise throws exception. \n\nIf the user has the authority of 'System Administrator', the server checks that 'from' and 'to' entities are owned by the sysadmin. If the user has the authority of 'Tenant Administrator', the server checks that 'from' and 'to' entities are owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the 'from' and 'to' entities are assigned to the same customer.","operationId":"getRelation","parameters":[{"name":"fromId","in":"query","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"fromType","in":"query","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"relationType","in":"query","description":"A string value representing relation type between entities. For example, 'Contains', 'Manages'. It can be any string value.","required":true,"schema":{"type":"string"}},{"name":"relationTypeGroup","in":"query","description":"A string value representing relation type group. For example, 'COMMON'","required":false,"schema":{"type":"string"}},{"name":"toId","in":"query","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"toType","in":"query","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityRelation"}}}}}}},"/api/queues/{queueId}":{"get":{"tags":["queue-controller"],"summary":"Get Queue (getQueueById)","description":"Fetch the Queue object based on the provided Queue Id. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getQueueById","parameters":[{"name":"queueId","in":"path","description":"A string value representing the queue id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}}}},"delete":{"tags":["queue-controller"],"summary":"Delete Queue (deleteQueue)","description":"Deletes the Queue. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"deleteQueue","parameters":[{"name":"queueId","in":"path","description":"A string value representing the queue id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/queues/name/{queueName}":{"get":{"tags":["queue-controller"],"summary":"Get Queue (getQueueByName)","description":"Fetch the Queue object based on the provided Queue name. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getQueueByName","parameters":[{"name":"queueName","in":"path","description":"A string value representing the queue id. For example, 'Main'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Queue"}}}}}}},"/api/queueStats":{"get":{"tags":["queue-stats-controller"],"summary":"Get Queue Stats entities (getTenantQueueStats)","description":"Returns a page of queue stats objects that are designed to collect queue statistics for every service. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTenantQueueStats","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the queue name or service id.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataQueueStats"}}}}}}},"/api/queueStats/{queueStatsId}":{"get":{"tags":["queue-stats-controller"],"summary":"Get Queue stats entity by id (getQueueStatsById)","description":"Fetch the Queue stats object based on the provided Queue stats id. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getQueueStatsById","parameters":[{"name":"queueStatsId","in":"path","description":"A string value representing the queue stats id. For example, '687f294c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueueStats"}}}}}}},"/api/queueStats/list":{"get":{"tags":["queue-stats-controller"],"summary":"Get QueueStats By Ids (getQueueStatsByIds)","description":"Fetch the Queue stats objects based on the provided ids. ","operationId":"getQueueStatsByIds","parameters":[{"name":"queueStatsIds","in":"query","description":"A list of queue stats ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QueueStats"}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/values/timeseries/history":{"get":{"tags":["telemetry-controller"],"summary":"Get time series data (getTimeseriesHistory)","description":"Returns a range of time series values for specified entity. Returns not aggregated data by default. Use aggregation function ('agg') and aggregation interval ('interval') to enable aggregation of the results on the database / server side. The aggregation is generally more efficient then fetching all records. \n\n```json\n{\n  \"temperature\": [\n    {\n      \"value\": 36.7,\n      \"ts\": 1609459200000\n    },\n    {\n      \"value\": 36.6,\n      \"ts\": 1609459201000\n    }\n  ]\n}\n```\n\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getTimeseriesHistory","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of telemetry keys.","required":false,"schema":{"type":"string"}},{"name":"startTs","in":"query","description":"A long value representing the start timestamp of the time range in milliseconds, UTC.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endTs","in":"query","description":"A long value representing the end timestamp of the time range in milliseconds, UTC.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"intervalType","in":"query","description":"A string value representing the type fo the interval.","required":false,"schema":{"type":"string","enum":["MILLISECONDS","WEEK","WEEK_ISO","MONTH","QUARTER"]}},{"name":"interval","in":"query","description":"A long value representing the aggregation interval range in milliseconds.","required":false,"schema":{"type":"integer","format":"int64","default":0}},{"name":"timeZone","in":"query","description":"A string value representing the timezone that will be used to calculate exact timestamps for 'WEEK', 'WEEK_ISO', 'MONTH' and 'QUARTER' interval types.","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"An integer value that represents a max number of time series data points to fetch. This parameter is used only in the case if 'agg' parameter is set to 'NONE'.","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"agg","in":"query","description":"A string value representing the aggregation function. If the interval is not specified, 'agg' parameter will use 'NONE' value.","required":false,"schema":{"type":"string","enum":["MIN","MAX","AVG","SUM","COUNT","NONE"]}},{"name":"orderBy","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"useStrictDataTypes","in":"query","description":"Enables/disables conversion of telemetry values to strings. Conversion is enabled by default. Set parameter to 'true' in order to disable the conversion.","required":false,"schema":{"type":"boolean","default":false}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TsData"}}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/values/attributes":{"get":{"tags":["telemetry-controller"],"summary":"Get attributes (getAttributes)","description":"Returns all attributes that belong to specified entity. Use optional 'keys' parameter to return specific attributes.\n Example of the result: \n\n```json\n[\n  {\"key\": \"stringAttributeKey\", \"value\": \"value\", \"lastUpdateTs\": 1609459200000},\n  {\"key\": \"booleanAttributeKey\", \"value\": false, \"lastUpdateTs\": 1609459200001},\n  {\"key\": \"doubleAttributeKey\", \"value\": 42.2, \"lastUpdateTs\": 1609459200002},\n  {\"key\": \"longKeyExample\", \"value\": 73, \"lastUpdateTs\": 1609459200003},\n  {\"key\": \"jsonKeyExample\",\n    \"value\": {\n      \"someNumber\": 42,\n      \"someArray\": [1,2,3],\n      \"someNestedObject\": {\"key\": \"value\"}\n    },\n    \"lastUpdateTs\": 1609459200004\n  }\n]\n```\n\n Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAttributes","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. If attribute keys contain comma, duplicate 'key' parameter for each key, for example '?key=my,key&key=my,second,key","required":false,"schema":{"type":"string"}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttributeData"}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/values/attributes/{scope}":{"get":{"tags":["telemetry-controller"],"summary":"Get attributes by scope (getAttributesByScope)","description":"Returns all attributes of a specified scope that belong to specified entity. List of possible attribute scopes depends on the entity type: \n\n * SERVER_SCOPE - supported for all entity types;\n * SHARED_SCOPE - supported for devices;\n * CLIENT_SCOPE - supported for devices. \n\nUse optional 'keys' parameter to return specific attributes.\n Example of the result: \n\n```json\n[\n  {\"key\": \"stringAttributeKey\", \"value\": \"value\", \"lastUpdateTs\": 1609459200000},\n  {\"key\": \"booleanAttributeKey\", \"value\": false, \"lastUpdateTs\": 1609459200001},\n  {\"key\": \"doubleAttributeKey\", \"value\": 42.2, \"lastUpdateTs\": 1609459200002},\n  {\"key\": \"longKeyExample\", \"value\": 73, \"lastUpdateTs\": 1609459200003},\n  {\"key\": \"jsonKeyExample\",\n    \"value\": {\n      \"someNumber\": 42,\n      \"someArray\": [1,2,3],\n      \"someNestedObject\": {\"key\": \"value\"}\n    },\n    \"lastUpdateTs\": 1609459200004\n  }\n]\n```\n\n Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAttributesByScope","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE","CLIENT_SCOPE"]}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of attributes keys. For example, 'active,inactivityAlarmTime'. If attribute keys contain comma, duplicate 'key' parameter for each key, for example '?key=my,key&key=my,second,key","required":false,"schema":{"type":"string"}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttributeData"}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/keys/timeseries":{"get":{"tags":["telemetry-controller"],"summary":"Get time series keys (getTimeseriesKeys)","description":"Returns a set of unique time series key names for the selected entity. \n\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getTimeseriesKeys","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/keys/attributes":{"get":{"tags":["telemetry-controller"],"summary":"Get all attribute keys (getAttributeKeys)","description":"Returns a set of unique attribute key names for the selected entity. The response will include merged key names set for all attribute scopes:\n\n * SERVER_SCOPE - supported for all entity types;\n * CLIENT_SCOPE - supported for devices;\n * SHARED_SCOPE - supported for devices. \n\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAttributeKeys","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/keys/attributes/{scope}":{"get":{"tags":["telemetry-controller"],"summary":"Get all attribute keys by scope (getAttributeKeysByScope)","description":"Returns a set of unique attribute key names for the selected entity and attributes scope: \n\n * SERVER_SCOPE - supported for all entity types;\n * CLIENT_SCOPE - supported for devices;\n * SHARED_SCOPE - supported for devices. \n\nReferencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAttributeKeysByScope","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"scope","in":"path","description":"A string value representing the attributes scope. For example, 'SERVER_SCOPE'.","required":true,"schema":{"type":"string","enum":["SERVER_SCOPE","SHARED_SCOPE","CLIENT_SCOPE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/permissions/allowedPermissions":{"get":{"tags":["user-permissions-controller"],"summary":"Get Permissions (getAllowedPermissions)","description":"Returns a complex object that describes:\n\n * all possible (both granted and not granted) permissions for the authority of the user (Tenant or Customer);\n * all granted permissions for the user;\n\n The result impacts UI behavior and hides certain UI elements if user has no permissions to invoke the related operations. Nevertheless, all API calls check the permissions each time they are executed on the server side.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllowedPermissions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedPermissionsInfo"}}}}}}},"/api/permission/{entityType}/{entityId}/{operation}":{"get":{"tags":["user-permissions-controller"],"summary":"Check permission for specified entity (hasEntityPermission)","description":"Returns true if the user has permission to perform the operation, and false otherwise.\n","operationId":"hasEntityPermission","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"operation","in":"path","description":"A string value representing permission operation. For example, 'READ', 'WRITE', 'DELETE', 'CREATE', 'ALL'","required":true,"schema":{"type":"string","enum":["ALL","CREATE","READ","WRITE","DELETE","RPC_CALL","READ_CREDENTIALS","WRITE_CREDENTIALS","READ_ATTRIBUTES","WRITE_ATTRIBUTES","READ_TELEMETRY","WRITE_TELEMETRY","ADD_TO_GROUP","REMOVE_FROM_GROUP","CHANGE_OWNER","IMPERSONATE","CLAIM_DEVICES","SHARE_GROUP","ASSIGN_TO_TENANT","READ_CALCULATED_FIELD","WRITE_CALCULATED_FIELD","INVOKE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/owners":{"get":{"tags":["entity-group-controller"],"summary":"Get Owners (getOwners)","description":"Provides a rage view of Customers that the current user has READ access to. If the current user is Tenant administrator, the result set also contains the tenant. The call is designed for the UI auto-complete component to show tenant and all possible Customers that the user may select to change the owner of the particular entity or entity group.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getOwners","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataContactBasedObject"}}}}}}},"/api/ownerInfos":{"get":{"tags":["entity-group-controller"],"summary":"Get Owner Infos (getOwnerInfos)","description":"Provides a rage view of Customers that the current user has READ access to. If the current user is Tenant administrator, the result set also contains the tenant. The call is designed for the UI auto-complete component to show tenant and all possible Customers that the user may select to change the owner of the particular entity or entity group.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getOwnerInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/ownerInfo/{ownerType}/{ownerId}":{"get":{"tags":["entity-group-controller"],"summary":"Get Owner Info (getOwnerInfo)","description":"Fetch the owner info (tenant or customer) presented as Entity Info object based on the provided owner Id. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getOwnerInfo","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInfo"}}}}}}},"/api/otaPackages":{"get":{"tags":["ota-package-controller"],"summary":"Get OTA Package Infos (getOtaPackages)","description":"Returns a page of OTA Package Info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getOtaPackages","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the ota package title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","type","title","version","tag","url","fileName","dataSize","checksum"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataOtaPackageInfo"}}}}}}},"/api/otaPackages/{deviceProfileId}/{type}":{"get":{"tags":["ota-package-controller"],"summary":"Get OTA Package Infos by Device Profile and Type (getOtaPackagesByDeviceProfileAndType)","description":"Returns a page of OTA Package Info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getOtaPackagesByDeviceProfileAndType","parameters":[{"name":"deviceProfileId","in":"path","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"type","in":"path","description":"OTA Package type.","required":true,"schema":{"type":"string","enum":["FIRMWARE","SOFTWARE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the ota package title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","type","title","version","tag","url","fileName","dataSize","checksum"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataOtaPackageInfo"}}}}}}},"/api/otaPackages/group/{groupId}/{type}":{"get":{"tags":["ota-package-controller"],"summary":"Get group OTA Package Infos (getGroupOtaPackages)","description":"Returns a page of OTA Package Info objects owned by tenant, and by entity group. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getGroupOtaPackages","parameters":[{"name":"groupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"type","in":"path","description":"OTA Package type.","required":true,"schema":{"type":"string","enum":["FIRMWARE","SOFTWARE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the ota package title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","type","title","version","tag","url","fileName","dataSize","checksum"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataOtaPackageInfo"}}}}}}},"/api/otaPackage/{otaPackageId}/download":{"get":{"tags":["ota-package-controller"],"summary":"Download OTA Package (downloadOtaPackage)","description":"Download OTA Package based on the provided OTA Package Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"downloadOtaPackage","parameters":[{"name":"otaPackageId","in":"path","description":"A string value representing the ota package id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/otaPackage/info/{otaPackageId}":{"get":{"tags":["ota-package-controller"],"summary":"Get OTA Package Info (getOtaPackageInfoById)","description":"Fetch the OTA Package Info object based on the provided OTA Package Id. OTA Package Info is a lightweight object that includes main information about the OTA Package excluding the heavyweight data. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getOtaPackageInfoById","parameters":[{"name":"otaPackageId","in":"path","description":"A string value representing the ota package id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OtaPackageInfo"}}}}}}},"/api/oauth2/loginProcessingUrl":{"get":{"tags":["o-auth-2-controller"],"summary":"Get OAuth2 log in processing URL (getLoginProcessingUrl)","description":"Returns the URL enclosed in double quotes. After successful authentication with OAuth2 provider, it makes a redirect to this path so that the platform can do further log in processing. This URL may be configured as 'security.oauth2.loginProcessingUrl' property in yml configuration file, or as 'SECURITY_OAUTH2_LOGIN_PROCESSING_URL' env variable. By default it is '/login/oauth2/code/'\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getLoginProcessingUrl","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/oauth2/client/{id}":{"get":{"tags":["o-auth-2-controller"],"summary":"Get OAuth2 Client by id (getOAuth2ClientById)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getOAuth2ClientById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuth2Client"}}}}}},"delete":{"tags":["o-auth-2-controller"],"summary":"Delete oauth2 client (deleteOauth2Client)","description":"Deletes the oauth2 client. Referencing non-existing oauth2 client Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteOauth2Client","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/oauth2/client/list":{"get":{"tags":["o-auth-2-controller"],"summary":"Get OAuth2 Client infos By Ids (findTenantOAuth2ClientInfosByIds)","description":"Fetch OAuth2 Client info objects based on the provided ids. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"findTenantOAuth2ClientInfosByIds","parameters":[{"name":"clientIds","in":"query","description":"A list of oauth2 ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OAuth2ClientInfo"}}}}}}}},"/api/oauth2/client/infos":{"get":{"tags":["o-auth-2-controller"],"summary":"Get OAuth2 Client infos (findOAuth2ClientInfos)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"findOAuth2ClientInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on client's title","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataOAuth2ClientInfo"}}}}}}},"/api/notifications":{"get":{"tags":["notification-controller"],"summary":"Get notifications (getNotifications)","description":"Returns the page of notifications for current user.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for any authorized user. \n\n**WebSocket API**:\n\nThere are 2 types of subscriptions: one for unread notifications count, another for unread notifications themselves.\n\nThe URI for opening WS session for notifications: `/api/ws/plugins/notifications`.\n\nSubscription command for unread notifications count:\n```\n{\n  \"unreadCountSubCmd\": {\n    \"cmdId\": 1234\n  }\n}\n```\nTo subscribe for latest unread notifications:\n```\n{\n  \"unreadSubCmd\": {\n    \"cmdId\": 1234,\n    \"limit\": 10\n  }\n}\n```\nTo unsubscribe from any subscription:\n```\n{\n  \"unsubCmd\": {\n    \"cmdId\": 1234\n  }\n}\n```\nTo mark certain notifications as read, use following command:\n```\n{\n  \"markAsReadCmd\": {\n    \"cmdId\": 1234,\n    \"notifications\": [\n      \"6f860330-7fc2-11ed-b855-7dd3b7d2faa9\",\n      \"5b6dfee0-8d0d-11ed-b61f-35a57b03dade\"\n    ]\n  }\n}\n\n```\nTo mark all notifications as read:\n```\n{\n  \"markAllAsReadCmd\": {\n    \"cmdId\": 1234\n  }\n}\n```\n\n\nUpdate structure for unread **notifications count subscription**:\n```\n{\n  \"cmdId\": 1234,\n  \"totalUnreadCount\": 55\n}\n```\nFor **notifications subscription**:\n- full update of latest unread notifications:\n```\n{\n  \"cmdId\": 1234,\n  \"notifications\": [\n    {\n      \"id\": {\n        \"entityType\": \"NOTIFICATION\",\n        \"id\": \"6f860330-7fc2-11ed-b855-7dd3b7d2faa9\"\n      },\n      ...\n    }\n  ],\n  \"totalUnreadCount\": 1\n}\n```\n- when new notification arrives or shown notification is updated:\n```\n{\n  \"cmdId\": 1234,\n  \"update\": {\n    \"id\": {\n      \"entityType\": \"NOTIFICATION\",\n      \"id\": \"6f860330-7fc2-11ed-b855-7dd3b7d2faa9\"\n    },\n    # updated notification info, text, subject etc.\n    ...\n  },\n  \"totalUnreadCount\": 2\n}\n```\n- when unread notifications count changes:\n```\n{\n  \"cmdId\": 1234,\n  \"totalUnreadCount\": 5\n}\n```","operationId":"getNotifications","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on notification subject or text","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}},{"name":"unreadOnly","in":"query","description":"To search for unread notifications only","required":false,"schema":{"type":"boolean","default":false}},{"name":"deliveryMethod","in":"query","description":"Delivery method","required":false,"schema":{"type":"string","enum":["WEB","MOBILE_APP"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataNotification"}}}}}}},"/api/notifications/unread/count":{"get":{"tags":["notification-controller"],"summary":"Get unread notifications count (getUnreadNotificationsCount)","description":"Returns unread notifications count for chosen delivery method.\n\nAvailable for any authorized user. ","operationId":"getUnreadNotificationsCount","parameters":[{"name":"deliveryMethod","in":"query","description":"Delivery method","required":false,"schema":{"type":"string","enum":["WEB","MOBILE_APP"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int32"}}}}}}},"/api/notification/templates":{"get":{"tags":["notification-template-controller"],"summary":"Get notification templates (getNotificationTemplates)","description":"Returns the page of notification templates owned by sysadmin or tenant.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationTemplates","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on template's name and notification type","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}},{"name":"notificationTypes","in":"query","description":"Comma-separated list of notification types to filter the templates","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataNotificationTemplate"}}}}}}},"/api/notification/template/{id}":{"get":{"tags":["notification-template-controller"],"summary":"Get notification template by id (getNotificationTemplateById)","description":"Fetches notification template by id.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationTemplateById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTemplate"}}}}}},"delete":{"tags":["notification-template-controller"],"summary":"Delete notification template by id (deleteNotificationTemplateById","description":"Deletes notification template by its id.\n\nThis template cannot be referenced by existing scheduled notification requests or any notification rules.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteNotificationTemplateById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/targets":{"get":{"tags":["notification-target-controller"],"summary":"Get notification targets (getNotificationTargets)","description":"Returns the page of notification targets owned by sysadmin or tenant.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationTargets","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filed based on the target's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataNotificationTarget"}}}}}}},"/api/notification/targets/notificationType/{notificationType}":{"get":{"tags":["notification-target-controller"],"summary":"Get notification targets by supported notification type (getNotificationTargetsBySupportedNotificationType)","description":"Returns the page of notification targets filtered by notification type that they can be used for.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationTargetsBySupportedNotificationType","parameters":[{"name":"notificationType","in":"path","description":"Notification type to filter targets by","required":true,"schema":{"$ref":"#/components/schemas/NotificationType"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filed based on the target's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataNotificationTarget"}}}}}}},"/api/notification/targets/list":{"get":{"tags":["notification-target-controller"],"summary":"Get notification targets by ids (getNotificationTargetsByIds)","description":"Returns the list of notification targets found by provided ids.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationTargetsByIds","parameters":[{"name":"ids","in":"query","description":"Comma-separated list of uuids representing targets ids","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationTarget"}}}}}}}},"/api/notification/target/{id}":{"get":{"tags":["notification-target-controller"],"summary":"Get notification target by id (getNotificationTargetById)","description":"Fetches notification target by id.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationTargetById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTarget"}}}}}},"delete":{"tags":["notification-target-controller"],"summary":"Delete notification target by id (deleteNotificationTargetById)","description":"Deletes notification target by its id.\n\nThis target cannot be referenced by existing scheduled notification requests or any notification rules.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteNotificationTargetById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/slack/conversations":{"get":{"tags":["notification-template-controller"],"summary":"List Slack conversations (listSlackConversations)","description":"List available Slack conversations by type.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"listSlackConversations","parameters":[{"name":"type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/SlackConversationType"}},{"name":"token","in":"query","description":"Slack bot token. If absent - system Slack settings will be used","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SlackConversation"}}}}}}}},"/api/notification/rules":{"get":{"tags":["notification-rule-controller"],"summary":"Get notification rules (getNotificationRules)","description":"Returns the page of notification rules.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationRules","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on rule's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataNotificationRuleInfo"}}}}}}},"/api/notification/rule/{id}":{"get":{"tags":["notification-rule-controller"],"summary":"Get notification rule by id (getNotificationRuleById)","description":"Fetches notification rule info by rule's id.\nIn addition to regular notification rule fields, there are `templateName` and `deliveryMethods` in the response.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationRuleById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleInfo"}}}}}},"delete":{"tags":["notification-rule-controller"],"summary":"Delete notification rule (deleteNotificationRule)","description":"Deletes notification rule by id.\nCancels all related scheduled notification requests (e.g. due to escalation table)\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteNotificationRule","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/requests":{"get":{"tags":["notification-controller"],"summary":"Get notification requests (getNotificationRequests)","description":"Returns the page of notification requests submitted by users of this tenant or sysadmins.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationRequests","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filed based on the used template name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataNotificationRequestInfo"}}}}}}},"/api/notification/request/{id}":{"get":{"tags":["notification-controller"],"summary":"Get notification request by id (getNotificationRequestById)","description":"Fetches notification request info by request id.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getNotificationRequestById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRequestInfo"}}}}}},"delete":{"tags":["notification-controller"],"summary":"Delete notification request (deleteNotificationRequest)","description":"Deletes notification request by its id.\n\nIf the request has status `SENT` - all sent notifications for this request will be deleted. If it is `SCHEDULED`, the request will be cancelled.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteNotificationRequest","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/notification/deliveryMethods":{"get":{"tags":["notification-controller"],"summary":"Get available delivery methods (getAvailableDeliveryMethods)","description":"Returns the list of delivery methods that are properly configured and are allowed to be used for sending notifications.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getAvailableDeliveryMethods","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDeliveryMethod"}}}}}}}},"/api/noauth/whiteLabel/loginWhiteLabelParams":{"get":{"tags":["white-labeling-controller"],"summary":"Get Login White Labeling parameters","description":"Returns login white-labeling parameters based on the hostname from request.","operationId":"getLoginWhiteLabelParams","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginWhiteLabelingParams"}}}}}}},"/api/noauth/whiteLabel/loginLogo/{type}/{key}":{"get":{"tags":["image-controller"],"operationId":"downloadLoginLogo","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/noauth/whiteLabel/loginFavicon/{type}/{key}":{"get":{"tags":["image-controller"],"operationId":"downloadLoginFavicon","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/noauth/userPasswordPolicy":{"get":{"tags":["auth-controller"],"summary":"Get the current User password policy (getUserPasswordPolicy)","description":"API call to get the password policy for the password validation form(s).","operationId":"getUserPasswordPolicy","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPasswordPolicy"}}}}}}},"/api/noauth/translation/login/{localeCode}":{"get":{"tags":["translation-controller"],"summary":"Get system translation for login page","description":"Fetch the end-user translation for specified locale.","operationId":"getLoginPageTranslation","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Translation for login page in specified locale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/noauth/signup/recaptchaParams":{"get":{"tags":["sign-up-controller"],"operationId":"getRecaptchaParams","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaClientParams"}}}}}}},"/api/noauth/selfRegistration/termsOfUse":{"get":{"tags":["self-registration-controller"],"summary":"Get Terms of Use for Self Registration form (getTermsOfUse)","description":"Fetch the Terms of Use based on the domain name from the request. Available for non-authorized users. ","operationId":"getTermsOfUse","parameters":[{"name":"pkgName","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PlatformType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/noauth/selfRegistration/signUpSelfRegistrationParams":{"get":{"tags":["self-registration-controller"],"summary":"Get Self Registration form parameters without authentication (getSignUpSelfRegistrationParams)","description":"Fetch the Self Registration parameters based on the domain name from the request. Available for non-authorized users. Contains the information to customize the sign-up form.","operationId":"getSignUpSelfRegistrationParams","parameters":[{"name":"pkgName","in":"query","required":false,"schema":{"type":"string"}},{"name":"platformType","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignUpSelfRegistrationParams"}}}}}}},"/api/noauth/selfRegistration/privacyPolicy":{"get":{"tags":["self-registration-controller"],"summary":"Get Privacy Policy for Self Registration form (getPrivacyPolicy)","description":"Fetch the Privacy Policy based on the domain name from the request. Available for non-authorized users. ","operationId":"getPrivacyPolicy","parameters":[{"name":"pkgName","in":"query","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PlatformType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/noauth/qr":{"get":{"tags":["qr-code-settings-controller"],"operationId":"getApplicationRedirect","parameters":[{"name":"User-Agent","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/noauth/qr/{secret}":{"get":{"tags":["qr-code-settings-controller"],"summary":"Get User Token (getUserTokenByMobileSecret)","description":"Returns the token of the User based on the provided secret key.","operationId":"getUserTokenByMobileSecret","parameters":[{"name":"secret","in":"path","description":"A string value representing short-lived secret key","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtPair"}}}}}}},"/api/noauth/mobile":{"get":{"tags":["mobile-app-controller"],"summary":"Get mobile app login info (getLoginMobileInfo)","operationId":"getLoginMobileInfo","parameters":[{"name":"pkgName","in":"query","description":"Mobile application package name","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":true,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginMobileInfo"}}}}}}},"/api/noauth/login":{"get":{"tags":["sign-up-controller"],"summary":"Mobile Login redirect (mobileLogin)","description":"This method generates redirect to the special link that is handled by mobile application. Useful for email verification flow on mobile app.","operationId":"mobileLogin","parameters":[{"name":"pkgName","in":"query","description":"Mobile app package name. Used to identify the application and build the redirect link.","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":true,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/noauth/cloud/login":{"get":{"tags":["sign-up-controller"],"summary":"Cloud mobile Login redirect (cloudMobileLogin)","description":"This method generates redirect to the special link that is handled by mobile application. Useful for email verification flow on cloud mobile app.","operationId":"cloudMobileLogin","parameters":[{"name":"pkgName","in":"query","description":"Mobile app package name. Used to identify the application and build the redirect link.","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/noauth/cloud/activateEmail":{"get":{"tags":["sign-up-controller"],"operationId":"activateCloudEmail","parameters":[{"name":"emailCode","in":"query","required":true,"schema":{"type":"string"}},{"name":"pkgName","in":"query","description":"Optional package name of the mobile application.","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/noauth/activateEmail":{"get":{"tags":["sign-up-controller"],"summary":"Activate User using code from Email (activateEmail)","description":"Activate the user using code(link) from the activation email. Validates the code an redirects according to the signup flow. Checks that user was not activated yet.","operationId":"activateEmail","parameters":[{"name":"emailCode","in":"query","description":"Activation token.","required":true,"schema":{"type":"string"}},{"name":"pkgName","in":"query","description":"Optional package name of the mobile application.","required":false,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":false,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/mobile":{"get":{"tags":["mobile-app-controller"],"summary":"Get user mobile app basic info (getUserMobileInfo)","description":"\n\nAvailable for any authorized user. ","operationId":"getUserMobileInfo","parameters":[{"name":"pkgName","in":"query","description":"Mobile application package name","required":true,"schema":{"type":"string"}},{"name":"platform","in":"query","description":"Platform type","required":true,"schema":{"type":"string","enum":["ANDROID","IOS"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMobileInfo"}}}}}}},"/api/mobile/qr/merged":{"get":{"tags":["qr-code-settings-controller"],"summary":"Get QR code configuration for home page (getMergedMobileAppSettings)","description":"The response payload contains ui configuration of qr code\n\nAvailable for any authorized user. ","operationId":"getMergedMobileAppSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QrCodeSettings"}}}}}}},"/api/mobile/qr/deepLink":{"get":{"tags":["qr-code-settings-controller"],"summary":"Get the deep link to the associated mobile application (getMobileAppDeepLink)","description":"Fetch the url that takes user to linked mobile application \n\nAvailable for any authorized user. ","operationId":"getMobileAppDeepLink","responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/mobile/bundle/infos":{"get":{"tags":["mobile-app-bundle-controller"],"summary":"Get mobile app bundle infos (getTenantMobileAppBundleInfos)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getTenantMobileAppBundleInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on app's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataMobileAppBundleInfo"}}}}}}},"/api/mobile/bundle/info/{id}":{"get":{"tags":["mobile-app-bundle-controller"],"summary":"Get mobile app bundle info by id (getMobileAppBundleInfoById)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getMobileAppBundleInfoById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileAppBundleInfo"}}}}}}},"/api/mobile/app/{id}":{"get":{"tags":["mobile-app-controller"],"summary":"Get mobile info by id (getMobileAppById)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getMobileAppById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileApp"}}}}}},"delete":{"tags":["mobile-app-controller"],"summary":"Delete Mobile App by ID (deleteMobileApp)","description":"Deletes Mobile App by ID. Referencing non-existing mobile app Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteMobileApp","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/mail/config/template":{"get":{"tags":["mail-config-template-controller"],"summary":"Get the list of all OAuth2 client registration templates (getMailConfigTemplates)\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","description":"Mail configuration template is set of default smtp settings for mail server that specific provider supports","operationId":"getMailConfigTemplates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/lwm2m/deviceProfile/bootstrap/{isBootstrapServer}":{"get":{"tags":["lwm-2m-controller"],"summary":"Get Lwm2m Bootstrap SecurityInfo (getLwm2mBootstrapSecurityInfo)","description":"Get the Lwm2m Bootstrap SecurityInfo object (of the current server) based on the provided isBootstrapServer parameter. If isBootstrapServer == true, get the parameters of the current Bootstrap Server. If isBootstrapServer == false, get the parameters of the current Lwm2m Server. Used for client settings when starting the client in Bootstrap mode. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getLwm2mBootstrapSecurityInfo","parameters":[{"name":"isBootstrapServer","in":"path","description":"A Boolean value representing the Server SecurityInfo for future Bootstrap client mode settings. Values: 'true' for Bootstrap Server; 'false' for Lwm2m Server. ","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LwM2MServerSecurityConfigDefault"}}}}}}},"/api/jobs":{"get":{"tags":["job-controller"],"summary":"Get jobs (getJobs)","description":"Returns the page of jobs.\n\nYou can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getJobs","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on job's description","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}},{"name":"types","in":"query","description":"Comma-separated list of job types to include. If empty - all job types are included.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"statuses","in":"query","description":"Comma-separated list of job statuses to include. If empty - all job statuses are included.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"entities","in":"query","description":"Comma-separated list of entity ids. If empty - jobs for all entities are included.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"startTime","in":"query","description":"To only include jobs created after this timestamp.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"To only include jobs created before this timestamp.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataJob"}}}}}}},"/api/job/{id}":{"get":{"tags":["job-controller"],"summary":"Get job by id (getJobById)","description":"Fetches job info by id.\n\nExample of a RUNNING CF_REPROCESSING job response:\n```json\n{\n  \"id\": {\n    \"entityType\": \"JOB\",\n    \"id\": \"475e94e0-2f2d-11f0-8240-91e99922a704\"\n  },\n  \"createdTime\": 1747053196590,\n  \"tenantId\": {\n    \"entityType\": \"TENANT\",\n    \"id\": \"46859a00-2f2d-11f0-8240-91e99922a704\"\n  },\n  \"type\": \"CF_REPROCESSING\",\n  \"key\": \"474e4130-2f2d-11f0-8240-91e99922a704\",\n  \"entityId\": {\n    \"entityType\": \"DEVICE_PROFILE\",\n    \"id\": \"9fd41f20-31a1-11f0-933e-27998d6db02e\"\n   },\n  \"status\": \"RUNNING\",\n  \"configuration\": {\n    \"type\": \"CF_REPROCESSING\",\n    \"calculatedFieldId\": {\n      \"entityType\": \"CALCULATED_FIELD\",\n      \"id\": \"474e4130-2f2d-11f0-8240-91e99922a704\"\n    },\n    \"startTs\": 1747051995760,\n    \"endTs\": 1747052895760,\n    \"tasksKey\": \"c3cdbd42-799e-4d3a-9aad-9310f767aa36\",\n    \"toReprocess\": null\n  },\n  \"result\": {\n    \"jobType\": \"CF_REPROCESSING\",\n    \"successfulCount\": 1,\n    \"failedCount\": 0,\n    \"discardedCount\": 0,\n    \"totalCount\": 2,\n    \"results\": [],\n    \"generalError\": null,\n    \"startTs\": 1747323069445,\n    \"finishTs\": 1747323070585,\n    \"cancellationTs\": 0\n  }\n}\n\n```\n\nExample of a CF_REPROCESSING job with failures:\n```json\n{\n  ...,\n  \"status\": \"FAILED\",\n  ...,\n  \"result\": {\n    \"jobType\": \"CF_REPROCESSING\",\n    \"successfulCount\": 0,\n    \"failedCount\": 2,\n    \"discardedCount\": 0,\n    \"totalCount\": 2,\n    \"results\": [\n      {\n        \"jobType\": \"CF_REPROCESSING\",\n        \"key\": \"c3cdbd42-799e-4d3a-9aad-9310f767aa36\",\n        \"success\": false,\n        \"discarded\": false,\n        \"failure\": {\n          \"error\": \"Failed to fetch temperature: Failed to fetch timeseries data\",\n          \"entityInfo\": {\n            \"id\": {\n              \"entityType\": \"DEVICE\",\n              \"id\": \"9fd41f20-31a1-11f0-933e-27998d6db02e\"\n            },\n            \"name\": \"Test device 1\"\n          }\n        }\n      },\n      {\n        \"jobType\": \"CF_REPROCESSING\",\n        \"key\": \"c3cdbd42-799e-4d3a-9aad-9310f767aa36\",\n        \"success\": false,\n        \"discarded\": false,\n        \"failure\": {\n          \"error\": \"Failed to fetch temperature: Failed to fetch timeseries data\",\n          \"entityInfo\": {\n            \"id\": {\n              \"entityType\": \"DEVICE\",\n              \"id\": \"9ffc4090-31a1-11f0-933e-27998d6db02e\"\n            },\n            \"name\": \"Test device 2\"\n          }\n        }\n      }\n    ],\n    \"generalError\": null,\n    \"startTs\": 1747323069445,\n    \"finishTs\": 1747323070585,\n    \"cancellationTs\": 0\n  }\n}\n\n```\n\nExample of a FAILED job result with general error:\n```json\n{\n  ...,\n  \"status\": \"FAILED\",\n  ...,\n  \"result\": {\n    \"jobType\": \"CF_REPROCESSING\",\n    \"successfulCount\": 1,\n    \"failedCount\": 0,\n    \"discardedCount\": 0,\n    \"totalCount\": null,\n    \"results\": [],\n    \"generalError\": \"Timeout to find devices by profile\",\n    \"cancellationTs\": 0\n  }\n}\n\n```\n\nExample of a CANCELLED job result:\n```json\n{\n  ...,\n  \"status\": \"CANCELLED\",\n  ...,\n  \"result\": {\n    \"jobType\": \"CF_REPROCESSING\",\n    \"successfulCount\": 15,\n    \"failedCount\": 0,\n    \"discardedCount\": 85,\n    \"totalCount\": 100,\n    \"results\": [],\n    \"generalError\": null,\n    \"cancellationTs\": 1747065908414\n  }\n}\n\n```\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getJobById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}}}},"delete":{"tags":["job-controller"],"operationId":"deleteJob","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/integrations":{"get":{"tags":["integration-controller"],"summary":"Get Integrations (getIntegrations)","description":"Returns a page of integrations owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getIntegrations","parameters":[{"name":"isEdgeTemplate","in":"query","description":"Fetch edge template integrations","required":false,"schema":{"type":"boolean","default":false}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the integration name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","debugMode","allowCreateDevicesOrAssets","enabled","remote","routingKey","secret"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataIntegration"}}}}}}},"/api/integrations/list":{"get":{"tags":["integration-controller"],"summary":"Get Integrations By Ids (getIntegrationsByIds)","description":"Requested integrations must be owned by tenant which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getIntegrationsByIds","parameters":[{"name":"integrationIds","in":"query","description":"A list of integration ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Integration"}}}}}}}},"/api/integrations/converters/info":{"get":{"tags":["integration-controller"],"summary":"Get Integrations Converters info (getIntegrationsConvertersInfo)","description":"Returns a JSON object containing information about existing tenant converters and converters available in library. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getIntegrationsConvertersInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/IntegrationConvertersInfo"}}}}}}}},"/api/integrationInfos":{"get":{"tags":["integration-controller"],"summary":"Get Integration Infos (getIntegrationInfos)","description":"Returns a page of integration infos owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getIntegrationInfos","parameters":[{"name":"isEdgeTemplate","in":"query","description":"Fetch edge template integrations","required":false,"schema":{"type":"boolean","default":false}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the integration name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","debugMode","allowCreateDevicesOrAssets","enabled","remote","routingKey","secret"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataIntegrationInfo"}}}}}}},"/api/integration/{integrationId}":{"get":{"tags":["integration-controller"],"summary":"Get Integration (getIntegrationById)","description":"Fetch the Integration object based on the provided Integration Id. The server checks that the integration is owned by the same tenant. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getIntegrationById","parameters":[{"name":"integrationId","in":"path","description":"A string value representing the integration id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}}}},"delete":{"tags":["integration-controller"],"summary":"Delete integration (deleteIntegration)","description":"Deletes the integration and all the relations (from and to the integration). Referencing non-existing integration Id will cause an error. \n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteIntegration","parameters":[{"name":"integrationId","in":"path","description":"A string value representing the integration id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/integration/{integrationId}/export-package":{"get":{"tags":["integration-controller"],"summary":"Export integration as IoT Hub package","description":"Returns a ZIP containing integration.json, uplink.json, optional downlink.json, and form.json. Sensitive fields are tokenized via @TemplateField annotations on the integration's runtime POJO.","operationId":"exportIntegrationPackage","parameters":[{"name":"integrationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/zip":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/integration/routingKey/{routingKey}":{"get":{"tags":["integration-controller"],"summary":"Get Integration by Routing Key (getIntegrationByRoutingKey)","description":"Fetch the Integration object based on the provided routing key. The server checks that the integration is owned by the same tenant. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getIntegrationByRoutingKey","parameters":[{"name":"routingKey","in":"path","description":"A string value representing the integration routing key. For example, '542047e6-c1b2-112e-a87e-e49247c09d4b'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Integration"}}}}}}},"/api/images":{"get":{"tags":["image-controller"],"operationId":"getImages","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"imageSubType","in":"query","description":"A string value representing resource sub-type.","required":false,"schema":{"type":"string","enum":["IMAGE","SCADA_SYMBOL"]}},{"name":"includeSystemImages","in":"query","description":"Use 'true' to include system images. Disabled by default. Ignored for requests by users with system administrator authority.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the resource title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","resourceType","tenantId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataTbResourceInfo"}}}}}}},"/api/images/{type}/{key}/preview":{"get":{"tags":["image-controller"],"operationId":"downloadImagePreview","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"image/png":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/images/{type}/{key}/export":{"get":{"tags":["image-controller"],"operationId":"exportImage","parameters":[{"name":"type","in":"path","description":"Type of the image: tenant or system","required":true,"schema":{"type":"string","enum":["tenant","system"]}},{"name":"key","in":"path","description":"Image resource key, for example thermostats_dashboard_background.jpeg","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceExportData"}}}}}}},"/api/images/public/{publicResourceKey}":{"get":{"tags":["image-controller"],"operationId":"downloadPublicImage","parameters":[{"name":"publicResourceKey","in":"path","required":true,"schema":{"type":"string"}},{"name":"If-None-Match","in":"header","required":false,"schema":{"type":"string"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"image/*":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/groupPermission/{groupPermissionId}":{"get":{"tags":["group-permission-controller"],"summary":"Get Group Permission (getGroupPermissionById)","description":"Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getGroupPermissionById","parameters":[{"name":"groupPermissionId","in":"path","description":"A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupPermission"}}}}}},"delete":{"tags":["group-permission-controller"],"summary":"Delete group permission (deleteGroupPermission)","description":"Deletes the group permission. Referencing non-existing group permission Id will cause an error.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteGroupPermission","parameters":[{"name":"groupPermissionId","in":"path","description":"A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/groupPermission/info/{groupPermissionId}":{"get":{"tags":["group-permission-controller"],"summary":"Get Group Permission Info (getGroupPermissionInfoById)","description":"Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups.  Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getGroupPermissionInfoById","parameters":[{"name":"groupPermissionId","in":"path","description":"A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"isUserGroup","in":"query","description":"Load additional information about User('true') or Entity Group('false).","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupPermissionInfo"}}}}}}},"/api/events/{entityType}/{entityId}/{eventType}":{"get":{"tags":["event-controller"],"summary":"Get Events by type (getEventsByType)","description":"Returns a page of events for specified entity by specifying event type. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. ","operationId":"getEventsByType","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"eventType","in":"path","description":"A string value representing event type","required":true,"schema":{"type":"string"},"example":"STATS"},{"name":"tenantId","in":"query","description":"A string value representing the tenant id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The value is not used in searching.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["ts","id"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"Timestamp. Events with creation time before it won't be queried.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"Timestamp. Events with creation time after it won't be queried.","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEventInfo"}}}}}}},"/api/entityViews/list":{"get":{"tags":["entity-view-controller"],"summary":"Get Entity Views By Ids (getEntityViewsByIds)","description":"Requested entity views must be owned by tenant or assigned to customer which user is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getEntityViewsByIds","parameters":[{"name":"entityViewIds","in":"query","description":"A list of entity view ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityView"}}}}}}}},"/api/entityViewInfos/all":{"get":{"tags":["entity-view-controller"],"summary":"Get All Entity View Infos for current user (getAllEntityViewInfos)","description":"Returns a page of entity view info objects owned by the tenant or the customer of a current user. Entity Views Info extends the Entity View with owner name. Entity Views limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. Every Entity View references exactly one entity (device or asset) and defines telemetry and attribute keys that will be visible to the assigned Customer. As a Tenant Administrator you are able to create multiple EVs per Device or Asset and assign them to different Customers.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllEntityViewInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"type","in":"query","description":"\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityViewInfo"}}}}}}},"/api/entityView/{entityViewId}":{"get":{"tags":["entity-view-controller"],"summary":"Get entity view (getEntityViewById)","description":"Fetch the EntityView object based on the provided entity view id. Entity Views limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. Every Entity View references exactly one entity (device or asset) and defines telemetry and attribute keys that will be visible to the assigned Customer. As a Tenant Administrator you are able to create multiple EVs per Device or Asset and assign them to different Customers. See the 'Model' tab for more details.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEntityViewById","parameters":[{"name":"entityViewId","in":"path","description":"A string value representing the entity view id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityView"}}}}}},"delete":{"tags":["entity-view-controller"],"summary":"Delete entity view (deleteEntityView)","description":"Delete the EntityView object based on the provided entity view id. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteEntityView","parameters":[{"name":"entityViewId","in":"path","description":"A string value representing the entity view id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/entityView/types":{"get":{"tags":["entity-view-controller"],"summary":"Get Entity View Types (getEntityViewTypes)","description":"Returns a set of unique entity view types based on entity views that are either owned by the tenant or assigned to the customer which user is performing the request.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEntityViewTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitySubtype"}}}}}}}},"/api/entityView/info/{entityViewId}":{"get":{"tags":["entity-view-controller"],"summary":"Get entity view info (getEntityViewInfoById)","description":"Fetch the Entity View info object based on the provided entity view id. Entity Views Info extends the Entity View with owner name. Entity Views limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. Every Entity View references exactly one entity (device or asset) and defines telemetry and attribute keys that will be visible to the assigned Customer. As a Tenant Administrator you are able to create multiple EVs per Device or Asset and assign them to different Customers. See the 'Model' tab for more details.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEntityViewInfoById","parameters":[{"name":"entityViewId","in":"path","description":"A string value representing the entity view id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityViewInfo"}}}}}}},"/api/entityGroupsHierarchy/{ownerType}/{ownerId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups for all owners starting from specified than ending with owner of current user (getEntityGroupsHierarchyByOwnerAndTypeAndPageLink)","description":"Returns a page of Entity Group objects based on the provided Owner Id and Entity Type and Page Link. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupsHierarchyByOwnerAndTypeAndPageLink","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityGroupInfo"}}}}}}},"/api/entityGroups/{ownerType}/{ownerId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups by owner and entity type and page link (getEntityGroupsByOwnerAndTypeAndPageLink)","description":"Returns a page of Entity Group objects based on the provided Owner Id and Entity Type and Page Link. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupsByOwnerAndTypeAndPageLink","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityGroupInfo"}}}}}}},"/api/entityGroups/{ownerType}/{ownerId}/{groupType}/all":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups by owner and entity type (getAllEntityGroupsByOwnerAndType)","description":"Fetch the list of Entity Group Info objects based on the provided Owner Id and Entity Type. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getAllEntityGroupsByOwnerAndType","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}}},"/api/entityGroups/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups by entity type and page link (getEntityGroupsByTypeAndPageLink)","description":"Returns a page of Entity Group Info objects based on the provided Entity Type and Page Link. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupsByTypeAndPageLink","parameters":[{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"includeShared","in":"query","description":"Whether to include shared entity groups.","required":false,"schema":{"type":"boolean"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityGroupInfo"}}}}}}},"/api/entityGroups/{groupType}/shared":{"get":{"tags":["entity-group-controller"],"summary":"Get Shared Entity Groups by entity type and page link (getSharedEntityGroupsByTypeAndPageLink)","description":"Returns a page of Shared Entity Group Info objects based on the provided Entity Type and Page Link. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getSharedEntityGroupsByTypeAndPageLink","parameters":[{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityGroupInfo"}}}}}}},"/api/entityGroups/{groupType}/shared/all":{"get":{"tags":["entity-group-controller"],"summary":"Get Shared Entity Groups by entity type (getAllSharedEntityGroups)","description":"Fetch the list of Shared Entity Group Info objects based on the provided Entity Type. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getAllSharedEntityGroups","parameters":[{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}}},"/api/entityGroups/{groupType}/all":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups by entity type (getAllEntityGroupsByType)","description":"Fetch the list of Entity Group Info objects based on the provided Entity Type. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getAllEntityGroupsByType","parameters":[{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"includeShared","in":"query","description":"Whether to include shared entity groups.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}}},"/api/entityGroups/{entityType}/{entityId}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups by Entity Id (getEntityGroupsForEntity)","description":"Returns a list of groups that contain the specified Entity Id. For example, all device groups that contain specific device. The list always contain at least one element - special group 'All'.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getEntityGroupsForEntity","parameters":[{"name":"entityType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityGroupId"}}}}}}}},"/api/entityGroups/list":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Groups by Ids (getEntityGroupsByIds)","description":"Fetch the list of Entity Group Info objects based on the provided entity group ids list. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupsByIds","parameters":[{"name":"entityGroupIds","in":"query","description":"A list of group ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}}},"/api/entityGroups/edge/{edgeId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Edge Entity Groups by entity type (getEdgeEntityGroups)","description":"Returns a page of Entity Group Info objects based on the provided Entity Type and assigned to the provided Edge entity. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getEdgeEntityGroups","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"groupType","in":"path","description":"EntityGroup type","required":true,"schema":{"type":"string","enum":["ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityGroupInfo"}}}}}}},"/api/entityGroupInfos":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group Entity Infos by Ids (getEntityGroupEntityInfosByIds)","description":"Fetch the list of Entity Group Entity Info objects based on the provided entity group ids list. Entity Info is a lightweight object that contains only id and name of the entity group. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupEntityInfosByIds","parameters":[{"name":"entityGroupIds","in":"query","description":"A list of group ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}}}}},"/api/entityGroupInfosHierarchy/{ownerType}/{ownerId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group Entity Infos for all owners starting from specified than ending with owner of current user (getEntityGroupEntityInfosHierarchyByOwnerAndTypeAndPageLink)","description":"Returns a page of Entity Group Entity Info objects based on the provided Owner Id and Entity Type and Page Link. Entity Info is a lightweight object that contains only id and name of the entity group. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupEntityInfosHierarchyByOwnerAndTypeAndPageLink","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/entityGroupInfos/{ownerType}/{ownerId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group Entity Infos by owner and entity type and page link (getEntityGroupEntityInfosByOwnerAndTypeAndPageLink)","description":"Returns a page of Entity Group Entity Info objects based on the provided Owner Id and Entity Type and Page Link. Entity Info is a lightweight object that contains only id and name of the entity group. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupEntityInfosByOwnerAndTypeAndPageLink","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/entityGroupInfos/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group Entity Infos by entity type and page link (getEntityGroupEntityInfosByTypeAndPageLink)","description":"Returns a page of Entity Group Entity Info objects based on the provided Entity Type and Page Link. Entity Info is a lightweight object that contains only id and name of the entity group. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupEntityInfosByTypeAndPageLink","parameters":[{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"includeShared","in":"query","description":"Whether to include shared entity groups.","required":false,"schema":{"type":"boolean"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/entityGroupInfos/{groupType}/shared":{"get":{"tags":["entity-group-controller"],"summary":"Get Shared Entity Group Entity Infos by entity type and page link (getSharedEntityGroupEntityInfosByTypeAndPageLink)","description":"Returns a page of Shared Entity Group Entity Info objects based on the provided Entity Type and Page Link. Entity Info is a lightweight object that contains only id and name of the entity group. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getSharedEntityGroupEntityInfosByTypeAndPageLink","parameters":[{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/entityGroupInfo/{entityGroupId}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group Entity Info (getEntityGroupEntityInfoById)","description":"Fetch the Entity Group Entity Info object based on the provided Entity Group Id. Entity Info is a lightweight object that contains only id and name of the entity group. \n\nEntity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupEntityInfoById","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityInfo"}}}}}}},"/api/entityGroup/{ownerType}/{ownerId}/{groupType}/{groupName}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group by owner, type and name (getEntityGroupByOwnerAndNameAndType)","description":"Fetch the Entity Group object based on the provided Entity Group Id. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nEntity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupByOwnerAndNameAndType","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}},{"name":"groupName","in":"path","description":"Entity Group name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}},"/api/entityGroup/{entityGroupId}":{"get":{"tags":["entity-group-controller"],"summary":"Get Entity Group Info (getEntityGroupById)","description":"Fetch the Entity Group object based on the provided Entity Group Id. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nEntity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupById","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}},"delete":{"tags":["entity-group-controller"],"summary":"Delete Entity Group (deleteEntityGroup)","description":"Deletes the entity group but does not delete the entities in the group, since they are also present in reserved group 'All'. Referencing non-existing Entity Group Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'DELETE' permission for specified group.","operationId":"deleteEntityGroup","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/entityGroup/{entityGroupId}/{entityId}":{"get":{"tags":["entity-group-controller"],"summary":"Get Group Entity (getGroupEntity)","description":"Fetch the Short Entity View object based on the group and entity id. Short Entity View object contains the entity id and number of fields (attributes, telemetry, etc). List of those fields is configurable and defined in the group configuration.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getGroupEntity","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShortEntityView"}}}}}}},"/api/entityGroup/{entityGroupId}/users":{"get":{"tags":["user-controller"],"summary":"Get users by Entity Group Id (getUsersByEntityGroupId)","description":"Returns a page of user objects that belongs to specified Entity Group Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getUsersByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUser"}}}}}}},"/api/entityGroup/{entityGroupId}/groupPermissions":{"get":{"tags":["group-permission-controller"],"summary":"Get group permissions by Entity Group Id (getEntityGroupPermissions)","description":"Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getEntityGroupPermissions","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupPermissionInfo"}}}}}}}},"/api/entityGroup/{entityGroupId}/entityViews":{"get":{"tags":["entity-view-controller"],"summary":"Get entity views by Entity Group Id (getEntityViewsByEntityGroupId)","description":"Returns a page of Entity View objects that belongs to specified Entity View Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityViewsByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityView"}}}}}}},"/api/entityGroup/{entityGroupId}/entities":{"get":{"tags":["entity-group-controller"],"summary":"Get Group Entities (getEntities)","description":"Returns a page of Short Entity View objects that belongs to specified Entity Group Id. Short Entity View object contains the entity id and number of fields (attributes, telemetry, etc). List of those fields is configurable and defined in the group configuration.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntities","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the entity group name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataShortEntityView"}}}}}}},"/api/entityGroup/{entityGroupId}/edges":{"get":{"tags":["edge-controller"],"summary":"Get edges by Entity Group Id (getEdgesByEntityGroupId)","description":"Returns a page of Edge objects that belongs to specified Entity Group Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEdgesByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdge"}}}}}}},"/api/entityGroup/{entityGroupId}/devices":{"get":{"tags":["device-controller"],"summary":"Get devices by Entity Group Id (getDevicesByEntityGroupId)","description":"Returns a page of Device objects that belongs to specified Entity Group Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getDevicesByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deviceProfileName","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDevice"}}}}}}},"/api/entityGroup/{entityGroupId}/dashboards":{"get":{"tags":["dashboard-controller"],"summary":"Get dashboards by Entity Group Id (getDashboardsByEntityGroupId)","description":"Returns a page of Dashboard objects that belongs to specified Entity Group Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getDashboardsByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the dashboard title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDashboardInfo"}}}}}}},"/api/entityGroup/{entityGroupId}/dashboards/export":{"get":{"tags":["dashboard-controller"],"summary":"Export Dashboards (exportGroupDashboards)","description":"Export the dashboards that belong to specified group id.The Dashboard object is a heavyweight object that contains information about the dashboard (e.g. title, image, assigned customers) and also configuration JSON (e.g. layouts, widgets, entity aliases).\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"exportGroupDashboards","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","description":"Limit of the entities to export","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Dashboard"}}}}}}}},"/api/entityGroup/{entityGroupId}/customers":{"get":{"tags":["customer-controller"],"summary":"Get customers by Entity Group Id (getCustomersByEntityGroupId)","description":"Returns a page of Customer objects that belongs to specified Entity Group Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getCustomersByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","email","country","city"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCustomer"}}}}}}},"/api/entityGroup/{entityGroupId}/assets":{"get":{"tags":["asset-controller"],"summary":"Get assets by Entity Group Id (getAssetsByEntityGroupId)","description":"Returns a page of asset objects that belongs to specified Entity Group Id. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getAssetsByEntityGroupId","parameters":[{"name":"entityGroupId","in":"path","description":"A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAsset"}}}}}}},"/api/entityGroup/all/{ownerType}/{ownerId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get special group All by owner and entity type (getEntityGroupsByOwnerAndType)","description":"Fetch reserved group 'All' based on the provided Owner Id and Entity Type. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group.","operationId":"getEntityGroupAllByOwnerAndType","parameters":[{"name":"ownerType","in":"path","description":"Tenant or Customer","required":true,"schema":{"type":"string","enum":["TENANT","CUSTOMER"]}},{"name":"ownerId","in":"path","description":"A string value representing the Tenant or Customer id","required":true,"schema":{"type":"string"},"example":"784f394c-42b6-435a-983c-b7beff2784f9"},{"name":"groupType","in":"path","description":"Entity Group type","required":true,"schema":{"type":"string","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}},"/api/entities/vc/version/{requestId}/status":{"get":{"tags":["entities-version-control-controller"],"summary":"Get version create request status (getVersionCreateRequestStatus)","description":"Returns the status of previously made version create request. \n\nThis status contains following properties:\n- `done` - whether request processing is finished;\n- `version` - created version info: timestamp, version id (commit hash), commit name and commit author;\n- `added` - count of items that were created in the remote repo;\n- `modified` - modified items count;\n- `removed` - removed items count;\n- `error` - error message, if an error occurred while handling the request.\n\nAn example of successful status:\n```json\n{\n  \"done\": true,\n  \"added\": 10,\n  \"modified\": 2,\n  \"removed\": 5,\n  \"version\": {\n    \"timestamp\": 1655198528000,\n    \"id\":\"8a834dd389ed80e0759ba8ee338b3f1fd160a114\",\n    \"name\": \"My devices v2.0\",\n    \"author\": \"John Doe\"\n  },\n  \"error\": null\n}\n```\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getVersionCreateRequestStatus","parameters":[{"name":"requestId","in":"path","description":"A string value representing the version control request id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionCreationResult"}}}}}}},"/api/entities/vc/version/{entityType}":{"get":{"tags":["entities-version-control-controller"],"summary":"List entity type versions (listEntityTypeVersions)","description":"Returns list of versions of an entity type in a branch. This is a collected list of versions that were created for entities of this type in a remote branch. \nIf specified branch does not exist - empty page data will be returned. The response structure is the same as for `listEntityVersions` API method.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"listEntityTypeVersions","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"branch","in":"query","description":"The name of the working branch, for example 'master'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity version name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["timestamp"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityVersion"}}}}}}},"/api/entities/vc/version/{entityType}/{externalEntityUuid}":{"get":{"tags":["entities-version-control-controller"],"summary":"List entity versions (listEntityVersions)","description":"Returns list of versions for a specific entity in a concrete branch. \nYou need to specify external id of an entity to list versions for. This is `externalId` property of an entity, or otherwise if not set - simply id of this entity. \nIf specified branch does not exist - empty page data will be returned. \n\nEach version info item has timestamp, id, name and author. Version id can then be used to restore the version. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nResponse example: \n```json\n{\n  \"data\": [\n    {\n      \"timestamp\": 1655198593000,\n      \"id\": \"fd82625bdd7d6131cf8027b44ee967012ecaf990\",\n      \"name\": \"Devices and assets - v2.0\",\n      \"author\": \"John Doe (johndoe@gmail.com)\"\n    },\n    {\n      \"timestamp\": 1655198528000,\n      \"id\": \"682adcffa9c8a2f863af6f00c4850323acbd4219\",\n      \"name\": \"Update my device\",\n      \"author\": \"John Doe (johndoe@gmail.com)\"\n    },\n    {\n      \"timestamp\": 1655198280000,\n      \"id\": \"d2a6087c2b30e18cc55e7cdda345a8d0dfb959a4\",\n      \"name\": \"Devices and assets - v1.0\",\n      \"author\": \"John Doe (johndoe@gmail.com)\"\n    }\n  ],\n  \"totalPages\": 1,\n  \"totalElements\": 3,\n  \"hasNext\": false\n}\n```\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"listEntityVersions","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"externalEntityUuid","in":"path","description":"A string value representing external entity id. This is `externalId` property of an entity, or otherwise if not set - simply id of this entity.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"branch","in":"query","description":"The name of the working branch, for example 'master'","required":true,"schema":{"type":"string"}},{"name":"internalEntityId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity version name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["timestamp"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityVersion"}}}}}}},"/api/entities/vc/info/{versionId}/{entityType}/{externalEntityUuid}":{"get":{"tags":["entities-version-control-controller"],"summary":"Get entity data info (getEntityDataInfo)","description":"Retrieves short info about the remote entity by external id at a concrete version. \nReturned entity data info contains following properties: `hasRelations` (whether stored entity data contains relations), `hasAttributes` (contains attributes), `hasCredentials` (whether stored device data has credentials), `hasPermissions` (user group data contains group permission list) and `hasGroupEntities` (entity group data contains group entities).\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getEntityDataInfo","parameters":[{"name":"versionId","in":"path","description":"Version id, for example fd82625bdd7d6131cf8027b44ee967012ecaf990. Represents commit hash.","required":true,"schema":{"type":"string"}},{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"externalEntityUuid","in":"path","description":"A string value representing external entity id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"internalEntityId","in":"query","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDataInfo"}}}}}}},"/api/entities/vc/entity/{versionId}":{"get":{"tags":["entities-version-control-controller"],"summary":"List all entities at version (listAllEntitiesAtVersion)","description":"Returns a list of all remote entities available in a specific version. Response type is the same as for listAllEntitiesAtVersion API method. \nReturned entities order will be the same as in the repository.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"listAllEntitiesAtVersion","parameters":[{"name":"versionId","in":"path","description":"Version id, for example fd82625bdd7d6131cf8027b44ee967012ecaf990. Represents commit hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VersionedEntityInfo"}}}}}}}},"/api/entities/vc/entity/{requestId}/status":{"get":{"tags":["entities-version-control-controller"],"summary":"Get version load request status (getVersionLoadRequestStatus)","description":"Returns the status of previously made version load request. The structure contains following parameters:\n- `done` - if the request was successfully processed;\n- `result` - a list of load results for each entity type:\n     - `created` - created entities count;\n     - `updated` - updated entities count;\n     - `deleted` - removed entities count;\n     - `groupsCreated` - created entity groups count;\n     - `groupsUpdated` - updated entity groups count;\n     - `groupsDeleted` - removed entity groups count.\n- `error` - if an error occurred during processing, error info:\n     - `type` - error type;\n     - `source` - an external id of remote entity;\n     - `target` - if failed to find referenced entity by external id - this external id;\n     - `message` - error message.\n\nAn example of successfully processed request status:\n```json\n{\n  \"done\": true,\n  \"result\": [\n    {\n      \"entityType\": \"DEVICE\",\n      \"created\": 10,\n      \"updated\": 5,\n      \"deleted\": 5,\n      \"groupsCreated\": 1,\n      \"groupsUpdated\": 1,\n      \"groupsDeleted\": 1\n    },\n     {\n      \"entityType\": \"ASSET\",\n      \"created\": 4,\n      \"updated\": 0,\n      \"deleted\": 8,\n      \"groupsCreated\": 1,\n      \"groupsUpdated\": 0,\n      \"groupsDeleted\": 2\n    }\n  ]\n}\n```\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getVersionLoadRequestStatus","parameters":[{"name":"requestId","in":"path","description":"A string value representing the version control request id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionLoadResult"}}}}}}},"/api/entities/vc/entity/{entityType}/{versionId}":{"get":{"tags":["entities-version-control-controller"],"summary":"List entities at version (listEntitiesAtVersion)","description":"Returns a list of remote entities of a specific entity type that are available at a concrete version. \nEach entity item in the result has `externalId` property. Entities order will be the same as in the repository.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"listEntitiesAtVersion","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"versionId","in":"path","description":"Version id, for example fd82625bdd7d6131cf8027b44ee967012ecaf990. Represents commit hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VersionedEntityInfo"}}}}}}}},"/api/entities/vc/diff/{entityType}/{internalEntityUuid}":{"get":{"tags":["entities-version-control-controller"],"summary":"Compare entity data to version (compareEntityDataToVersion)","description":"Returns an object with current entity data and the one at a specific version. Entity data structure is the same as stored in a repository. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"compareEntityDataToVersion","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"internalEntityUuid","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"versionId","in":"query","description":"Version id, for example fd82625bdd7d6131cf8027b44ee967012ecaf990. Represents commit hash.","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntityDataDiff"}}}}}}},"/api/entities/vc/branches":{"get":{"tags":["entities-version-control-controller"],"summary":"List branches (listBranches)","description":"Lists branches available in the remote repository. \n\nResponse example: \n```json\n[\n  {\n    \"name\": \"master\",\n    \"default\": true\n  },\n  {\n    \"name\": \"dev\",\n    \"default\": false\n  },\n  {\n    \"name\": \"dev-2\",\n    \"default\": false\n  }\n]\n```","operationId":"listBranches","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BranchInfo"}}}}}}}},"/api/edqs/state":{"get":{"tags":["entity-query-controller"],"operationId":"getEdqsState","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdqsState"}}}}}}},"/api/edges/list":{"get":{"tags":["edge-controller"],"summary":"Get Edges By Ids (getEdgeList)","description":"Requested edges must be owned by tenant or assigned to customer which user is performing the request.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEdgeList","parameters":[{"name":"edgeIds","in":"query","description":"A list of edges ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Edge"}}}}}}}},"/api/edges/enabled":{"get":{"tags":["edge-controller"],"summary":"Is edges support enabled (isEdgesSupportEnabled)","description":"Returns 'true' if edges support enabled on server, 'false' - otherwise.","operationId":"isEdgesSupportEnabled","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/edgeInfos/all":{"get":{"tags":["edge-controller"],"summary":"Get All Edge Infos for current user (getAllEdgeInfos)","description":"Returns a page of edge info objects owned by the tenant or the customer of a current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllEdgeInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"type","in":"query","description":"A string value representing the edge type. For example, 'default'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdgeInfo"}}}}}}},"/api/edge/{edgeId}":{"get":{"tags":["edge-controller"],"summary":"Get Edge (getEdgeById)","description":"Get the Edge object based on the provided Edge Id. If the user has the authority of 'Tenant Administrator', the server checks that the edge is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the edge is assigned to the same customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEdgeById","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Edge"}}}}}},"delete":{"tags":["edge-controller"],"summary":"Delete edge (deleteEdge)","description":"Deletes the edge. Referencing non-existing edge Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteEdge","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/edge/{edgeId}/upgrade/available":{"get":{"tags":["edge-controller"],"summary":"Is edge upgrade enabled (isEdgeUpgradeAvailable)","description":"Returns 'true' if upgrade available for connected edge, 'false' - otherwise.","operationId":"isEdgeUpgradeAvailable","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/edge/{edgeId}/schedulerEvents":{"get":{"tags":["scheduler-event-controller"],"summary":"Get Edge Scheduler Events (getEdgeSchedulerEvents)","description":"Returns a page of  Scheduler Events Info objects based on the provided Edge entity. Scheduler Event extends Scheduler Event Info object and adds 'configuration' - a JSON structure of scheduler event configuration. See the 'Model' tab of the Response Class for more details. Scheduler Events allows you to schedule various types of events with flexible schedule configuration. Scheduler fires configured scheduler events according to their schedule. See the 'Model' tab of the Response Class for more details. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getEdgeSchedulerEvents","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the scheduler event name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataSchedulerEventInfo"}}}}}}},"/api/edge/{edgeId}/ruleChains":{"get":{"tags":["rule-chain-controller"],"summary":"Get Edge Rule Chains (getEdgeRuleChains)","description":"Returns a page of Rule Chains assigned to the specified edge. The rule chain object is lightweight and contains general information about the rule chain. List of rule nodes and their connection is stored in a separate 'metadata' object.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getEdgeRuleChains","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the rule chain name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","root"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataRuleChain"}}}}}}},"/api/edge/{edgeId}/integrations":{"get":{"tags":["integration-controller"],"summary":"Get Edge Integrations (getEdgeIntegrations)","description":"Returns a page of Integrations assigned to the specified edge. The integration object contains information about the Integration, including the heavyweight configuration object. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getEdgeIntegrations","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the integration name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","debugMode","allowCreateDevicesOrAssets","enabled","remote","routingKey","secret"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataIntegration"}}}}}}},"/api/edge/{edgeId}/integrationInfos":{"get":{"tags":["integration-controller"],"summary":"Get Edge Integrations (getEdgeIntegrationInfos)","description":"Returns a page of Integrations assigned to the specified edge. The integration object contains information about the Integration, including the heavyweight configuration object. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getEdgeIntegrationInfos","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the integration name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","debugMode","allowCreateDevicesOrAssets","enabled","remote","routingKey","secret"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataIntegrationInfo"}}}}}}},"/api/edge/{edgeId}/events":{"get":{"tags":["edge-event-controller"],"summary":"Get Edge Events (getEdgeEvents)","description":"Returns a page of edge events for the requested edge. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. ","operationId":"getEdgeEvents","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge event type name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"Timestamp. Edge events with creation time before it won't be queried","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"Timestamp. Edge events with creation time after it won't be queried","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdgeEvent"}}}}}}},"/api/edge/{edgeId}/allSchedulerEvents":{"get":{"tags":["scheduler-event-controller"],"summary":"Get All Edge Scheduler Events (getAllEdgeSchedulerEvents)","description":"Fetch the list of Scheduler Event Info objects based on the provided Edge entity. Scheduler Event extends Scheduler Event Info object and adds 'configuration' - a JSON structure of scheduler event configuration. See the 'Model' tab of the Response Class for more details. Scheduler Events allows you to schedule various types of events with flexible schedule configuration. Scheduler fires configured scheduler events according to their schedule. See the 'Model' tab of the Response Class for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllEdgeSchedulerEvents","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SchedulerEventInfo"}}}}}}}},"/api/edge/types":{"get":{"tags":["edge-controller"],"summary":"Get Edge Types (getEdgeTypes)","description":"Returns a set of unique edge types based on edges that are either owned by the tenant or assigned to the customer which user is performing the request.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEdgeTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitySubtype"}}}}}}}},"/api/edge/missingToRelatedRuleChains/{edgeId}":{"get":{"tags":["edge-controller"],"summary":"Find missing rule chains (findMissingToRelatedRuleChains)","description":"Returns list of rule chains ids that are not assigned to particular edge, but these rule chains are present in the already assigned rule chains to edge.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"findMissingToRelatedRuleChains","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/edge/integration/{integrationId}/allMissingAttributes":{"get":{"tags":["integration-controller"],"summary":"Find missing attributes for all related edges (findAllRelatedEdgesMissingAttributes)","description":"Returns list of attribute names of all related edges that are missing in the integration configuration.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"findAllRelatedEdgesMissingAttributes","parameters":[{"name":"integrationId","in":"path","description":"A string value representing the integration id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/edge/integration/{edgeId}/missingAttributes":{"get":{"tags":["integration-controller"],"summary":"Find edge missing attributes for assigned integrations (findEdgeMissingAttributes)","description":"Returns list of edge attribute names that are missing in assigned integrations.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"findEdgeMissingAttributes","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"integrationIds","in":"query","description":"A list of assigned integration ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/edge/instructions/upgrade/{edgeVersion}/{method}":{"get":{"tags":["edge-controller"],"summary":"Get Edge Upgrade Instructions (getEdgeUpgradeInstructions)","description":"Get an upgrade instructions for provided edge version.If the user has the authority of 'Tenant Administrator', the server checks that the edge is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the edge is assigned to the same customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEdgeUpgradeInstructions","parameters":[{"name":"edgeVersion","in":"path","description":"Edge version","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","description":"Upgrade method ('docker', 'ubuntu' or 'centos')","required":true,"schema":{"type":"string","enum":["docker","ubuntu","centos"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdgeInstructions"}}}}}}},"/api/edge/instructions/install/{edgeId}/{method}":{"get":{"tags":["edge-controller"],"summary":"Get Edge Install Instructions (getEdgeInstallInstructions)","description":"Get an install instructions for provided edge id.If the user has the authority of 'Tenant Administrator', the server checks that the edge is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the edge is assigned to the same customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEdgeInstallInstructions","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","description":"Installation method ('docker', 'ubuntu' or 'centos')","required":true,"schema":{"type":"string","enum":["docker","ubuntu","centos"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdgeInstructions"}}}}}}},"/api/edge/info/{edgeId}":{"get":{"tags":["edge-controller"],"summary":"Get Edge Info (getEdgeInfoById)","description":"Get the Edge info object based on the provided Edge Id. If the user has the authority of 'Tenant Administrator', the server checks that the edge is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the edge is assigned to the same customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getEdgeInfoById","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EdgeInfo"}}}}}}},"/api/domain/infos":{"get":{"tags":["domain-controller"],"summary":"Get Domain infos (getDomainInfos)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDomainInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on domain's name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDomainInfo"}}}}}}},"/api/domain/info/{id}":{"get":{"tags":["domain-controller"],"summary":"Get Domain info by Id (getDomainInfoById)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDomainInfoById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainInfo"}}}}}}},"/api/domain/cloud/info/{id}":{"get":{"tags":["domain-controller"],"summary":"Get Domain info by Id (getCloudDomainInfoById)","description":"\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getCloudDomainInfoById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudDomainInfo"}}}}}}},"/api/devices/count/{otaPackageType}/{otaPackageId}/{entityGroupId}":{"get":{"tags":["device-controller"],"summary":"Count devices by device profile  (countByDeviceProfileAndEmptyOtaPackage)","description":"The platform gives an ability to load OTA (over-the-air) packages to devices. It can be done in two different ways: device scope or device profile scope.In the response you will find the number of devices with specified device profile, but without previously defined device scope OTA package. It can be useful when you want to define number of devices that will be affected with future OTA package\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"countByDeviceGroupAndEmptyOtaPackage","parameters":[{"name":"otaPackageType","in":"path","description":"OTA package type","required":true,"schema":{"type":"string","enum":["FIRMWARE","SOFTWARE"]}},{"name":"otaPackageId","in":"path","required":true,"schema":{"type":"string"}},{"name":"entityGroupId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/devices/count/{otaPackageType}/{deviceProfileId}":{"get":{"tags":["device-controller"],"summary":"Count devices by device profile  (countByDeviceProfileAndEmptyOtaPackage)","description":"The platform gives an ability to load OTA (over-the-air) packages to devices. It can be done in two different ways: device scope or device profile scope.In the response you will find the number of devices with specified device profile, but without previously defined device scope OTA package. It can be useful when you want to define number of devices that will be affected with future OTA package\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"countByDeviceProfileAndEmptyOtaPackage","parameters":[{"name":"otaPackageType","in":"path","description":"OTA package type","required":true,"schema":{"type":"string","enum":["FIRMWARE","SOFTWARE"]}},{"name":"deviceProfileId","in":"path","description":"Device Profile Id. I.g. '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64"}}}}}}},"/api/deviceProfiles":{"get":{"tags":["device-profile-controller"],"summary":"Get Device Profiles (getDeviceProfiles)","description":"Returns a page of devices profile objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getDeviceProfiles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device profile name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","transportType","description","isDefault"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDeviceProfile"}}}}}}},"/api/deviceProfileInfos":{"get":{"tags":["device-profile-controller"],"summary":"Get Device Profiles for transport type (getDeviceProfileInfos)","description":"Returns a page of devices profile info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDeviceProfileInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device profile name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","transportType","description","isDefault"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"transportType","in":"query","description":"Type of the transport","required":false,"schema":{"type":"string","enum":["DEFAULT","MQTT","COAP","LWM2M","SNMP"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDeviceProfileInfo"}}}}}}},"/api/deviceProfileInfos/list":{"get":{"tags":["device-profile-controller"],"summary":"Get Device Profile Infos By Ids (getDeviceProfileInfosByIds)","description":"Requested device profiles must be owned by tenant which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getDeviceProfileInfosByIds","parameters":[{"name":"deviceProfileIds","in":"query","description":"A list of device profile ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeviceProfileInfo"}}}}}}}},"/api/deviceProfileInfo/{deviceProfileId}":{"get":{"tags":["device-profile-controller"],"summary":"Get Device Profile Info (getDeviceProfileInfoById)","description":"Fetch the Device Profile Info object based on the provided Device Profile Id. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDeviceProfileInfoById","parameters":[{"name":"deviceProfileId","in":"path","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceProfileInfo"}}}}}}},"/api/deviceProfileInfo/default":{"get":{"tags":["device-profile-controller"],"summary":"Get Default Device Profile (getDefaultDeviceProfileInfo)","description":"Fetch the Default Device Profile Info object. Device Profile Info is a lightweight object that includes main information about Device Profile excluding the heavyweight configuration object. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDefaultDeviceProfileInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceProfileInfo"}}}}}}},"/api/deviceProfile/{deviceProfileId}":{"get":{"tags":["device-profile-controller"],"summary":"Get Device Profile (getDeviceProfileById)","description":"Fetch the Device Profile object based on the provided Device Profile Id. The server checks that the device profile is owned by the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getDeviceProfileById","parameters":[{"name":"deviceProfileId","in":"path","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"inlineImages","in":"query","description":"Inline images as a data URL (Base64)","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceProfile"}}}}}},"delete":{"tags":["device-profile-controller"],"summary":"Delete device profile (deleteDeviceProfile)","description":"Deletes the device profile. Referencing non-existing device profile Id will cause an error. Can't delete the device profile if it is referenced by existing devices.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteDeviceProfile","parameters":[{"name":"deviceProfileId","in":"path","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/deviceProfile/names":{"get":{"tags":["device-profile-controller"],"summary":"Get Device Profile names (getDeviceProfileNames)","description":"Returns a set of unique device profile names owned by the tenant.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDeviceProfileNames","parameters":[{"name":"activeOnly","in":"query","description":"Flag indicating whether to retrieve exclusively the names of device profiles that are referenced by tenant's devices.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}}}}},"/api/deviceProfile/devices/keys/timeseries":{"get":{"tags":["device-profile-controller"],"summary":"Get time series keys (getDeviceProfileTimeseriesKeys)","description":"Get a set of unique time series keys used by devices that belong to specified profile. If profile is not set returns a list of unique keys among all profiles. The call is used for auto-complete in the UI forms. The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getDeviceProfileTimeseriesKeys","parameters":[{"name":"deviceProfileId","in":"query","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/deviceProfile/devices/keys/attributes":{"get":{"tags":["device-profile-controller"],"summary":"Get attribute keys (getAttributesKeys)","description":"Get a set of unique attribute keys used by devices that belong to specified profile. If profile is not set returns a list of unique keys among all profiles. The call is used for auto-complete in the UI forms. The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAttributesKeys","parameters":[{"name":"deviceProfileId","in":"query","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api/deviceInfos/all":{"get":{"tags":["device-controller"],"summary":"Get All Device Infos for current user (getAllDeviceInfos)","description":"Returns a page of device info objects owned by the tenant or the customer of a current user. Device Info is an extension of the default Device object that contains information about the owner name.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllDeviceInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"deviceProfileId","in":"query","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","description":"A boolean value representing the device active flag.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deviceProfileName","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDeviceInfo"}}}}}}},"/api/deviceGroupOtaPackage/{groupId}/{firmwareType}":{"get":{"tags":["device-group-ota-package-controller"],"operationId":"getFirmwareById","parameters":[{"name":"groupId","in":"path","required":true,"schema":{"type":"string"}},{"name":"firmwareType","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceGroupOtaPackage"}}}}}}},"/api/device/{deviceId}":{"get":{"tags":["device-controller"],"summary":"Get Device (getDeviceById)","description":"Fetch the Device object based on the provided Device Id. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getDeviceById","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}}}},"delete":{"tags":["device-controller"],"summary":"Delete device (deleteDevice)","description":"Deletes the device, it's credentials and all the relations (from and to the device). Referencing non-existing device Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteDevice","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/device/{deviceId}/credentials":{"get":{"tags":["device-controller"],"summary":"Get Device Credentials (getDeviceCredentialsByDeviceId)","description":"If during device creation there wasn't specified any credentials, platform generates random 'ACCESS_TOKEN' credentials.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ_CREDENTIALS' permission for the entity (entities).","operationId":"getDeviceCredentialsByDeviceId","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceCredentials"}}}}}}},"/api/device/types":{"get":{"tags":["device-controller"],"summary":"Get Device Types (getDeviceTypes)","description":"Deprecated. See 'getDeviceProfileNames' API from Device Profile Controller instead.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDeviceTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitySubtype"}}}}}},"deprecated":true}},"/api/device/info/{deviceId}":{"get":{"tags":["device-controller"],"summary":"Get Device (getDeviceInfoById)","description":"Fetch the Device info object based on the provided Device Id. Device Info is an extension of the default Device object that contains information about the owner name. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getDeviceInfoById","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceInfo"}}}}}}},"/api/device-connectivity/{protocol}/certificate/download":{"get":{"tags":["device-connectivity-controller"],"summary":"Download server certificate using file path defined in device.connectivity properties (downloadServerCertificate)","description":"Download server certificate.","operationId":"downloadServerCertificate","parameters":[{"name":"protocol","in":"path","description":"A string value representing the device connectivity protocol. Possible values: 'mqtt', 'mqtts', 'http', 'https', 'coap', 'coaps'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/device-connectivity/{deviceId}":{"get":{"tags":["device-connectivity-controller"],"summary":"Get commands to publish device telemetry (getDevicePublishTelemetryCommands)","description":"Fetch the list of commands to publish device telemetry based on device profile If the user has the authority of 'Tenant Administrator', the server checks that the device is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the device is assigned to the same customer. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDevicePublishTelemetryCommands","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"},"examples":{"http":{"description":"http","value":"curl -v -X POST http://localhost:8080/api/v1/0ySs4FTOn5WU15XLmal8/telemetry --header Content-Type:application/json --data {temperature:25}"},"mqtt":{"description":"mqtt","value":"mosquitto_pub -d -q 1 -h localhost -t v1/devices/me/telemetry -i myClient1 -u myUsername1 -P myPassword -m {temperature:25}"},"coap":{"description":"coap","value":"coap-client -m POST coap://localhost:5683/api/v1/0ySs4FTOn5WU15XLmal8/telemetry -t json -e {temperature:25}"}}}}}}}},"/api/device-connectivity/gateway-launch/{deviceId}/docker-compose/download":{"get":{"tags":["device-connectivity-controller"],"summary":"Download generated docker-compose.yml file for gateway (downloadGatewayDockerCompose)","description":"Download generated docker-compose.yml for gateway.","operationId":"downloadGatewayDockerCompose","parameters":[{"name":"deviceId","in":"path","description":"A string value representing the device id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/dashboards":{"get":{"tags":["dashboard-controller"],"summary":"Get dashboards by Dashboard Ids (getDashboardsByIds)","description":"Returns a list of DashboardInfo objects based on the provided ids. Filters the list based on the user permissions. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getDashboardsByIds","parameters":[{"name":"dashboardIds","in":"query","description":"A list of dashboard ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DashboardInfo"}}}}}}}},"/api/dashboards/all":{"get":{"tags":["dashboard-controller"],"summary":"Get All Dashboards for current user (getAllDashboards)","description":"Returns a page of dashboard info objects owned by the tenant or the customer of a current user. The Dashboard Info object contains lightweight information about the dashboard (e.g. title, image, assigned customers) but does not contain the heavyweight configuration JSON. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllDashboards","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the dashboard title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDashboardInfo"}}}}}}},"/api/dashboard/{dashboardId}":{"get":{"tags":["dashboard-controller"],"summary":"Get Dashboard (getDashboardById)","description":"Get the dashboard based on 'dashboardId' parameter. The Dashboard object is a heavyweight object that contains information about the dashboard (e.g. title, image, assigned customers) and also configuration JSON (e.g. layouts, widgets, entity aliases).\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDashboardById","parameters":[{"name":"dashboardId","in":"path","description":"A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"includeResources","in":"query","description":"Export used resources and replace resource links with resource metadata","required":false,"schema":{"type":"boolean"}},{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}}}},"delete":{"tags":["dashboard-controller"],"summary":"Delete the Dashboard (deleteDashboard)","description":"Delete the Dashboard. Only users with 'TENANT_ADMIN') authority may delete the dashboards.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteDashboard","parameters":[{"name":"dashboardId","in":"path","description":"A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/dashboard/serverTime":{"get":{"tags":["dashboard-controller"],"summary":"Get server time (getServerTime)","description":"Get the server time (milliseconds since January 1, 1970 UTC). Used to adjust view of the dashboards according to the difference between browser and server time.","operationId":"getServerTime","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64","example":1636023857137}}}}}}},"/api/dashboard/maxDatapointsLimit":{"get":{"tags":["dashboard-controller"],"summary":"Get max data points limit (getMaxDatapointsLimit)","description":"Get the maximum number of data points that dashboard may request from the server per in a single subscription command. This value impacts the time window behavior. It impacts 'Max values' parameter in case user selects 'None' as 'Data aggregation function'. It also impacts the 'Grouping interval' in case of any other 'Data aggregation function' is selected. The actual value of the limit is configurable in the system configuration file.","operationId":"getMaxDatapointsLimit","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"integer","format":"int64","example":5000}}}}}}},"/api/dashboard/info/{dashboardId}":{"get":{"tags":["dashboard-controller"],"summary":"Get Dashboard Info (getDashboardInfoById)","description":"Get the information about the dashboard based on 'dashboardId' parameter. The Dashboard Info object contains lightweight information about the dashboard (e.g. title, image, assigned customers) but does not contain the heavyweight configuration JSON.","operationId":"getDashboardInfoById","parameters":[{"name":"dashboardId","in":"path","description":"A string value representing the dashboard id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DashboardInfo"}}}}}}},"/api/dashboard/home":{"get":{"tags":["dashboard-controller"],"summary":"Get Home Dashboard (getHomeDashboard)","description":"Returns the home dashboard object that is configured as 'homeDashboardId' parameter in the 'additionalInfo' of the User. If 'homeDashboardId' parameter is not set on the User level and the User has authority 'CUSTOMER_USER', check the same parameter for the corresponding Customer. If 'homeDashboardId' parameter is not set on the User and Customer levels then checks the same parameter for the Tenant that owns the user. The Dashboard object is a heavyweight object that contains information about the dashboard (e.g. title, image, assigned customers) and also configuration JSON (e.g. layouts, widgets, entity aliases).\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getHomeDashboard","parameters":[{"name":"Accept-Encoding","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDashboard"}}}}}}},"/api/dashboard/home/info":{"get":{"tags":["dashboard-controller"],"summary":"Get Home Dashboard Info (getHomeDashboardInfo)","description":"Returns the home dashboard info object that is configured as 'homeDashboardId' parameter in the 'additionalInfo' of the User. If 'homeDashboardId' parameter is not set on the User level and the User has authority 'CUSTOMER_USER', check the same parameter for the corresponding Customer. If 'homeDashboardId' parameter is not set on the User and Customer levels then checks the same parameter for the Tenant that owns the user. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getHomeDashboardInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomeDashboardInfo"}}}}}}},"/api/customers":{"get":{"tags":["customer-controller"],"summary":"Get Tenant Customers (getCustomers)","description":"Returns a page of customers owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomers","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","email","country","city"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCustomer"}}}}}}},"/api/customers/list":{"get":{"tags":["customer-controller"],"summary":"Get customers by Customer Ids (getCustomersByIds)","description":"Returns a list of Customer objects based on the provided ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getCustomersByIds","parameters":[{"name":"customerIds","in":"query","description":"A list of customer ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}}}}}}}},"/api/customerInfos/all":{"get":{"tags":["customer-controller"],"summary":"Get All Customer Infos for current user (getAllCustomerInfos)","description":"Returns a page of customer info objects owned by the tenant or the customer of a current user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllCustomerInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","email","country","city"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCustomerInfo"}}}}}}},"/api/customer/{customerId}":{"get":{"tags":["customer-controller"],"summary":"Get Customer (getCustomerById)","description":"Get the Customer object based on the provided Customer Id. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerById","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}}}},"delete":{"tags":["customer-controller"],"summary":"Delete Customer (deleteCustomer)","description":"Deletes the Customer and all customer Users. All assigned Dashboards, Assets, Devices, etc. will be unassigned but not deleted. Referencing non-existing Customer Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteCustomer","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/customer/{customerId}/users":{"get":{"tags":["user-controller"],"summary":"Get Customer Users (getCustomerUsers)","description":"Returns a page of users owned by customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerUsers","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUser"}}}}}}},"/api/customer/{customerId}/userInfos":{"get":{"tags":["user-controller"],"summary":"Get Customer user Infos (getCustomerUserInfos)","description":"Returns a page of user info objects owned by the specified customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerUserInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUserInfo"}}}}}}},"/api/customer/{customerId}/title":{"get":{"tags":["customer-controller"],"summary":"Get Customer Title (getCustomerTitleById)","description":"Get the title of the customer. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerTitleById","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/text":{"schema":{"type":"string"}}}}}}},"/api/customer/{customerId}/shortInfo":{"get":{"tags":["customer-controller"],"summary":"Get short Customer info (getShortCustomerInfoById)","description":"Get the short customer object that contains only the title and 'isPublic' flag. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getShortCustomerInfoById","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/customer/{customerId}/entityViews":{"get":{"tags":["entity-view-controller"],"summary":"Get Customer Entity Views (getCustomerEntityViews)","description":"Returns a page of Entity View objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getCustomerEntityViews","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityView"}}}}}}},"/api/customer/{customerId}/entityViewInfos":{"get":{"tags":["entity-view-controller"],"summary":"Get Customer Entity View Infos (getCustomerEntityViewInfos)","description":"Returns a page of entity view info objects owned by the specified customer. Entity Views Info extends the Entity View with owner name. Entity Views limit the degree of exposure of the Device or Asset telemetry and attributes to the Customers. Every Entity View references exactly one entity (device or asset) and defines telemetry and attribute keys that will be visible to the assigned Customer. As a Tenant Administrator you are able to create multiple EVs per Device or Asset and assign them to different Customers.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerEntityViewInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"type","in":"query","description":"\n\n## Entity View Filter\n\nAllows to filter entity views based on their type and the **'starts with'** expression over their name. For example, this entity filter selects all 'Concrete Mixer' entity views which name starts with 'CAT':\n\n```json\n{\n  \"type\": \"entityViewType\",\n  \"entityViewType\": \"Concrete Mixer\",\n  \"entityViewNameFilter\": \"CAT\"\n}\n```","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the entity view name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityViewInfo"}}}}}}},"/api/customer/{customerId}/edges":{"get":{"tags":["edge-controller"],"summary":"Get Customer Edges (getCustomerEdges)","description":"Returns a page of edges objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getCustomerEdges","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"A string value representing the edge type. For example, 'default'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdge"}}}}}}},"/api/customer/{customerId}/edgeInfos":{"get":{"tags":["edge-controller"],"summary":"Get Customer Edge Infos (getCustomerEdgeInfos)","description":"Returns a page of edge info objects owned by the specified customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerEdgeInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"type","in":"query","description":"A string value representing the edge type. For example, 'default'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the edge name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEdgeInfo"}}}}}}},"/api/customer/{customerId}/devices":{"get":{"tags":["device-controller"],"summary":"Get Customer Devices (getCustomerDevices)","description":"Returns a page of devices objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerDevices","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"Device type as the name of the device profile","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deviceProfileName","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDevice"}}}}}}},"/api/customer/{customerId}/deviceInfos":{"get":{"tags":["device-controller"],"summary":"Get Customer Device Infos (getCustomerDeviceInfos)","description":"Returns a page of device info objects owned by the specified customer. Device Info is an extension of the default Device object that contains information about the owner name.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerDeviceInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"deviceProfileId","in":"query","description":"A string value representing the device profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"active","in":"query","description":"A boolean value representing the device active flag.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the device name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","deviceProfileName","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDeviceInfo"}}}}}}},"/api/customer/{customerId}/dashboards":{"get":{"tags":["dashboard-controller"],"summary":"Get Customer Dashboards (getCustomerDashboards)","description":"Returns a page of dashboard info objects owned by the specified customer. The Dashboard Info object contains lightweight information about the dashboard (e.g. title, image, assigned customers) but does not contain the heavyweight configuration JSON. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerDashboards","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the dashboard title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataDashboardInfo"}}}}}}},"/api/customer/{customerId}/customerInfos":{"get":{"tags":["customer-controller"],"summary":"Get Customer sub-customers Infos (getCustomerCustomerInfos)","description":"Returns a page of customer info objects owned by the specified customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerCustomerInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the customer title.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title","email","country","city"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCustomerInfo"}}}}}}},"/api/customer/{customerId}/assets":{"get":{"tags":["asset-controller"],"summary":"Get Customer Assets (getCustomerAssets)","description":"Returns a page of assets objects owned by customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerAssets","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"Asset type","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAsset"}}}}}}},"/api/customer/{customerId}/assetInfos":{"get":{"tags":["asset-controller"],"summary":"Get Customer Asset Infos (getCustomerAssetInfos)","description":"Returns a page of asset info objects owned by the specified customer. Asset Info is an extension of the default Asset object that contains information about the owner name.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerAssetInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"assetProfileId","in":"query","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAssetInfo"}}}}}}},"/api/customer/{customerId}/agents":{"get":{"tags":["agent-controller"],"summary":"Get Customer Agents (getCustomerAgents)","description":"Returns a page of agent objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getCustomerAgents","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value representing agent name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgent"}}}}}}},"/api/customer/{customerId}/agentInfos":{"get":{"tags":["agent-controller"],"summary":"Get Customer Agent Infos (getCustomerAgentInfos)","description":"Returns a page of agent info objects assigned to customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getCustomerAgentInfos","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value representing agent name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentInfo"}}}}}}},"/api/customer/users":{"get":{"tags":["user-controller"],"summary":"Get Customer Users (getCustomerUsers)","description":"Returns a page of users for the current tenant with authority 'CUSTOMER_USER'. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllCustomerUsers","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the user email.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","firstName","lastName","email"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataUser"}}}}}}},"/api/customer/info/{customerId}":{"get":{"tags":["customer-controller"],"summary":"Get Customer info (getCustomerInfoById)","description":"Get the Customer info object based on the provided Customer Id. If the user has the authority of 'Tenant Administrator', the server checks that the customer is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the user belongs to the customer.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getCustomerInfoById","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerInfo"}}}}}}},"/api/customMenu/{customMenuId}/info":{"get":{"tags":["custom-menu-controller"],"summary":"Get Custom Menu Info (getCustomMenuInfoById)","description":"Fetch the Custom Menu Info object based on the provided Custom Menu Id. \n\nSecurity check is performed to verify that the user has 'READ' permission for the custom menu with specified id.","operationId":"getCustomMenuInfoById","parameters":[{"name":"customMenuId","in":"path","description":"A string value representing the custom menu id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenuInfo"}}}}}}},"/api/customMenu/{customMenuId}/assigneeList":{"get":{"tags":["custom-menu-controller"],"summary":"Get Custom Menu assignee list (getCustomMenuAssigneeList)","description":"Fetch the list of Entity Info objects that represents users or customers, or empty list if custom menu is not assigned or has NO_ASSIGN/ALL assignee type.\n\nSecurity check is performed to verify that the user has 'READ' permission for the custom menu with specified id.","operationId":"getCustomMenuAssigneeList","parameters":[{"name":"customMenuId","in":"path","description":"A string value representing the custom menu id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}}}}},"/api/customMenu/infos":{"get":{"tags":["custom-menu-controller"],"summary":"Get all custom menus configured at user level (getCustomMenuInfos)","description":"Returns a page of custom menu info objects owned by the tenant or the customer of a current user, scope and assigneeType request parameters can be used to filter the result.\n\nSecurity check is performed to verify that the user has 'READ' permission for the white labeling resource.","operationId":"getCustomMenuInfos","parameters":[{"name":"scope","in":"query","description":"Custom menu scope.","required":false,"schema":{"$ref":"#/components/schemas/CMScope"}},{"name":"assigneeType","in":"query","description":"Custom menu assignee type.","required":false,"schema":{"$ref":"#/components/schemas/CMAssigneeType"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the custom menu name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","title"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCustomMenuInfo"}}}}}}},"/api/converters":{"get":{"tags":["converter-controller"],"summary":"Get Converters (getConverters)","description":"Returns a page of converters owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getConverters","parameters":[{"name":"isEdgeTemplate","in":"query","description":"Fetch edge template converters","required":false,"schema":{"type":"boolean","default":false}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32","minimum":0}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the converter name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","debugMode"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"integrationType","in":"query","description":"A string value representing the integration type. One of the following:\nAPACHE_PULSAR, AWS_IOT, AWS_KINESIS, AWS_SQS, AZURE_EVENT_HUB, AZURE_IOT_HUB, AZURE_SERVICE_BUS, CHIRPSTACK, COAP, CUSTOM, HTTP, IBM_WATSON_IOT, KAFKA, LORIOT, MQTT, OCEANCONNECT, OPC_UA, PUB_SUB, RABBITMQ,  SIGFOX,  TCP,  THINGPARK,  TMOBILE_IOT_CDP,  TPE,  TTI,  TTN,  TUYA,  UDP","required":false,"schema":{"$ref":"#/components/schemas/IntegrationType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataConverter"}}}}}}},"/api/converters/list":{"get":{"tags":["converter-controller"],"summary":"Get Converters By Ids (getConvertersByIds)","description":"Requested converters must be owned by tenant which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getConvertersByIds","parameters":[{"name":"converterIds","in":"query","description":"A list of converter ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Converter"}}}}}}}},"/api/converter/{converterId}":{"get":{"tags":["converter-controller"],"summary":"Get Converter (getConverterById)","description":"Fetch the Converter object based on the provided Converter Id. The server checks that the converter is owned by the same tenant. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getConverterById","parameters":[{"name":"converterId","in":"path","description":"A string value representing the converter id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Converter"}}}}}},"delete":{"tags":["converter-controller"],"summary":"Delete converter (deleteConverter)","description":"Deletes the converter and all the relations (from and to the converter). Referencing non-existing converter Id will cause an error. If the converter is associated with the integration, it will not be allowed for deletion.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteConverter","parameters":[{"name":"converterId","in":"path","description":"A string value representing the converter id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/converter/{converterId}/debugIn":{"get":{"tags":["converter-controller"],"summary":"Get latest debug input event (getLatestConverterDebugInput)","description":"Returns a JSON object of the latest debug event representing the input message the converter processed. \n\n## Uplink Converter Debug Input Event Example\n\n```json\n{\n   \"inContentType\":\"JSON\",\n   \"inContent\":\"{\\\"temp\\\":40}\",\n   \"inMetadata\":\"{\\\"Header:sec-ch-ua\\\":\\\"\\\\\\\"Chromium\\\\\\\";v=\\\\\\\"94\\\\\\\", \\\\\\\"Google Chrome\\\\\\\";v=\\\\\\\"94\\\\\\\", \\\\\\\";Not A Brand\\\\\\\";v=\\\\\\\"99\\\\\\\"\\\",\\\"Header:user-agent\\\":\\\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36\\\",\\\"integrationName\\\":\\\"Integration\\\",\\\"Header:cookie\\\":\\\"GUID=zYSs8hymSwZKv8kHALKY; redirect_to=%2F; JSESSIONID=B0A7C8E481409CE7924E738DB04F62F9\\\",\\\"Header:sec-ch-ua-platform\\\":\\\"\\\\\\\"Linux\\\\\\\"\\\",\\\"Header:accept\\\":\\\"*/*\\\",\\\"Header:origin\\\":\\\"http://localhost:8080\\\",\\\"Header:sec-fetch-site\\\":\\\"same-origin\\\",\\\"Header:connection\\\":\\\"keep-alive\\\",\\\"Header:accept-encoding\\\":\\\"gzip, deflate, br\\\",\\\"Header:content-type\\\":\\\"application/json\\\",\\\"Header:content-length\\\":\\\"16\\\",\\\"Header:sec-fetch-mode\\\":\\\"cors\\\",\\\"Header:sec-ch-ua-mobile\\\":\\\"?0\\\",\\\"Header:sec-fetch-dest\\\":\\\"empty\\\",\\\"Header:host\\\":\\\"localhost:8080\\\",\\\"Header:referer\\\":\\\"http://localhost:8080/swagger-ui.html\\\",\\\"Header:accept-language\\\":\\\"en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7,uk;q=0.6,und;q=0.5\\\"}\"\n}\n```\n\n * 'inContentType' - content type of the message received by the integration; \n * 'inContent' - message data received; \n * 'inMetadata' - integration metadata (e.g. headers).\n\n## Downlink Converter Debug Input Event Example\n\n```json\n{\n   \"inContentType\":\"JSON\",\n   \"inContent\":\"{\\\"temp\\\":42,\\\"humidity\\\":77}\",\n   \"inMsgType\":\"POST_TELEMETRY_REQUEST\",\n   \"inMetadata\":\"{\\\"data\\\":\\\"40\\\"}\",\n   \"inIntegrationMetadata\":\"{\\\"integrationName\\\":\\\"Integration\\\"}\"\n}\n```\n\n * 'inContentType' - content type of the message received by the integration; \n * 'inContent' - content of the message pushed from the rule engine; \n * 'inMsgType' - type of the message pushed from the rule engine; \n * 'inMetadata' - content of the message metadata pushed from the rule engine; \n * 'inIntegrationMetadata' - integration metadata. \n\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getLatestConverterDebugInput","parameters":[{"name":"converterId","in":"path","description":"A string value representing the converter id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"converterType","in":"query","description":"A string value representing the converter type. One of the following:\nUPLINK, DOWNLINK","required":false,"schema":{"type":"string"}},{"name":"integrationType","in":"query","description":"A string value representing the integration type. One of the following:\nAPACHE_PULSAR, AWS_IOT, AWS_KINESIS, AWS_SQS, AZURE_EVENT_HUB, AZURE_IOT_HUB, AZURE_SERVICE_BUS, CHIRPSTACK, COAP, CUSTOM, HTTP, IBM_WATSON_IOT, KAFKA, LORIOT, MQTT, OCEANCONNECT, OPC_UA, PUB_SUB, RABBITMQ,  SIGFOX,  TCP,  THINGPARK,  TMOBILE_IOT_CDP,  TPE,  TTI,  TTN,  TUYA,  UDP","required":false,"schema":{"type":"string"}},{"name":"integrationName","in":"query","description":"A string value representing the integration name. For example, 'My New Integration'","required":false,"schema":{"type":"string"}},{"name":"converterVersion","in":"query","description":"Converter version.","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/{model}/uplink":{"get":{"tags":["converter-library-controller"],"summary":"Get uplink converter (getUplinkConverter)","description":"Returns uplink converter body for the vendor, integration type and model","operationId":"getUplinkConverter","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/{model}/uplink/payload":{"get":{"tags":["converter-library-controller"],"summary":"Get uplink payload (getUplinkPayload)","description":"Returns payload example for the uplink converter for the vendor, integration type and model","operationId":"getUplinkPayload","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/{model}/uplink/metadata":{"get":{"tags":["converter-library-controller"],"summary":"Get uplink converter metadata (getUplinkConverterMetadata)","description":"Returns uplink converter metadata for the vendor, integration type and model","operationId":"getUplinkConverterMetadata","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/{model}/downlink":{"get":{"tags":["converter-library-controller"],"summary":"Get downlink converter (getDownlinkConverter)","description":"Returns downlink converter body for the vendor, integration type and model","operationId":"getDownlinkConverter","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/{model}/downlink/payload":{"get":{"tags":["converter-library-controller"],"summary":"Get downlink payload (getDownlinkPayload)","description":"Returns payload example for the downlink converter for the vendor, integration type and model","operationId":"getDownlinkPayload","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/{model}/downlink/metadata":{"get":{"tags":["converter-library-controller"],"summary":"Get downlink converter metadata (getDownlinkConverterMetadata)","description":"Returns downlink converter metadata for the vendor, integration type and model","operationId":"getDownlinkConverterMetadata","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"model","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/converter/library/{integrationType}/{vendorName}/models":{"get":{"tags":["converter-library-controller"],"summary":"Get vendor models (getVendorModels)","description":"Returns a list of models for the vendor, integration type and converter type","operationId":"getVendorModels","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"vendorName","in":"path","required":true,"schema":{"type":"string"}},{"name":"converterType","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":2147483647}},{"name":"loadImages","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Model"}}}}}}}},"/api/converter/library/{integrationType}/vendors":{"get":{"tags":["converter-library-controller"],"summary":"Get vendors (getVendors)","description":"Returns a list of vendors for the integration type","operationId":"getVendors","parameters":[{"name":"integrationType","in":"path","required":true,"schema":{"$ref":"#/components/schemas/IntegrationType"}},{"name":"converterType","in":"query","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"pageSize","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":2147483647}},{"name":"loadImages","in":"query","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Vendor"}}}}}}}},"/api/components":{"get":{"tags":["component-descriptor-controller"],"summary":"Get Component Descriptors (getComponentDescriptorsByTypes)","description":"Gets the Component Descriptors using coma separated list of rule node types and optional rule chain type request parameters. Each Component Descriptor represents configuration of specific rule node (e.g. 'Save Timeseries' or 'Send Email'.). The Component Descriptors are used by the rule chain Web UI to build the configuration forms for the rule nodes. The Component Descriptors are discovered at runtime by scanning the class path and searching for @RuleNode annotation. Once discovered, the up to date list of descriptors is persisted to the database.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getComponentDescriptorsByTypes","parameters":[{"name":"componentTypes","in":"query","description":"List of types of the Rule Nodes, (ENRICHMENT, FILTER, TRANSFORMATION, ACTION or EXTERNAL)","required":true,"schema":{"type":"array","items":{"type":"string"}}},{"name":"ruleChainType","in":"query","description":"Type of the Rule Chain","required":false,"schema":{"type":"string","enum":["CORE","EDGE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComponentDescriptor"}}}}}}}},"/api/components/{componentType}":{"get":{"tags":["component-descriptor-controller"],"summary":"Get Component Descriptors (getComponentDescriptorsByType)","description":"Gets the Component Descriptors using rule node type and optional rule chain type request parameters. Each Component Descriptor represents configuration of specific rule node (e.g. 'Save Timeseries' or 'Send Email'.). The Component Descriptors are used by the rule chain Web UI to build the configuration forms for the rule nodes. The Component Descriptors are discovered at runtime by scanning the class path and searching for @RuleNode annotation. Once discovered, the up to date list of descriptors is persisted to the database.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getComponentDescriptorsByType","parameters":[{"name":"componentType","in":"path","description":"Type of the Rule Node","required":true,"schema":{"type":"string","enum":["ENRICHMENT","FILTER","TRANSFORMATION","ACTION","EXTERNAL"]}},{"name":"ruleChainType","in":"query","description":"Type of the Rule Chain","required":false,"schema":{"type":"string","enum":["CORE","EDGE"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ComponentDescriptor"}}}}}}}},"/api/component/{componentDescriptorClazz}":{"get":{"tags":["component-descriptor-controller"],"summary":"Get Component Descriptor (getComponentDescriptorByClazz)","description":"Gets the Component Descriptor object using class name from the path parameters. Each Component Descriptor represents configuration of specific rule node (e.g. 'Save Timeseries' or 'Send Email'.). The Component Descriptors are used by the rule chain Web UI to build the configuration forms for the rule nodes. The Component Descriptors are discovered at runtime by scanning the class path and searching for @RuleNode annotation. Once discovered, the up to date list of descriptors is persisted to the database.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"getComponentDescriptorByClazz","parameters":[{"name":"componentDescriptorClazz","in":"path","description":"Component Descriptor class name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentDescriptor"}}}}}}},"/api/cloudEndpoint/tenant/permission/whiteLabelingAllowed":{"get":{"tags":["cloud-endpoint-controller"],"operationId":"checkTenantWhiteLabelingAllowed","responses":{"200":{"description":"OK"}}}},"/api/cloudEndpoint/tenant/permission/whiteLabel/write":{"get":{"tags":["cloud-endpoint-controller"],"operationId":"tenantHasWhiteLabelWrite","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/cloudEndpoint/tenant/permission/whiteLabel/read":{"get":{"tags":["cloud-endpoint-controller"],"operationId":"tenantHasWhiteLabelRead","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/cloudEndpoint/permission/domain/write":{"get":{"tags":["cloud-endpoint-controller"],"operationId":"hasDomainWritePermission","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/cloudEndpoint/permission/domain/read":{"get":{"tags":["cloud-endpoint-controller"],"operationId":"hasDomainReadPermission","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/calculatedFields":{"get":{"tags":["calculated-field-controller"],"summary":"Get calculated fields (getCalculatedFields)","description":"Fetch tenant calculated fields based on the filter.","operationId":"getCalculatedFields","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"types","in":"query","description":"Calculated field types filter.","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/CalculatedFieldType"},"uniqueItems":true}},{"name":"entityType","in":"query","description":"Entity type filter. If not specified, calculated fields for all supported entity types will be returned.","required":false,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"entities","in":"query","description":"Entities filter. If not specified, calculated fields for entity type filter will be returned.","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the calculated field name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"name","in":"query","description":"Repeatable name query parameter","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCalculatedFieldInfo"}}}}}}},"/api/calculatedFields/names":{"get":{"tags":["calculated-field-controller"],"summary":"Get calculated field names (getCalculatedFieldNames)","description":"Fetch the list of calculated field names for specified type.","operationId":"getCalculatedFieldNames","parameters":[{"name":"type","in":"query","description":"Calculated field type filter.","required":true,"schema":{"$ref":"#/components/schemas/CalculatedFieldType"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the calculated field name.","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataString"}}}}}}},"/api/calculatedField/{entityType}/{entityId}":{"get":{"tags":["calculated-field-controller"],"summary":"Get Calculated Fields by Entity Id (getCalculatedFieldsByEntityId)","description":"Fetch the Calculated Fields based on the provided Entity Id.","operationId":"getCalculatedFieldsByEntityId","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"Calculated field type. If not specified, all types will be returned.","required":false,"schema":{"$ref":"#/components/schemas/CalculatedFieldType"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the calculated field name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataCalculatedField"}}}}}}},"/api/calculatedField/{calculatedFieldId}":{"get":{"tags":["calculated-field-controller"],"summary":"Get Calculated Field (getCalculatedFieldById)","description":"Fetch the Calculated Field object based on the provided Calculated Field Id.","operationId":"getCalculatedFieldById","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculatedField"}}}}}},"delete":{"tags":["calculated-field-controller"],"summary":"Delete Calculated Field (deleteCalculatedField)","description":"Deletes the calculated field. Referencing non-existing Calculated Field Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteCalculatedField","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/calculatedField/{calculatedFieldId}/reprocess":{"get":{"tags":["calculated-field-controller"],"summary":"Reprocess Calculated Field (reprocessCalculatedField)","description":"Reprocesses the calculated field.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"reprocessCalculatedField","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string"}},{"name":"startTs","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endTs","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}}}}},"/api/calculatedField/{calculatedFieldId}/reprocessAndWait":{"get":{"tags":["calculated-field-controller"],"summary":"Reprocess Calculated Field and wait for completion (reprocessCalculatedFieldAndWait)","description":"Reprocesses the calculated field and waits until the job completes or fails.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"reprocessCalculatedFieldAndWait","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string"}},{"name":"startTs","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"endTs","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/api/calculatedField/{calculatedFieldId}/reprocess/validate":{"get":{"tags":["calculated-field-controller"],"summary":"Validate reprocessing capability of a calculated field (validateCalculatedFieldReprocessing)","description":"Checks whether the specified calculated field can be reprocessed. Returns a validation result indicating if reprocessing is allowed and, if not, provides a reason. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"validateCalculatedFieldReprocessing","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CfReprocessingValidationResult"}}}}}}},"/api/calculatedField/{calculatedFieldId}/reprocess/job":{"get":{"tags":["calculated-field-controller"],"operationId":"getLastCalculatedFieldReprocessingJob","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}}}}},"/api/calculatedField/{calculatedFieldId}/debug":{"get":{"tags":["calculated-field-controller"],"summary":"Get latest calculated field debug event (getLatestCalculatedFieldDebugEvent)","description":"Gets latest calculated field debug event for specified calculated field id. Referencing non-existing calculated field id will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLatestCalculatedFieldDebugEvent","parameters":[{"name":"calculatedFieldId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/blobEntity/{blobEntityId}/download":{"get":{"tags":["blob-entity-controller"],"summary":"Download Blob Entity By Id (downloadBlobEntity)","description":"Download report file based on the provided Blob entity Id. Referencing non-existing Blob entity Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"downloadBlobEntity","parameters":[{"name":"blobEntityId","in":"path","description":"A string value representing the blob entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"binary"}}}}}}},"/api/blobEntity/info/{blobEntityId}":{"get":{"tags":["blob-entity-controller"],"summary":"Get Blob Entity With Customer Info (getBlobEntityInfoById)","description":"Fetch the BlobEntityWithCustomerInfo object based on the provided Blob entity Id. The platform uses Blob(binary large object) entities in the reporting feature, in order to store Dashboard states snapshots of different content types in base64 format. BlobEntityWithCustomerInfo represents an object that contains base info about the blob entity(name, type, contentType, etc.) and info about the customer(customerTitle, customerIsPublic) of the user that scheduled generation of the dashboard report. Referencing non-existing Blob entity Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getBlobEntityInfoById","parameters":[{"name":"blobEntityId","in":"path","description":"A string value representing the blob entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlobEntityWithCustomerInfo"}}}}}}},"/api/blobEntities":{"get":{"tags":["blob-entity-controller"],"summary":"Get Blob Entities (getBlobEntities)","description":"Returns a page of BlobEntityWithCustomerInfo object that are available for the current user. The platform uses Blob(binary large object) entities in the reporting feature, in order to store Dashboard states snapshots of different content types in base64 format. BlobEntityWithCustomerInfo represents an object that contains base info about the blob entity(name, type, contentType, etc.) and info about the customer(customerTitle, customerIsPublic) of the user that scheduled generation of the dashboard report. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getBlobEntities","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"type","in":"query","description":"A string value representing the blob entity type. For example, 'report'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'startsWith' filter based on the blob entity name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","contentType","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the BlobEntityWithCustomerInfo class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the BlobEntityWithCustomerInfo class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataBlobEntityWithCustomerInfo"}}}}}}},"/api/blobEntities/list":{"get":{"tags":["blob-entity-controller"],"summary":"Get Blob Entities By Ids (getBlobEntitiesByIds)","description":"Requested blob entities must be owned by tenant or assigned to customer which user is performing the request. The platform uses Blob(binary large object) entities in the reporting feature, in order to store Dashboard states snapshots of different content types in base64 format. BlobEntityInfo represents an object that contains base info about the blob entity(name, type, contentType, etc.). See the 'Model' tab of the Response Class for more details.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getBlobEntitiesByIds","parameters":[{"name":"blobEntityIds","in":"query","description":"A list of blob entity ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlobEntityInfo"}}}}}}}},"/api/billingEndpoint/tenant/permission/billing/write":{"get":{"tags":["billing-endpoint-controller"],"operationId":"tenantHasBillingWrite","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/billingEndpoint/tenant/permission/billing/read":{"get":{"tags":["billing-endpoint-controller"],"operationId":"tenantHasBillingRead","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/billingEndpoint/tenant/permission/billing/hiddenPlans":{"get":{"tags":["billing-endpoint-controller"],"operationId":"tenantHasHiddenPlansAccess","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/auth/user":{"get":{"tags":["auth-controller"],"summary":"Get current User (getUser)","description":"Get the information about the User which credentials are used to perform this REST API call.","operationId":"getUser","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}}}}},"/api/auth/2fa/providers":{"get":{"tags":["two-factor-auth-controller"],"summary":"Get available 2FA providers (getAvailableTwoFaProviderInfos)","description":"Get the list of 2FA provider infos available for user to use. Example:\n```\n[\n  {\n    \"type\": \"EMAIL\",\n    \"default\": true,\n    \"contact\": \"ab*****ko@gmail.com\"\n  },\n  {\n    \"type\": \"TOTP\",\n    \"default\": false,\n    \"contact\": null\n  },\n  {\n    \"type\": \"SMS\",\n    \"default\": false,\n    \"contact\": \"+38********12\"\n  }\n]\n```","operationId":"getAvailableTwoFaProviderInfos","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwoFaProviderInfo"}}}}}}}},"/api/audit/logs":{"get":{"tags":["audit-log-controller"],"summary":"Get all audit logs (getAuditLogs)","description":"Returns a page of audit logs related to all entities in the scope of the current user's Tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the audit logs.","operationId":"getAuditLogs","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on one of the next properties: entityType, entityName, userName, actionType, actionStatus.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of audit log to sort by. See the 'Model' tab of the Response Class for more details. Note: entityType sort property is not defined in the AuditLog class, however, it can be used to sort audit logs by types of entities that were logged.","required":false,"schema":{"type":"string","enum":["createdTime","entityType","entityName","userName","actionType","actionStatus"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"actionTypes","in":"query","description":"A String value representing comma-separated list of action types. This parameter is optional, but it can be used to filter results to fetch only audit logs of specific action types. For example, 'LOGIN', 'LOGOUT'. See the 'Model' tab of the Response Class for more details.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAuditLog"}}}}}}},"/api/audit/logs/user/{userId}":{"get":{"tags":["audit-log-controller"],"summary":"Get audit logs by user id (getAuditLogsByUserId)","description":"Returns a page of audit logs related to the actions of targeted user. For example, RPC call to a particular device, or alarm acknowledgment for a specific device, etc. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the audit logs.","operationId":"getAuditLogsByUserId","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on one of the next properties: entityType, entityName, userName, actionType, actionStatus.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of audit log to sort by. See the 'Model' tab of the Response Class for more details. Note: entityType sort property is not defined in the AuditLog class, however, it can be used to sort audit logs by types of entities that were logged.","required":false,"schema":{"type":"string","enum":["createdTime","entityType","entityName","userName","actionType","actionStatus"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"actionTypes","in":"query","description":"A String value representing comma-separated list of action types. This parameter is optional, but it can be used to filter results to fetch only audit logs of specific action types. For example, 'LOGIN', 'LOGOUT'. See the 'Model' tab of the Response Class for more details.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAuditLog"}}}}}}},"/api/audit/logs/entity/{entityType}/{entityId}":{"get":{"tags":["audit-log-controller"],"summary":"Get audit logs by entity id (getAuditLogsByEntityId)","description":"Returns a page of audit logs related to the actions on the targeted entity. Basically, this API call is used to get the full lifecycle of some specific entity. For example to see when a device was created, updated, assigned to some customer, or even deleted from the system. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the audit logs.","operationId":"getAuditLogsByEntityId","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on one of the next properties: entityType, entityName, userName, actionType, actionStatus.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of audit log to sort by. See the 'Model' tab of the Response Class for more details. Note: entityType sort property is not defined in the AuditLog class, however, it can be used to sort audit logs by types of entities that were logged.","required":false,"schema":{"type":"string","enum":["createdTime","entityType","entityName","userName","actionType","actionStatus"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"actionTypes","in":"query","description":"A String value representing comma-separated list of action types. This parameter is optional, but it can be used to filter results to fetch only audit logs of specific action types. For example, 'LOGIN', 'LOGOUT'. See the 'Model' tab of the Response Class for more details.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAuditLog"}}}}}}},"/api/audit/logs/customer/{customerId}":{"get":{"tags":["audit-log-controller"],"summary":"Get audit logs by customer id (getAuditLogsByCustomerId)","description":"Returns a page of audit logs related to the targeted customer entities (devices, assets, etc.), and users actions (login, logout, etc.) that belong to this customer. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the audit logs.","operationId":"getAuditLogsByCustomerId","parameters":[{"name":"customerId","in":"path","description":"A string value representing the customer id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on one of the next properties: entityType, entityName, userName, actionType, actionStatus.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of audit log to sort by. See the 'Model' tab of the Response Class for more details. Note: entityType sort property is not defined in the AuditLog class, however, it can be used to sort audit logs by types of entities that were logged.","required":false,"schema":{"type":"string","enum":["createdTime","entityType","entityName","userName","actionType","actionStatus"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the AuditLog class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"actionTypes","in":"query","description":"A String value representing comma-separated list of action types. This parameter is optional, but it can be used to filter results to fetch only audit logs of specific action types. For example, 'LOGIN', 'LOGOUT'. See the 'Model' tab of the Response Class for more details.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAuditLog"}}}}}}},"/api/assetProfiles":{"get":{"tags":["asset-profile-controller"],"summary":"Get Asset Profiles (getAssetProfiles)","description":"Returns a page of asset profile objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAssetProfiles","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset profile name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","description","isDefault"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAssetProfile"}}}}}}},"/api/assetProfileInfos":{"get":{"tags":["asset-profile-controller"],"summary":"Get Asset Profile infos (getAssetProfileInfos)","description":"Returns a page of asset profile info objects owned by tenant. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. Asset Profile Info is a lightweight object that includes main information about Asset Profile. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAssetProfileInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset profile name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","description","isDefault"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAssetProfileInfo"}}}}}}},"/api/assetProfileInfos/list":{"get":{"tags":["asset-profile-controller"],"summary":"Get Asset Profiles By Ids (getAssetProfilesByIds)","description":"Requested asset profiles must be owned by tenant which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAssetProfilesByIds","parameters":[{"name":"assetProfileIds","in":"query","description":"A list of asset profile ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssetProfileInfo"}}}}}}}},"/api/assetProfileInfo/{assetProfileId}":{"get":{"tags":["asset-profile-controller"],"summary":"Get Asset Profile Info (getAssetProfileInfoById)","description":"Fetch the Asset Profile Info object based on the provided Asset Profile Id. Asset Profile Info is a lightweight object that includes main information about Asset Profile. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAssetProfileInfoById","parameters":[{"name":"assetProfileId","in":"path","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProfileInfo"}}}}}}},"/api/assetProfileInfo/default":{"get":{"tags":["asset-profile-controller"],"summary":"Get Default Asset Profile (getDefaultAssetProfileInfo)","description":"Fetch the Default Asset Profile Info object. Asset Profile Info is a lightweight object that includes main information about Asset Profile. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getDefaultAssetProfileInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProfileInfo"}}}}}}},"/api/assetProfile/{assetProfileId}":{"get":{"tags":["asset-profile-controller"],"summary":"Get Asset Profile (getAssetProfileById)","description":"Fetch the Asset Profile object based on the provided Asset Profile Id. The server checks that the asset profile is owned by the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAssetProfileById","parameters":[{"name":"assetProfileId","in":"path","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"inlineImages","in":"query","description":"Inline images as a data URL (Base64)","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProfile"}}}}}},"delete":{"tags":["asset-profile-controller"],"summary":"Delete asset profile (deleteAssetProfile)","description":"Deletes the asset profile. Referencing non-existing asset profile Id will cause an error. Can't delete the asset profile if it is referenced by existing assets.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAssetProfile","parameters":[{"name":"assetProfileId","in":"path","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/assetProfile/names":{"get":{"tags":["asset-profile-controller"],"summary":"Get Asset Profile names (getAssetProfileNames)","description":"Returns a set of unique asset profile names owned by the tenant.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAssetProfileNames","parameters":[{"name":"activeOnly","in":"query","description":"Flag indicating whether to retrieve exclusively the names of asset profiles that are referenced by tenant's assets.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}}}}},"/api/assetInfos/all":{"get":{"tags":["asset-controller"],"summary":"Get All Asset Infos for current user (getAllAssetInfos)","description":"Returns a page of asset info objects owned by the tenant or the customer of a current user. Asset Info is an extension of the default Asset object that contains information about the owner name.  You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllAssetInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"includeCustomers","in":"query","description":"Include customer or sub-customer entities. For tenant administrator: when true, includes entities for all customers; when false (default), only own entities are returned. For customer user: when true, includes entities for all sub-customers.","required":false,"schema":{"type":"boolean"}},{"name":"assetProfileId","in":"query","description":"A string value representing the asset profile id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the asset name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","type","label","customerTitle"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAssetInfo"}}}}}}},"/api/asset/{assetId}":{"get":{"tags":["asset-controller"],"summary":"Get Asset (getAssetById)","description":"Fetch the Asset object based on the provided Asset Id. If the user has the authority of 'Tenant Administrator', the server checks that the asset is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the asset is assigned to the same customer.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAssetById","parameters":[{"name":"assetId","in":"path","description":"A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}}}},"delete":{"tags":["asset-controller"],"summary":"Delete asset (deleteAsset)","description":"Deletes the asset and all the relations (from and to the asset). Referencing non-existing asset Id will cause an error.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteAsset","parameters":[{"name":"assetId","in":"path","description":"A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/asset/types":{"get":{"tags":["asset-controller"],"summary":"Get Asset Types (getAssetTypes)","description":"Deprecated. See 'getAssetProfileNames' API from Asset Profile Controller instead.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"getAssetTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitySubtype"}}}}}},"deprecated":true}},"/api/asset/info/{assetId}":{"get":{"tags":["asset-controller"],"summary":"Get Asset Info (getAssetInfoById)","description":"Fetch the Asset Info object based on the provided Asset Id. If the user has the authority of 'Tenant Administrator', the server checks that the asset is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the asset is assigned to the same customer.Asset Info is an extension of the default Asset object that contains information about the owner name. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAssetInfoById","parameters":[{"name":"assetId","in":"path","description":"A string value representing the asset id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetInfo"}}}}}}},"/api/apiKeys/{userId}":{"get":{"tags":["api-key-controller"],"summary":"Get User Api Keys (getUserApiKeys)","description":"Returns a page of api keys owned by user. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for any authorized user. ","operationId":"getUserApiKeys","parameters":[{"name":"userId","in":"path","description":"A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the description.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","expirationTime","description","enabled"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataApiKeyInfo"}}}}}}},"/api/allEntityGroups/edge/{edgeId}/{groupType}":{"get":{"tags":["entity-group-controller"],"summary":"Get All Edge Entity Groups by entity type (getAllEdgeEntityGroups)","description":"Fetch the list of Entity Group Info objects based on the provided Entity Type and assigned to the provided Edge entity. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.Entity Group Info extends Entity Group object and adds 'ownerIds' - a list of owner ids.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllEdgeEntityGroups","parameters":[{"name":"edgeId","in":"path","description":"A string value representing the edge id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"groupType","in":"path","description":"EntityGroup type","required":true,"schema":{"type":"string","enum":["ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntityGroupInfo"}}}}}}}},"/api/alarms":{"get":{"tags":["alarm-controller"],"summary":"Get All Alarms (getAllAlarms)","description":"Returns a page of alarms that belongs to the current user owner. If the user has the authority of 'Tenant Administrator', the server returns alarms that belongs to the tenant of current user. If the user has the authority of 'Customer User', the server returns alarms that belongs to the customer of current user. Specifying both parameters 'searchStatus' and 'status' at the same time will cause an error. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAllAlarms","parameters":[{"name":"searchStatus","in":"query","description":"A string value representing one of the AlarmSearchStatus enumeration value","required":false,"schema":{"type":"string","enum":["ANY","ACTIVE","CLEARED","ACK","UNACK"]}},{"name":"status","in":"query","description":"A string value representing one of the AlarmStatus enumeration value","required":false,"schema":{"type":"string","enum":["ACTIVE_UNACK","ACTIVE_ACK","CLEARED_UNACK","CLEARED_ACK"]}},{"name":"assigneeId","in":"query","description":"A string value representing the assignee user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on of next alarm fields: type, severity or status","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","startTs","endTs","type","ackTs","clearTs","severity","status"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"fetchOriginator","in":"query","description":"A boolean value to specify if the alarm originator name will be filled in the AlarmInfo object  field: 'originatorName' or will returns as null.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmInfo"}}}}}}},"/api/alarm/{entityType}/{entityId}":{"get":{"tags":["alarm-controller"],"summary":"Get Alarms (getAlarmsByEntity)","description":"Returns a page of alarms for the selected entity. Specifying both parameters 'searchStatus' and 'status' at the same time will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAlarmsByEntity","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"searchStatus","in":"query","description":"A string value representing one of the AlarmSearchStatus enumeration value","required":false,"schema":{"type":"string","enum":["ANY","ACTIVE","CLEARED","ACK","UNACK"]}},{"name":"status","in":"query","description":"A string value representing one of the AlarmStatus enumeration value","required":false,"schema":{"type":"string","enum":["ACTIVE_UNACK","ACTIVE_ACK","CLEARED_UNACK","CLEARED_ACK"]}},{"name":"assigneeId","in":"query","description":"A string value representing the assignee user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on of next alarm fields: type, severity or status","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","startTs","endTs","type","ackTs","clearTs","severity","status"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"startTime","in":"query","description":"The start timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTime","in":"query","description":"The end timestamp in milliseconds of the search time range over the Alarm class field: 'createdTime'.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"fetchOriginator","in":"query","description":"A boolean value to specify if the alarm originator name will be filled in the AlarmInfo object  field: 'originatorName' or will returns as null.","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmInfo"}}}}}}},"/api/alarm/{alarmId}":{"get":{"tags":["alarm-controller"],"summary":"Get Alarm (getAlarmById)","description":"Fetch the Alarm object based on the provided Alarm Id. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAlarmById","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alarm"}}}}}},"delete":{"tags":["alarm-controller"],"summary":"Delete Alarm (deleteAlarm)","description":"Deletes the Alarm. Referencing non-existing Alarm Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteAlarm","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/alarm/types":{"get":{"tags":["alarm-controller"],"summary":"Get Alarm Types (getAlarmTypes)","description":"Returns a set of unique alarm types based on alarms that are either owned by the tenant or assigned to the customer which user is performing the request.","operationId":"getAlarmTypes","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on of next alarm fields: type, severity or status","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntitySubtype"}}}}}}},"/api/alarm/rules":{"get":{"tags":["alarm-rule-controller"],"summary":"Get alarm rules (getAlarmRules)","description":"Fetch tenant alarm rules based on the filter.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAlarmRules","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"entityType","in":"query","description":"Entity type filter. If not specified, alarm rules for all supported entity types will be returned.","required":false,"schema":{"$ref":"#/components/schemas/EntityType"}},{"name":"entities","in":"query","description":"Entities filter. If not specified, alarm rules for entity type filter will be returned.","required":false,"schema":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the calculated field name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmRuleDefinitionInfo"}}}}}}},"/api/alarm/rules/{entityType}/{entityId}":{"get":{"tags":["alarm-rule-controller"],"summary":"Get Alarm Rules by Entity Id (getAlarmRulesByEntityId)","description":"Fetch the Alarm Rules based on the provided Entity Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAlarmRulesByEntityId","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the calculated field name.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAlarmRuleDefinition"}}}}}}},"/api/alarm/rules/names":{"get":{"tags":["alarm-rule-controller"],"summary":"Get alarm rule names (getAlarmRuleNames)","description":"Fetch the list of alarm rule names.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAlarmRuleNames","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the calculated field name.","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataString"}}}}}}},"/api/alarm/rule/{alarmRuleId}":{"get":{"tags":["alarm-rule-controller"],"summary":"Get Alarm Rule (getAlarmRuleById)","description":"Fetch the Alarm Rule object based on the provided Alarm Rule Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAlarmRuleById","parameters":[{"name":"alarmRuleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmRuleDefinition"}}}}}},"delete":{"tags":["alarm-rule-controller"],"summary":"Delete Alarm Rule (deleteAlarmRule)","description":"Deletes the alarm rule. Referencing non-existing Alarm Rule Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAlarmRule","parameters":[{"name":"alarmRuleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/alarm/rule/{alarmRuleId}/debug":{"get":{"tags":["alarm-rule-controller"],"summary":"Get latest alarm rule debug event (getLatestAlarmRuleDebugEvent)","description":"Gets latest alarm rule debug event for specified alarm rule id. Referencing non-existing alarm rule id will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLatestAlarmRuleDebugEvent","parameters":[{"name":"alarmRuleId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/alarm/info/{alarmId}":{"get":{"tags":["alarm-controller"],"summary":"Get Alarm Info (getAlarmInfoById)","description":"Fetch the Alarm Info object based on the provided Alarm Id. Alarm Info is an extension of the default Alarm object that also contains name of the alarm originator.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAlarmInfoById","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmInfo"}}}}}}},"/api/alarm/highestSeverity/{entityType}/{entityId}":{"get":{"tags":["alarm-controller"],"summary":"Get Highest Alarm Severity (getHighestAlarmSeverity)","description":"Search the alarms by originator ('entityType' and entityId') and optional 'status' or 'searchStatus' filters and returns the highest AlarmSeverity(CRITICAL, MAJOR, MINOR, WARNING or INDETERMINATE). Specifying both parameters 'searchStatus' and 'status' at the same time will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getHighestAlarmSeverity","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"searchStatus","in":"query","description":"A string value representing one of the AlarmSearchStatus enumeration value","required":false,"schema":{"type":"string","enum":["ANY","ACTIVE","CLEARED","ACK","UNACK"]}},{"name":"status","in":"query","description":"A string value representing one of the AlarmStatus enumeration value","required":false,"schema":{"type":"string","enum":["ACTIVE_UNACK","ACTIVE_ACK","CLEARED_UNACK","CLEARED_ACK"]}},{"name":"assigneeId","in":"query","description":"A string value representing the assignee user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmSeverity"}}}}}}},"/api/ai/solution/{solutionId}":{"get":{"tags":["ai-solution-controller"],"operationId":"getSolution","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}},"delete":{"tags":["ai-solution-controller"],"operationId":"deleteSolution","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/ai/solution/infos":{"get":{"tags":["ai-solution-controller"],"operationId":"getSolutions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/resources/{resourceId}":{"get":{"tags":["ai-resource-controller"],"operationId":"downloadAiResource","parameters":[{"name":"resourceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"delete":{"tags":["ai-resource-controller"],"operationId":"deleteAiResource","parameters":[{"name":"resourceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No Content"}}}},"/api/ai/resources/config":{"get":{"tags":["ai-resource-controller"],"operationId":"getAiResourcesConfig","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/ai/model/{modelUuid}":{"get":{"tags":["ai-model-controller"],"summary":"Get AI model by ID (getAiModelById)","description":"Fetches an AI model record by its `id`.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAiModelById","parameters":[{"name":"modelUuid","in":"path","description":"ID of the AI model record","required":true,"schema":{"type":"string","format":"uuid"},"example":"de7900d4-30e2-11f0-9cd2-0242ac120002"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiModel"}}}}}},"delete":{"tags":["ai-model-controller"],"summary":"Delete AI model by ID (deleteAiModelById)","description":"Deletes the AI model record by its `id`. If a record with the specified `id` exists, the record is deleted and the endpoint returns `true`. If no such record exists, the endpoint returns `false`.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAiModelById","parameters":[{"name":"modelUuid","in":"path","description":"ID of the AI model record","required":true,"schema":{"type":"string","format":"uuid"},"example":"de7900d4-30e2-11f0-9cd2-0242ac120002"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/ai/model/infos":{"get":{"tags":["ai-model-controller"],"summary":"Get AI model infos (getAiModelInfos)","description":"Returns a page of AI model infos: AI models with the provider credentials removed, so 'configuration.providerConfig' is always null. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAiModelInfos","parameters":[{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"The case insensitive 'substring' filter based on the AI model name, provider and model ID.","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name","provider","modelId"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAiModelInfo"}}}}}}},"/api/agentInfos":{"get":{"tags":["agent-controller"],"summary":"Get Agent Infos By Ids (getAgentInfosByIds)","description":"Requested agents must be owned by tenant or assigned to customer which user is performing the request. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAgentInfosByIds","parameters":[{"name":"agentIds","in":"query","description":"A list of agent ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentInfo"}}}}}}}},"/api/agent/{agentId}":{"get":{"tags":["agent-controller"],"summary":"Get Agent (getAgentById)","description":"Fetch the Agent object based on the provided Agent Id. The server checks that the agent is owned by the same tenant.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentById","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Agent"}}}}}},"delete":{"tags":["agent-controller"],"summary":"Delete agent (deleteAgent)","description":"Deletes the agent and all the relations (from and to the agent). Referencing non-existing agent Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAgent","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/{agentId}/upgrade/target":{"get":{"tags":["agent-controller"],"summary":"Get the agent upgrade target (getAgentUpgradeTarget)","description":"Returns the image reference the agent should be upgraded to, or an empty string when it already runs the newest published image or cannot be placed in the version graph.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentUpgradeTarget","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/agent/{agentId}/upgrade/available":{"get":{"tags":["agent-controller"],"summary":"Is agent upgrade available (isAgentUpgradeAvailable)","description":"Returns 'true' when the agent reports an image older than the newest published one, 'false' otherwise — including when the agent runs a floating tag such as 'latest', whose current content cannot be told from the tag.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"isAgentUpgradeAvailable","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/agent/{agentId}/events":{"get":{"tags":["agent-controller"],"summary":"Get Agent App Events by Agent Id (getAgentAppEventsByAgentId)","description":"Returns a page of agent application events for all applications belonging to the specified agent. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppEventsByAgentId","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value reserved for future event filtering","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","updatedTime"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentAppEvent"}}}}}}},"/api/agent/{agentId}/eventInfos":{"get":{"tags":["agent-controller"],"summary":"Get Agent App Event Infos by Agent Id (getAgentAppEventInfosByAgentId)","description":"Returns a page of agent application events for all applications belonging to the specified agent, enriched with the application name for each event. Supports optional filtering by action type and status, and text search over the application name. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppEventInfosByAgentId","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional text value to match against the application name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","updatedTime","actionType","startStatus","processingStatus"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"name":"actionType","in":"query","description":"Optional filter by event action type","required":false,"schema":{"$ref":"#/components/schemas/AgentAppEventActionType"}},{"name":"processingStatus","in":"query","description":"Optional filter by event status","required":false,"schema":{"$ref":"#/components/schemas/AgentProcessingStatus"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentAppEventInfo"}}}}}}},"/api/agent/{agentId}/apps":{"get":{"tags":["agent-application-controller"],"summary":"Get Agent Applications by Agent Id (getAgentApplicationsByAgentId)","description":"Returns a page of agent applications that belong to the specified agent. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentApplicationsByAgentId","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value representing application name","required":false,"schema":{"type":"string"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","name"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentApplicationInfo"}}}}}}},"/api/agent/upgrade/latest":{"get":{"tags":["agent-controller"],"summary":"Get the newest published agent image (getLatestAgentImageRef)","description":"Returns the newest agent image reference known from the version graph, or the floating tag while no version has been published. Lets a list of agents decide locally which rows are upgradable without asking per row.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLatestAgentImageRef","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/agent/profile/{agentProfileId}":{"get":{"tags":["agent-profile-controller"],"summary":"Get Agent Profile (getAgentProfileById)","description":"Fetch the Agent Profile object based on the provided Agent Profile Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentProfileById","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfile"}}}}}},"delete":{"tags":["agent-profile-controller"],"summary":"Delete Agent Profile (deleteAgentProfile)","description":"Deletes the Agent Profile. Referencing a non-existing Agent Profile Id will cause an error. The default Agent Profile can not be deleted.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAgentProfile","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/profile/{agentProfileId}/bulk":{"get":{"tags":["agent-profile-controller"],"summary":"Get Bulk Actions for Agent Profile (getAgentProfileBulkActions)","description":"Returns a page of bulk actions previously submitted for the given agent profile. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentProfileBulkActions","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentBulkAction"}}}}}}},"/api/agent/profile/{agentProfileId}/appProfilesInfo":{"get":{"tags":["agent-profile-controller"],"summary":"Get Agent Profile App Profile Infos (getAgentProfileAppProfileInfos)","description":"Returns app profiles assigned to the given agent profile, enriched with template version, the count of AgentApplications using each app profile within this agent profile and the additional info of the assignment relation.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentProfileAppProfileInfos","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentAppProfileRelationInfo"}}}}}}}},"/api/agent/profile/instructions/provision/{agentProfileId}/{method}":{"get":{"tags":["agent-profile-controller"],"summary":"Get Agent Provision Instructions (getAgentProvisionInstructions)","description":"Returns the auto-provision docker command for the specified agent profile with the server address and gRPC port resolved server-side.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentProvisionInstructions","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","description":"Installation method ('docker')","required":true,"schema":{"type":"string","enum":["docker"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInstructions"}}}}}}},"/api/agent/profile/info/{agentProfileId}":{"get":{"tags":["agent-profile-controller"],"summary":"Get Agent Profile Info (getAgentProfileInfoById)","description":"Fetch the Agent Profile Info object based on the provided Agent Profile Id. Agent Profile Info is a lightweight object that omits the auto-provision key and secret; it is readable by any tenant admin so agent screens can resolve the linked profile.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentProfileInfoById","parameters":[{"name":"agentProfileId","in":"path","description":"Agent Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileInfo"}}}}}}},"/api/agent/profile/info/default":{"get":{"tags":["agent-profile-controller"],"summary":"Get Default Agent Profile (getDefaultAgentProfileInfo)","description":"Fetch the Agent Profile Info object that is marked as default within the current tenant scope.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getDefaultAgentProfileInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfileInfo"}}}}}}},"/api/agent/instructions/install/{agentId}/{method}":{"get":{"tags":["agent-controller"],"summary":"Get Agent Install Instructions (getAgentInstallInstructions)","description":"Returns the docker install command for the specified agent with the server address and gRPC port resolved server-side.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentInstallInstructions","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","description":"Installation method ('docker')","required":true,"schema":{"type":"string","enum":["docker"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInstructions"}}}}}}},"/api/agent/info/{agentId}":{"get":{"tags":["agent-controller"],"summary":"Get Agent Info (getAgentInfoById)","description":"Fetch the Agent Info object based on the provided Agent Id. Agent Info extends the Agent object and adds customer title and 'is public' flag.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentInfoById","parameters":[{"name":"agentId","in":"path","description":"A string value representing the agent id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInfo"}}}}}}},"/api/agent/bulk/{bulkActionId}":{"get":{"tags":["agent-bulk-action-controller"],"summary":"Get Agent Bulk Action (getAgentBulkAction)","description":"Fetch the Agent Bulk Action object based on the provided Bulk Action Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentBulkAction","parameters":[{"name":"bulkActionId","in":"path","description":"Bulk Action Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBulkAction"}}}}}}},"/api/agent/bulk/{bulkActionId}/events":{"get":{"tags":["agent-bulk-action-controller"],"summary":"Get Agent Bulk Action Events (getAgentBulkActionEvents)","description":"Returns a page of agent application events produced by the given bulk action, optionally filtered by action type and status. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentBulkActionEvents","parameters":[{"name":"bulkActionId","in":"path","description":"Bulk Action Id","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive 'substring' filter based on the event fields","required":false,"schema":{"type":"string"}},{"name":"actionType","in":"query","description":"A string value representing the action type to filter by, e.g. 'UPDATE'","required":false,"schema":{"$ref":"#/components/schemas/AgentAppEventActionType"}},{"name":"processingStatus","in":"query","description":"A string value representing the event status to filter by, e.g. 'FINISHED'","required":false,"schema":{"$ref":"#/components/schemas/AgentProcessingStatus"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string"}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentAppEventInfo"}}}}}}},"/api/agent/bulk/{bulkActionId}/eventStats":{"get":{"tags":["agent-bulk-action-controller"],"summary":"Get Agent Bulk Action Event Stats (getAgentBulkActionEventStats)","description":"Returns the number of agent application events produced by the given bulk action per processing status, together with their total.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentBulkActionEventStats","parameters":[{"name":"bulkActionId","in":"path","description":"Bulk Action Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBulkActionEventStats"}}}}}}},"/api/agent/apps/{entityType}/{entityId}":{"get":{"tags":["agent-application-controller"],"summary":"Get Agent Application by Related Entity (getAgentApplicationByRelatedEntity)","description":"Returns the agent application linked to the specified entity. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentApplicationByRelatedEntity","parameters":[{"name":"entityType","in":"path","description":"Entity type","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"Entity id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/api/agent/app/{agentApplicationId}":{"get":{"tags":["agent-application-controller"],"summary":"Get Agent Application (getAgentApplicationById)","description":"Fetch the Agent Application object based on the provided Agent Application Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentApplicationById","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplicationInfo"}}}}}}},"/api/agent/app/{agentApplicationId}/units":{"get":{"tags":["agent-application-controller"],"summary":"Get Agent Application Units (getAgentAppUnits)","description":"Returns a page of units (containers, volumes, networks) for the specified agent application. Live per-unit data such as `image` and `state` lives in server-scope attributes on each unit and should be fetched separately via the standard telemetry/attributes API.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppUnits","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Case-insensitive substring match against the unit identifier","required":false,"schema":{"type":"string"}},{"name":"type","in":"query","description":"Optional unit type filter (CONTAINER, VOLUME, NETWORK)","required":false,"schema":{"$ref":"#/components/schemas/AgentAppUnitType"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","identifier","type"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentAppUnit"}}}}}}},"/api/agent/app/{agentApplicationId}/events":{"get":{"tags":["agent-application-controller"],"summary":"Get Agent Application Events (getAgentAppEvents)","description":"Returns a page of events for the specified agent application. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppEvents","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional case-insensitive substring matched against the event action type and processing status","required":false,"schema":{"type":"string"}},{"name":"actionType","in":"query","description":"Optional action type filter","required":false,"schema":{"$ref":"#/components/schemas/AgentAppEventActionType"}},{"name":"processingStatus","in":"query","description":"Optional processing status filter","required":false,"schema":{"$ref":"#/components/schemas/AgentProcessingStatus"}},{"name":"sortProperty","in":"query","description":"Property of entity to sort by","required":false,"schema":{"type":"string","enum":["createdTime","updatedTime"]}},{"name":"sortOrder","in":"query","description":"Sort order. ASC (ASCENDING) or DESC (DESCENDING)","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataAgentAppEvent"}}}}}}},"/api/agent/app/templates":{"get":{"tags":["agent-app-template-controller"],"summary":"Get all Agent App Templates (getAgentAppTemplates)","description":"Returns a list of all agent app templates available for the current tenant.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppTemplates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentAppTemplate"}}}}}}}},"/api/agent/app/templates/{appType}/{configType}":{"get":{"tags":["agent-app-template-controller"],"summary":"Get Agent App Templates by type (getAgentAppTemplatesByAppType)","description":"Returns a list of agent app templates filtered by application type and config type.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppTemplatesByAppType","parameters":[{"name":"appType","in":"path","description":"A string value representing the agent application type, e.g. 'EDGE', 'GATEWAY'","required":true,"schema":{"$ref":"#/components/schemas/AgentApplicationType"}},{"name":"configType","in":"path","description":"A string value representing the agent configuration type, e.g. 'DOCKER_COMPOSE'","required":true,"schema":{"$ref":"#/components/schemas/AgentAppConfigType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentAppTemplate"}}}}}}}},"/api/agent/app/template/{appType}/{configType}/version/{currentVersion}":{"get":{"tags":["agent-app-template-controller"],"summary":"Get Agent App Template by current version (getAgentAppTemplateByCurrentVersion)","description":"Fetch the Agent App Template object based on the provided app type, config type, and current version. Matches the version exactly, including a floating tag used as a version such as the gateway 'latest' tag.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppTemplateByCurrentVersion","parameters":[{"name":"appType","in":"path","description":"A string value representing the agent application type, e.g. 'EDGE', 'GATEWAY'","required":true,"schema":{"$ref":"#/components/schemas/AgentApplicationType"}},{"name":"configType","in":"path","description":"A string value representing the agent configuration type, e.g. 'DOCKER_COMPOSE'","required":true,"schema":{"$ref":"#/components/schemas/AgentAppConfigType"}},{"name":"currentVersion","in":"path","description":"A string value representing the current version of the template, e.g. '1.0.0'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppTemplate"}}}}}}},"/api/agent/app/template/{appType}/{configType}/latest":{"get":{"tags":["agent-app-template-controller"],"summary":"Get Agent App Template (getLatestAgentAppTemplateByType)","description":"Fetch the latest Agent App Template object for the given app type and config type.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getLatestAgentAppTemplateByAppTypeAndConfigType","parameters":[{"name":"appType","in":"path","description":"A string value representing the agent application type, e.g. 'EDGE', 'GATEWAY'","required":true,"schema":{"$ref":"#/components/schemas/AgentApplicationType"}},{"name":"configType","in":"path","description":"A string value representing the agent configuration type, e.g. 'DOCKER_COMPOSE'","required":true,"schema":{"$ref":"#/components/schemas/AgentAppConfigType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppTemplate"}}}}}}},"/api/agent/app/relatedEntityCandidates":{"get":{"tags":["agent-application-controller"],"summary":"Get Related Entity Candidates (getRelatedEntityCandidates)","description":"Returns a page of Edges or Gateway Devices (devices with 'gateway' set in additional info) that can be linked to an agent application. Entities already linked to another application are excluded unless passed as 'currentEntityId'. Results are sorted by name. You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See response schema for more details. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getRelatedEntityCandidates","parameters":[{"name":"entityType","in":"query","description":"Related entity type (EDGE or DEVICE)","required":true,"schema":{"type":"string","enum":["EDGE","DEVICE"]}},{"name":"pageSize","in":"query","description":"Maximum amount of entities in a one page","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"Sequence number of page starting from 0","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"textSearch","in":"query","description":"Optional String value representing entity name","required":false,"schema":{"type":"string"}},{"name":"currentEntityId","in":"query","description":"Optional id of the entity currently linked to the edited application; it is kept in the result even though it is managed","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageDataEntityInfo"}}}}}}},"/api/agent/app/profiles":{"get":{"tags":["agent-app-profile-controller"],"summary":"Get Agent Application Profiles By Ids (getAgentAppProfilesByIds)","description":"Requested agent application profiles must be owned by tenant which is performing the request. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).","operationId":"getAgentAppProfilesByIds","parameters":[{"name":"agentAppProfileIds","in":"query","description":"A list of agent application profile ids, separated by comma ','","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentAppProfile"}}}}}}}},"/api/agent/app/profiles/{appType}":{"get":{"tags":["agent-app-profile-controller"],"summary":"Get Agent Application Profiles by app type (getAgentAppProfilesByAppType)","description":"Returns a list of agent application profiles filtered by application type.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppProfilesByAppType","parameters":[{"name":"appType","in":"path","description":"Application type, e.g. 'EDGE', 'GATEWAY', 'GENERIC'","required":true,"schema":{"$ref":"#/components/schemas/AgentApplicationType"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentAppProfileInfo"}}}}}}}},"/api/agent/app/profile/{profileId}":{"get":{"tags":["agent-app-profile-controller"],"summary":"Get Agent Application Profile (getAgentAppProfileById)","description":"Fetch the Agent Application Profile by Id.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppProfileById","parameters":[{"name":"profileId","in":"path","description":"Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfile"}}}}}},"delete":{"tags":["agent-app-profile-controller"],"summary":"Delete Agent Application Profile (deleteAgentAppProfile)","description":"Deletes the agent application profile. Cannot delete if referenced by applications.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteAgentAppProfile","parameters":[{"name":"profileId","in":"path","description":"Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/agent/app/profile/info/{profileId}":{"get":{"tags":["agent-app-profile-controller"],"summary":"Get Agent Application Profile Info (getAgentAppProfileInfoById)","description":"Fetch the Agent Application Profile Info by Id. Readable by any tenant admin without AGENT_APP_PROFILE permission, so agent/application screens can resolve the linked profile. Returns the full profile, config and arguments included - an application profile carries deployment configuration rather than credentials, so it is not gated like other profiles.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppProfileInfoById","parameters":[{"name":"profileId","in":"path","description":"Profile Id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppProfileInfo"}}}}}}},"/api/agent/app/managedRelatedEntities/{entityType}":{"get":{"tags":["agent-application-controller"],"summary":"Get Managed Related Entity Ids (getManagedRelatedEntityIds)","description":"Returns the ids of entities of the given type that are already linked to an agent application.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getManagedRelatedEntityIds","parameters":[{"name":"entityType","in":"path","description":"Related entity type (EDGE or DEVICE)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]}}}}}}}},"/api/agent/app/event/{agentAppEventId}":{"get":{"tags":["agent-application-controller"],"summary":"Get Agent Application Event (getAgentAppEventById)","description":"Fetches a single agent application event by id. Works for orphan events whose application has been deleted (application_id is nullable).\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"getAgentAppEventById","parameters":[{"name":"agentAppEventId","in":"path","description":"A string value representing the agent app event id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAppEvent"}}}}}}},"/api/admin/updates":{"get":{"tags":["admin-controller"],"summary":"Check for new Platform Releases (checkUpdates)","description":"Check notifications about new platform releases. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"checkUpdates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMessage"}}}}}}},"/api/admin/systemInfo":{"get":{"tags":["admin-controller"],"summary":"Get system info (getSystemInfo)","description":"Get main information about system. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getSystemInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemInfo"}}}}}}},"/api/admin/settings/{key}":{"get":{"tags":["admin-controller"],"summary":"Get the Administration Settings object using key (getAdminSettings)","description":"Get the Administration Settings object using specified string key. Referencing non-existing key will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.\n\nSecurity check is performed to verify that the user has 'READ' permission for the 'ADMIN_SETTINGS' (for 'SYS_ADMIN' authority) or 'WHITE_LABELING' (for 'TENANT_ADMIN' authority) resource.","operationId":"getAdminSettings","parameters":[{"name":"key","in":"path","description":"A string value of the key (e.g. 'general' or 'mail').","required":true,"schema":{"type":"string"}},{"name":"systemByDefault","in":"query","description":"Deprecated, not used.","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettings"}}}}}}},"/api/admin/repositorySettings/info":{"get":{"tags":["admin-controller"],"operationId":"getRepositorySettingsInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepositorySettingsInfo"}}}}}}},"/api/admin/repositorySettings/exists":{"get":{"tags":["admin-controller"],"summary":"Check repository settings exists (repositorySettingsExists)","description":"Check whether the repository settings exists. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"repositorySettingsExists","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/admin/mail/oauth2/loginProcessingUrl":{"get":{"tags":["admin-controller"],"summary":"Get OAuth2 log in processing URL (getMailProcessingUrl)","description":"Returns the URL enclosed in double quotes. After successful authentication with OAuth2 provider and user consent for requested scope, it makes a redirect to this path so that the platform can do further log in processing and generating access tokens. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getMailProcessingUrl","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/admin/mail/oauth2/code":{"get":{"tags":["admin-controller"],"operationId":"handleMailOAuth2Callback","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/admin/mail/oauth2/authorize":{"get":{"tags":["admin-controller"],"summary":"Redirect user to mail provider login page. ","description":"After user logged in and provided accessprovider sends authorization code to specified redirect uri.)","operationId":"getMailOAuth2AuthorizationUrl","responses":{"200":{"description":"OK","content":{"application/text":{"schema":{"type":"string"}}}}}}},"/api/admin/licenseUsageInfo":{"get":{"tags":["admin-controller"],"summary":"Get license usage info (getLicenseUsageInfo)","description":"Get license usage info. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getLicenseUsageInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseUsageInfo"}}}}}}},"/api/admin/featuresInfo":{"get":{"tags":["admin-controller"],"summary":"Get features info (getFeaturesInfo)","description":"Get information about enabled/disabled features. \n\nAvailable for users with 'SYS_ADMIN' authority.","operationId":"getFeaturesInfo","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeaturesInfo"}}}}}}},"/api/admin/autoCommitSettings/exists":{"get":{"tags":["admin-controller"],"summary":"Check auto commit settings exists (autoCommitSettingsExists)","description":"Check whether the auto commit settings exists. \n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"autoCommitSettingsExists","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/api/2fa/providers":{"get":{"tags":["two-factor-auth-config-controller"],"summary":"Get available 2FA providers (getAvailableTwoFaProviderTypes)","description":"Get the list of provider types available for user to use (the ones configured by tenant or sysadmin).\nExample of response:\n```\n[\n  \"TOTP\",\n  \"EMAIL\",\n  \"SMS\"\n]\n```\n\nAvailable for any authorized user. ","operationId":"getAvailableTwoFaProviderTypes","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TwoFaProviderType"}}}}}}}},"/api/2fa/account/settings":{"get":{"tags":["two-factor-auth-config-controller"],"summary":"Get account 2FA settings (getAccountTwoFaSettings)","description":"Get user's account 2FA configuration. Configuration contains configs for different 2FA providers.\n\nExample:\n```\n{\n  \"configs\": {\n    \"EMAIL\": {\n      \"providerType\": \"EMAIL\",\n      \"useByDefault\": true,\n      \"email\": \"tenant@thingsboard.org\"\n    },\n    \"TOTP\": {\n      \"providerType\": \"TOTP\",\n      \"useByDefault\": false,\n      \"authUrl\": \"otpauth://totp/TB%202FA:tenant@thingsboard.org?issuer=TB+2FA&secret=P6Z2TLYTASOGP6LCJZAD24ETT5DACNNX\"\n    },\n    \"SMS\": {\n      \"providerType\": \"SMS\",\n      \"useByDefault\": false,\n      \"phoneNumber\": \"+380501253652\"\n    }\n  }\n}\n```\n\nAvailable for any authorized user. ","operationId":"getAccountTwoFaSettings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountTwoFaSettings"}}}}}}},"/.well-known/assetlinks.json":{"get":{"tags":["qr-code-settings-controller"],"summary":"Get associated android applications (getAssetLinks)","operationId":"getAssetLinks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/.well-known/apple-app-site-association":{"get":{"tags":["qr-code-settings-controller"],"summary":"Get associated ios applications (getAppleAppSiteAssociation)","operationId":"getAppleAppSiteAssociation","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/user/settings/{type}/{paths}":{"delete":{"tags":["user-controller"],"summary":"Delete user settings by type (deleteUserSettingsByType)","description":"Delete user settings by specifying list of json element xpaths. \n Example: to delete B and C element in { \"A\": {\"B\": 5}, \"C\": 15} send A.B,C in jsonPaths request parameter","operationId":"deleteUserSettingsByType","parameters":[{"name":"paths","in":"path","description":"paths","required":true,"schema":{"type":"string"}},{"name":"type","in":"path","description":"Settings type, case insensitive, one of: \"general\", \"quick_links\", \"doc_links\" or \"dashboards\".","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/user/settings/{paths}":{"delete":{"tags":["user-controller"],"summary":"Delete user settings (deleteGeneralUserSettings)","description":"Delete user settings by specifying list of json element xpaths. \n Example: to delete B and C element in { \"A\": {\"B\": 5}, \"C\": 15} send A.B,C in jsonPaths request parameter","operationId":"deleteGeneralUserSettings","parameters":[{"name":"paths","in":"path","description":"paths","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/translation/custom/{localeCode}/{keyPath}":{"delete":{"tags":["custom-translation-controller"],"summary":"Delete specified key of Custom Translation (deleteCustomTranslationKey) ","description":"The API call is designed to delete specified key of the custom translation and return as a result parent translation.(e.g. if tenant translation for key is 'value1' and customer translation is 'value2' then by deletinf key onn customer level you will get 'value1' in response) \n\nSecurity check is performed to verify that the user has 'WRITE' permission for the white labeling resource.","operationId":"deleteCustomTranslationKey","parameters":[{"name":"localeCode","in":"path","description":"Locale code (e.g. 'en_US').","required":true,"schema":{"type":"string"}},{"name":"keyPath","in":"path","description":"A string value representing key of the custom translation (e.g. 'notification.active').","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/secret/{id}":{"delete":{"tags":["secret-controller"],"summary":"Delete secret by ID (deleteSecret)","description":"Deletes the secret. Referencing non-existing Secret Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"deleteSecret","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TbSecretDeleteResult"}}}}}}},"/api/plugins/telemetry/{entityType}/{entityId}/timeseries/delete":{"delete":{"tags":["telemetry-controller"],"summary":"Delete entity time series data (deleteEntityTimeseries)","description":"Delete time series for selected entity based on entity id, entity type and keys. Use 'deleteAllDataForKeys' to delete all time series data. Use 'startTs' and 'endTs' to specify time-range instead.  Use 'deleteLatest' to delete latest value (stored in separate table for performance) if the value's timestamp matches the time-range.  Use 'rewriteLatestIfDeleted' to rewrite latest value (stored in separate table for performance) if the value's timestamp matches the time-range and 'deleteLatest' param is true. The replacement value will be fetched from the 'time series' table, and its timestamp will be the most recent one before the defined time-range. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteEntityTimeseries","parameters":[{"name":"entityType","in":"path","description":"A string value representing the entity type. For example, 'DEVICE'","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","description":"A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"keys","in":"query","description":"A string value representing the comma-separated list of telemetry keys. If keys are not selected, the result will return all latest time series. For example, 'temperature,humidity'. If telemetry keys contain comma, duplicate 'key' parameter for each key, for example '?key=my,key&key=my,second,key","required":false,"schema":{"type":"string"}},{"name":"deleteAllDataForKeys","in":"query","description":"A boolean value to specify if should be deleted all data for selected keys or only data that are in the selected time range.","required":false,"schema":{"type":"boolean","default":false}},{"name":"startTs","in":"query","description":"A long value representing the start timestamp of removal time range in milliseconds.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"endTs","in":"query","description":"A long value representing the end timestamp of removal time range in milliseconds.","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"deleteLatest","in":"query","description":"If the parameter is set to true, the latest telemetry can be removed, otherwise, in case that parameter is set to false the latest value will not removed.","required":false,"schema":{"type":"boolean","default":true}},{"name":"rewriteLatestIfDeleted","in":"query","description":"If the parameter is set to true, the latest telemetry will be rewritten in case that current latest value was removed, otherwise, in case that parameter is set to false the new latest value will not set.","required":false,"schema":{"type":"boolean","default":false}},{"name":"key","in":"query","description":"Repeatable key query parameter (alternative to comma-separated 'keys')","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Time series for the selected keys in the request was removed. Platform creates an audit log event about entity time series removal with action type 'TIMESERIES_DELETED'.","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Platform returns a bad request in case if keys list is empty or start and end timestamp values is empty when deleteAllDataForKeys is set to false.","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"User is not authorized to delete entity time series for selected entity. Most likely, User belongs to different Customer or Tenant.","content":{"application/json":{"schema":{"type":"string"}}}},"500":{"description":"The exception was thrown during processing the request. Platform creates an audit log event about entity time series removal with action type 'TIMESERIES_DELETED' that includes an error stacktrace.","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/api/oauth2/config/template/{clientRegistrationTemplateId}":{"delete":{"tags":["o-auth-2-config-template-controller"],"summary":"Delete OAuth2 client registration template by id (deleteClientRegistrationTemplate)\n\nAvailable for users with 'SYS_ADMIN' authority.","description":"Client registration template is OAuth2 provider configuration template with default settings for registering new OAuth2 clients","operationId":"deleteClientRegistrationTemplate","parameters":[{"name":"clientRegistrationTemplateId","in":"path","description":"String representation of client registration template id to delete","required":true,"schema":{"type":"string"},"example":"139b1f81-2f5d-11ec-9dbe-9b627e1a88f4"}],"responses":{"200":{"description":"OK"}}}},"/api/notification/{id}":{"delete":{"tags":["notification-controller"],"summary":"Delete notification (deleteNotification)","description":"Deletes notification by its id.\n\nAvailable for any authorized user. ","operationId":"deleteNotification","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/mobile/bundle/{id}":{"delete":{"tags":["mobile-app-bundle-controller"],"summary":"Delete Mobile App Bundle by ID (deleteMobileAppBundle)","description":"Deletes Mobile App Bundle by ID. Referencing non-existing mobile app bundle Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' authority.","operationId":"deleteMobileAppBundle","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/domain/{id}":{"delete":{"tags":["domain-controller"],"summary":"Delete Domain by ID (deleteDomain)","description":"Deletes Domain by ID. Referencing non-existing domain Id will cause an error.\n\nAvailable for users with 'SYS_ADMIN' or 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteDomain","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/deviceGroupOtaPackage/{id}":{"delete":{"tags":["device-group-ota-package-controller"],"operationId":"deleteDeviceGroupOtaPackage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/customMenu/{customMenuId}":{"delete":{"tags":["custom-menu-controller"],"summary":"Delete custom menu (deleteCustomMenu)","description":"Deletes the custom menu based on the provided Custom Menu Id. Referencing non-existing custom menu Id will cause an error. If the custom menu is assigned to the list of users or customers bad request is returned.To delete a custom menu that has assignee list set 'force' request param to true ","operationId":"deleteCustomMenu","parameters":[{"name":"customMenuId","in":"path","description":"A string value representing the custom menu id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"force","in":"query","description":"Force set to true will unassign menu before deletion","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomMenuDeleteResult"}}}}}}},"/api/blobEntity/{blobEntityId}":{"delete":{"tags":["blob-entity-controller"],"summary":"Delete Blob Entity (deleteBlobEntity)","description":"Delete Blob entity based on the provided Blob entity Id. Referencing non-existing Blob entity Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.\n\n Security check is performed to verify that the user has 'DELETE' permission for the entity (entities).","operationId":"deleteBlobEntity","parameters":[{"name":"blobEntityId","in":"path","description":"A string value representing the blob entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/apiKey/{id}":{"delete":{"tags":["api-key-controller"],"summary":"Delete API key by ID (deleteApiKey)","description":"Deletes the API key. Referencing non-existing ApiKey Id will cause an error.\n\nAvailable for any authorized user. ","operationId":"deleteApiKey","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/alarm/{alarmId}/comment/{commentId}":{"delete":{"tags":["alarm-comment-controller"],"summary":"Delete Alarm comment (deleteAlarmComment)","description":"Deletes the Alarm comment. Referencing non-existing Alarm comment Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"deleteAlarmComment","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}},{"name":"commentId","in":"path","description":"A string value representing the alarm comment id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}}}},"/api/alarm/{alarmId}/assign":{"delete":{"tags":["alarm-controller"],"summary":"Unassign Alarm (unassignAlarm)","description":"Unassign the Alarm. Once unassigned, the 'assign_ts' field will be set to current timestamp and special rule chain event 'ALARM_UNASSIGNED' will be generated. Referencing non-existing Alarm Id will cause an error.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.","operationId":"unassignAlarm","parameters":[{"name":"alarmId","in":"path","description":"A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlarmInfo"}}}}}}},"/api/ai/solution/{solutionId}/{step}/clear":{"delete":{"tags":["ai-solution-controller"],"operationId":"clearStep","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"step","in":"path","required":true,"schema":{"$ref":"#/components/schemas/SolutionStep"}}],"responses":{"200":{"description":"OK"}}}},"/api/ai/solution/{solutionId}/uninstall":{"delete":{"tags":["ai-solution-controller"],"operationId":"uninstallSolution","parameters":[{"name":"solutionId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"X-Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonNode"}}}}}}},"/api/agent/app/{agentApplicationId}/relatedEntity":{"delete":{"tags":["agent-application-controller"],"summary":"Unassign Related Entity from Agent Application (unassignRelatedEntityFromAgentApp)","description":"Removes the link between an agent application and its related Edge or Gateway Device.\n\nAvailable for users with 'TENANT_ADMIN' authority.","operationId":"unassignRelatedEntityFromAgentApp","parameters":[{"name":"agentApplicationId","in":"path","description":"A string value representing the agent application id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentApplication"}}}}}}},"/error":{"get":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"put":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError_2","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError_3","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"options":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError_6","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"head":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError_5","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"patch":{"tags":["thingsboard-error-response-handler"],"operationId":"handleError_4","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/apiTrendz/publicApi/**":{"get":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"put":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_2","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"post":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_1","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"delete":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_3","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"options":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_6","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"head":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_5","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"patch":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_4","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}}},"/trendz/**":{"get":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_7","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"put":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_9","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"post":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_8","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"delete":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_10","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"options":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_13","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"head":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_12","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"patch":{"tags":["trendz-proxy-controller"],"summary":"Forward Unauthorized Requests to Trendz","description":"Forwards unauthorized requests (/apiTrendz/publicApi/**, /trendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleUnauthorizedTrendzRequests_11","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}}},"/apiTrendz/**":{"get":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"put":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests_2","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"post":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests_1","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"delete":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests_3","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"options":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests_6","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"head":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests_5","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}},"patch":{"tags":["trendz-proxy-controller"],"summary":"Forward Authorized Requests to Trendz","description":"Forwards authorized requests (/apiTrendz/**) to Trendz using the Trendz internal URL. Can only be used if Trendz is already synchronized and integration is enabled. \n\nAvailable for any authorized user. ","operationId":"handleAuthorizedTrendzRequests_4","requestBody":{"content":{"application/json":{"schema":{"type":"string","format":"byte"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string","format":"byte"}}}}}}}},"components":{"schemas":{"LoginRequest":{"type":"object","properties":{"username":{"type":"string","description":"User email","example":"tenant@thingsboard.org"},"password":{"type":"string","description":"User password","example":"tenant"}},"required":["password","username"]},"LoginResponse":{"type":"object","properties":{"token":{"type":"string","description":"JWT token","example":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZW5hbnRAdGhpbmdzYm9hcmQub3JnIi..."},"refreshToken":{"type":"string","description":"Refresh token. Absent when the token is a two-factor authentication token (see scope)","example":"eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZW5hbnRAdGhpbmdzYm9hcmQub3JnIi..."},"scope":{"$ref":"#/components/schemas/Authority","description":"Set only when two-factor authentication is required: PRE_VERIFICATION_TOKEN when the user must verify a code, MFA_CONFIGURATION_TOKEN when the user must configure two-factor authentication first. The token then grants access only to the two-factor authentication API"}},"required":["token"]},"Authority":{"type":"string","enum":["SYS_ADMIN","TENANT_ADMIN","CUSTOMER_USER","BILLING_ADMIN","BILLING_SERVICE","REFRESH_TOKEN","PRE_VERIFICATION_TOKEN","MFA_CONFIGURATION_TOKEN"]},"ThingsboardErrorResponse":{"type":"object","properties":{"message":{"type":"string","description":"Error message","example":"Authentication failed","readOnly":true},"errorCode":{"$ref":"#/components/schemas/ThingsboardErrorCode","description":"Platform error code:\n* `2` - General error (HTTP: 500 - Internal Server Error)\n\n* `10` - Authentication failed (HTTP: 401 - Unauthorized)\n\n* `11` - JWT token expired (HTTP: 401 - Unauthorized)\n\n* `15` - Credentials expired (HTTP: 401 - Unauthorized)\n\n* `20` - Permission denied (HTTP: 403 - Forbidden)\n\n* `30` - Invalid arguments (HTTP: 400 - Bad Request)\n\n* `31` - Bad request params (HTTP: 400 - Bad Request)\n\n* `32` - Item not found (HTTP: 404 - Not Found)\n\n* `33` - Too many requests (HTTP: 429 - Too Many Requests)\n\n* `34` - Too many updates (Too many updates over Websocket session)\n\n* `35` - Version conflict (HTTP: 409 - Conflict)\n\n* `40` - Subscription violation (HTTP: 403 - Forbidden)\n\n* `41` - Entities limit exceeded (HTTP: 403 - Forbidden)","example":10,"readOnly":true},"status":{"type":"integer","format":"int32","description":"HTTP Response Status Code","example":401,"readOnly":true},"subscriptionErrorCode":{"$ref":"#/components/schemas/SubscriptionExceptionErrorCode","description":"Subscription error code:\n* `1` - Entities limit reached (HTTP: 403 - Forbidden)\n\n* `2` - Feature disabled (HTTP: 403 - Forbidden)\n\n* `3` - Subscription is not active (HTTP: 403 - Forbidden)\n\n* `4` - Billing error (HTTP: 400 - Bad Request)\n\n* `5` - Permission denied (HTTP: 403 - Forbidden)\n\n* `6` - Unable to change plan due to entities limits overflow (HTTP: 403 - Forbidden)\n\n* `7` - Solution template level doesn't meet subscription plan (HTTP: 403 - Forbidden)","example":1,"readOnly":true},"subscriptionEntry":{"$ref":"#/components/schemas/SubscriptionEntry","description":"Subscription entry:\n* `1` - Devices count\n\n* `2` - Assets count\n\n* `3` - Customers count\n\n* `4` - Users count\n\n* `5` - Dashboards count\n\n* `6` - Rule chains count\n\n* `7` - Integrations count\n\n* `8` - Converters count\n\n* `9` - Scheduler events count\n\n* `30` - White-labeling","example":1,"readOnly":true},"subscriptionValue":{"$ref":"#/components/schemas/JsonNode","description":"Subscription value","readOnly":true},"timestamp":{"type":"integer","format":"int64","description":"Timestamp","readOnly":true}}},"JsonNode":{},"SubscriptionEntry":{"description":"Subscription entry","enum":[1,2,3,4,5,6,7,8,9,10,11,12,13,30,31]},"SubscriptionExceptionErrorCode":{"description":"Subscription error code","enum":[1,2,3,4,5,6]},"ThingsboardErrorCode":{"type":"integer","description":"Platform error code","enum":[2,10,11,15,20,30,31,32,33,34,35,40,41,45,46,50]},"ThingsboardCredentialsExpiredResponse":{"type":"object","properties":{"status":{"type":"integer","format":"int32","description":"HTTP Response Status Code","example":401,"readOnly":true},"message":{"type":"string","description":"Error message","example":"Authentication failed","readOnly":true},"errorCode":{"$ref":"#/components/schemas/ThingsboardErrorCode","description":"Platform error code:\n* `2` - General error (HTTP: 500 - Internal Server Error)\n\n* `10` - Authentication failed (HTTP: 401 - Unauthorized)\n\n* `11` - JWT token expired (HTTP: 401 - Unauthorized)\n\n* `15` - Credentials expired (HTTP: 401 - Unauthorized)\n\n* `20` - Permission denied (HTTP: 403 - Forbidden)\n\n* `30` - Invalid arguments (HTTP: 400 - Bad Request)\n\n* `31` - Bad request params (HTTP: 400 - Bad Request)\n\n* `32` - Item not found (HTTP: 404 - Not Found)\n\n* `33` - Too many requests (HTTP: 429 - Too Many Requests)\n\n* `34` - Too many updates (Too many updates over Websocket session)\n\n* `35` - Version conflict (HTTP: 409 - Conflict)\n\n* `40` - Subscription violation (HTTP: 403 - Forbidden)\n\n* `41` - Entities limit exceeded (HTTP: 403 - Forbidden)","example":10,"readOnly":true},"timestamp":{"type":"integer","format":"int64","description":"Timestamp","readOnly":true},"subscriptionErrorCode":{"$ref":"#/components/schemas/SubscriptionExceptionErrorCode","description":"Subscription error code:\n* `1` - Entities limit reached (HTTP: 403 - Forbidden)\n\n* `2` - Feature disabled (HTTP: 403 - Forbidden)\n\n* `3` - Subscription is not active (HTTP: 403 - Forbidden)\n\n* `4` - Billing error (HTTP: 400 - Bad Request)\n\n* `5` - Permission denied (HTTP: 403 - Forbidden)\n\n* `6` - Unable to change plan due to entities limits overflow (HTTP: 403 - Forbidden)\n\n* `7` - Solution template level doesn't meet subscription plan (HTTP: 403 - Forbidden)","example":1,"readOnly":true},"subscriptionEntry":{"$ref":"#/components/schemas/SubscriptionEntry","description":"Subscription entry:\n* `1` - Devices count\n\n* `2` - Assets count\n\n* `3` - Customers count\n\n* `4` - Users count\n\n* `5` - Dashboards count\n\n* `6` - Rule chains count\n\n* `7` - Integrations count\n\n* `8` - Converters count\n\n* `9` - Scheduler events count\n\n* `30` - White-labeling","example":1,"readOnly":true},"subscriptionValue":{"$ref":"#/components/schemas/JsonNode","description":"Subscription value","readOnly":true},"resetToken":{"type":"string","description":"Password reset token","readOnly":true}}},"AliasEntityType":{"type":"string","description":"Alias for an entity of the current user, used as AliasEntityId.entityType","enum":["CURRENT_CUSTOMER","CURRENT_TENANT","CURRENT_USER","CURRENT_USER_OWNER"]},"AiChatModelConfig":{"type":"object","properties":{"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true},"provider":{"$ref":"#/components/schemas/AiProvider","description":"AI Provider"}},"required":["provider"]},"AiModelType":{"type":"string","enum":["CHAT"]},"AiProvider":{"type":"string","enum":["OPENAI","AZURE_OPENAI","GOOGLE_AI_GEMINI","GOOGLE_VERTEX_AI_GEMINI","MISTRAL_AI","ANTHROPIC","AMAZON_BEDROCK","GITHUB_MODELS","OLLAMA"]},"AmazonBedrockChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/AmazonBedrockProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/AmazonBedrockProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"AmazonBedrockProviderConfig":{"type":"object","properties":{"region":{"type":"string"},"accessKeyId":{"type":"string"},"secretAccessKey":{"type":"string"}},"required":["accessKeyId","region","secretAccessKey"]},"AnthropicChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/AnthropicProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/AnthropicProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"AnthropicProviderConfig":{"type":"object","properties":{"apiKey":{"type":"string"}},"required":["apiKey"]},"AzureOpenAiChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/AzureOpenAiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/AzureOpenAiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"AzureOpenAiProviderConfig":{"type":"object","properties":{"endpoint":{"type":"string"},"serviceVersion":{"type":"string"},"apiKey":{"type":"string"}},"required":["apiKey","endpoint"]},"Basic":{"allOf":[{"$ref":"#/components/schemas/OllamaAuth"},{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"}}}],"required":["password","username"]},"GitHubModelsChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/GitHubModelsProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/GitHubModelsProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"GitHubModelsProviderConfig":{"type":"object","properties":{"personalAccessToken":{"type":"string"}},"required":["personalAccessToken"]},"GoogleAiGeminiChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/GoogleAiGeminiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/GoogleAiGeminiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"GoogleAiGeminiProviderConfig":{"type":"object","properties":{"apiKey":{"type":"string"}},"required":["apiKey"]},"GoogleVertexAiGeminiChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/GoogleVertexAiGeminiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/GoogleVertexAiGeminiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"GoogleVertexAiGeminiProviderConfig":{"type":"object","properties":{"fileName":{"type":"string"},"projectId":{"type":"string"},"location":{"type":"string"},"serviceAccountKey":{"type":"string"}},"required":["location","projectId","serviceAccountKey"]},"MistralAiChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/MistralAiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/MistralAiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"MistralAiProviderConfig":{"type":"object","properties":{"apiKey":{"type":"string"}},"required":["apiKey"]},"None":{"allOf":[{"$ref":"#/components/schemas/OllamaAuth"}]},"OllamaAuth":{"description":"Ollama authentication schemes","discriminator":{"propertyName":"type","mapping":{"NONE":"#/components/schemas/None","BASIC":"#/components/schemas/Basic","TOKEN":"#/components/schemas/Token"}},"properties":{"type":{"type":"string"}},"required":["type"]},"OllamaChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/OllamaProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"contextLength":{"type":"integer","format":"int32"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/OllamaProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"topK":{"type":"integer","format":"int32"},"contextLength":{"type":"integer","format":"int32"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"OllamaProviderConfig":{"type":"object","properties":{"baseUrl":{"type":"string"},"auth":{"oneOf":[{"$ref":"#/components/schemas/Basic"},{"$ref":"#/components/schemas/None"},{"$ref":"#/components/schemas/Token"}]}},"required":["auth","baseUrl"]},"OpenAiChatModelConfig":{"allOf":[{"$ref":"#/components/schemas/AiModelConfig"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/OpenAiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"},"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true}}},{"$ref":"#/components/schemas/AiChatModelConfigObject"},{"type":"object","properties":{"providerConfig":{"$ref":"#/components/schemas/OpenAiProviderConfig"},"modelId":{"type":"string","minLength":1},"temperature":{"type":"number","format":"double"},"topP":{"type":"number","format":"double","maximum":1},"frequencyPenalty":{"type":"number","format":"double"},"presencePenalty":{"type":"number","format":"double"},"maxOutputTokens":{"type":"integer","format":"int32"},"timeoutSeconds":{"type":"integer","format":"int32"},"maxRetries":{"type":"integer","format":"int32"}}}],"required":["modelId","provider","providerConfig"]},"OpenAiProviderConfig":{"type":"object","properties":{"baseUrl":{"type":"string"},"apiKey":{"type":"string"}}},"Token":{"allOf":[{"$ref":"#/components/schemas/OllamaAuth"},{"type":"object","properties":{"token":{"type":"string"}}}],"required":["token"]},"AdminSettingsId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ADMIN_SETTINGS"],"example":"ADMIN_SETTINGS","readOnly":true}}}],"required":["entityType","id"]},"AgentAppEventId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT_APP_EVENT"],"example":"AGENT_APP_EVENT","readOnly":true}}}],"required":["entityType","id"]},"AgentAppProfileId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT_APP_PROFILE"],"example":"AGENT_APP_PROFILE","readOnly":true}}}],"required":["entityType","id"]},"AgentAppUnitId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT_APP_UNIT"],"example":"AGENT_APP_UNIT","readOnly":true}}}],"required":["entityType","id"]},"AgentApplicationId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT_APPLICATION"],"example":"AGENT_APPLICATION","readOnly":true}}}],"required":["entityType","id"]},"AgentBulkActionId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT_BULK_ACTION"],"example":"AGENT_BULK_ACTION","readOnly":true}}}],"required":["entityType","id"]},"AgentId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT"],"example":"AGENT","readOnly":true}}}],"required":["entityType","id"]},"AgentProfileId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["AGENT_PROFILE"],"example":"AGENT_PROFILE","readOnly":true}}}],"required":["entityType","id"]},"AiModelId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"Entity type of the AI model","enum":["AI_MODEL"],"example":"AI_MODEL","readOnly":true}}}],"required":["entityType","id"]},"AlarmId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ALARM"],"example":"ALARM","readOnly":true}}}],"required":["entityType","id"]},"ApiKeyId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["API_KEY"],"example":"API_KEY","readOnly":true}}}],"required":["entityType","id"]},"ApiUsageStateId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["API_USAGE_STATE"],"example":"API_USAGE_STATE","readOnly":true}}}],"required":["entityType","id"]},"AssetId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ASSET"],"example":"ASSET","readOnly":true}}}],"required":["entityType","id"]},"AssetProfileId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ASSET_PROFILE"],"example":"ASSET_PROFILE","readOnly":true}}}],"required":["entityType","id"]},"BillingCustomerId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"}}}],"required":["id"]},"BlobEntityId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["BLOB_ENTITY"],"example":"BLOB_ENTITY","readOnly":true}}}],"required":["entityType","id"]},"CalculatedFieldId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["CALCULATED_FIELD"],"example":"CALCULATED_FIELD","readOnly":true}}}],"required":["entityType","id"]},"ConverterId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["CONVERTER"],"example":"CONVERTER","readOnly":true}}}],"required":["entityType","id"]},"CouponId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"}}}],"required":["id"]},"CustomerId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["CUSTOMER"],"example":"CUSTOMER","readOnly":true}}}],"required":["entityType","id"]},"DashboardId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["DASHBOARD"],"example":"DASHBOARD","readOnly":true}}}],"required":["entityType","id"]},"DeviceId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["DEVICE"],"example":"DEVICE","readOnly":true}}}],"required":["entityType","id"]},"DeviceProfileId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["DEVICE_PROFILE"],"example":"DEVICE_PROFILE","readOnly":true}}}],"required":["entityType","id"]},"DomainId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["DOMAIN"],"example":"DOMAIN","readOnly":true}}}],"required":["entityType","id"]},"EdgeId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["EDGE"],"example":"EDGE","readOnly":true}}}],"required":["entityType","id"]},"EntityGroupId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ENTITY_GROUP"],"example":"ENTITY_GROUP","readOnly":true}}}],"required":["entityType","id"]},"EntityId":{"type":"object","discriminator":{"propertyName":"entityType","mapping":{"ADMIN_SETTINGS":"#/components/schemas/AdminSettingsId","AGENT":"#/components/schemas/AgentId","AGENT_APPLICATION":"#/components/schemas/AgentApplicationId","AGENT_APP_EVENT":"#/components/schemas/AgentAppEventId","AGENT_APP_PROFILE":"#/components/schemas/AgentAppProfileId","AGENT_APP_UNIT":"#/components/schemas/AgentAppUnitId","AGENT_BULK_ACTION":"#/components/schemas/AgentBulkActionId","AGENT_PROFILE":"#/components/schemas/AgentProfileId","AI_MODEL":"#/components/schemas/AiModelId","ALARM":"#/components/schemas/AlarmId","API_KEY":"#/components/schemas/ApiKeyId","API_USAGE_STATE":"#/components/schemas/ApiUsageStateId","ASSET":"#/components/schemas/AssetId","ASSET_PROFILE":"#/components/schemas/AssetProfileId","BLOB_ENTITY":"#/components/schemas/BlobEntityId","CALCULATED_FIELD":"#/components/schemas/CalculatedFieldId","CONVERTER":"#/components/schemas/ConverterId","CUSTOMER":"#/components/schemas/CustomerId","DASHBOARD":"#/components/schemas/DashboardId","DEVICE":"#/components/schemas/DeviceId","DEVICE_PROFILE":"#/components/schemas/DeviceProfileId","DOMAIN":"#/components/schemas/DomainId","EDGE":"#/components/schemas/EdgeId","ENTITY_GROUP":"#/components/schemas/EntityGroupId","ENTITY_VIEW":"#/components/schemas/EntityViewId","GROUP_PERMISSION":"#/components/schemas/GroupPermissionId","INTEGRATION":"#/components/schemas/IntegrationId","JOB":"#/components/schemas/JobId","MOBILE_APP":"#/components/schemas/MobileAppId","MOBILE_APP_BUNDLE":"#/components/schemas/MobileAppBundleId","NOTIFICATION":"#/components/schemas/NotificationId","NOTIFICATION_REQUEST":"#/components/schemas/NotificationRequestId","NOTIFICATION_RULE":"#/components/schemas/NotificationRuleId","NOTIFICATION_TARGET":"#/components/schemas/NotificationTargetId","NOTIFICATION_TEMPLATE":"#/components/schemas/NotificationTemplateId","OAUTH2_CLIENT":"#/components/schemas/OAuth2ClientId","OTA_PACKAGE":"#/components/schemas/OtaPackageId","QUEUE":"#/components/schemas/QueueId","QUEUE_STATS":"#/components/schemas/QueueStatsId","REPORT":"#/components/schemas/ReportId","REPORT_TEMPLATE":"#/components/schemas/ReportTemplateId","ROLE":"#/components/schemas/RoleId","RPC":"#/components/schemas/RpcId","RULE_CHAIN":"#/components/schemas/RuleChainId","RULE_NODE":"#/components/schemas/RuleNodeId","SCHEDULER_EVENT":"#/components/schemas/SchedulerEventId","SECRET":"#/components/schemas/SecretId","TB_RESOURCE":"#/components/schemas/TbResourceId","TENANT":"#/components/schemas/TenantId","TENANT_PROFILE":"#/components/schemas/TenantProfileId","USER":"#/components/schemas/UserId","WIDGETS_BUNDLE":"#/components/schemas/WidgetsBundleId","WIDGET_TYPE":"#/components/schemas/WidgetTypeId","BILLING_CUSTOMER":"#/components/schemas/BillingCustomerId","SUBSCRIPTION_PLAN":"#/components/schemas/SubscriptionPlanId","SUBSCRIPTION":"#/components/schemas/SubscriptionId","COUPON":"#/components/schemas/CouponId","PRODUCT":"#/components/schemas/ProductId","SUBSCRIPTION_ADDON":"#/components/schemas/SubscriptionAddonId"}},"properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","example":"DEVICE"}},"required":["entityType","id"]},"EntityType":{"type":"string","enum":["TENANT","CUSTOMER","USER","DASHBOARD","ASSET","DEVICE","ALARM","ENTITY_GROUP","CONVERTER","INTEGRATION","RULE_CHAIN","RULE_NODE","SCHEDULER_EVENT","BLOB_ENTITY","REPORT_TEMPLATE","REPORT","ENTITY_VIEW","WIDGETS_BUNDLE","WIDGET_TYPE","ROLE","GROUP_PERMISSION","TENANT_PROFILE","DEVICE_PROFILE","ASSET_PROFILE","API_USAGE_STATE","TB_RESOURCE","OTA_PACKAGE","EDGE","RPC","QUEUE","NOTIFICATION_TARGET","NOTIFICATION_TEMPLATE","NOTIFICATION_REQUEST","NOTIFICATION","NOTIFICATION_RULE","QUEUE_STATS","OAUTH2_CLIENT","DOMAIN","MOBILE_APP","MOBILE_APP_BUNDLE","CALCULATED_FIELD","JOB","SECRET","ADMIN_SETTINGS","AI_MODEL","API_KEY","AGENT","AGENT_APPLICATION","AGENT_APP_EVENT","AGENT_APP_UNIT","AGENT_APP_PROFILE","AGENT_PROFILE","AGENT_BULK_ACTION","BILLING_CUSTOMER","SUBSCRIPTION_PLAN","SUBSCRIPTION","COUPON","PRODUCT","SUBSCRIPTION_ADDON"]},"EntityViewId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ENTITY_VIEW"],"example":"ENTITY_VIEW","readOnly":true}}}],"required":["entityType","id"]},"GroupPermissionId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["GROUP_PERMISSION"],"example":"GROUP_PERMISSION","readOnly":true}}}],"required":["entityType","id"]},"IntegrationId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["INTEGRATION"],"example":"INTEGRATION","readOnly":true}}}],"required":["entityType","id"]},"JobId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["JOB"],"example":"JOB","readOnly":true}}}],"required":["entityType","id"]},"MobileAppBundleId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["MOBILE_APP_BUNDLE"],"example":"MOBILE_APP_BUNDLE","readOnly":true}}}],"required":["entityType","id"]},"MobileAppId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["MOBILE_APP"],"example":"MOBILE_APP","readOnly":true}}}],"required":["entityType","id"]},"NotificationId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["NOTIFICATION"],"example":"NOTIFICATION","readOnly":true}}}],"required":["entityType","id"]},"NotificationRequestId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["NOTIFICATION_REQUEST"],"example":"NOTIFICATION_REQUEST","readOnly":true}}}],"required":["entityType","id"]},"NotificationRuleId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["NOTIFICATION_RULE"],"example":"NOTIFICATION_RULE","readOnly":true}}}],"required":["entityType","id"]},"NotificationTargetId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["NOTIFICATION_TARGET"],"example":"NOTIFICATION_TARGET","readOnly":true}}}],"required":["entityType","id"]},"NotificationTemplateId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["NOTIFICATION_TEMPLATE"],"example":"NOTIFICATION_TEMPLATE","readOnly":true}}}],"required":["entityType","id"]},"OAuth2ClientId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["OAUTH2_CLIENT"],"example":"OAUTH2_CLIENT","readOnly":true}}}],"required":["entityType","id"]},"OtaPackageId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["OTA_PACKAGE"],"example":"OTA_PACKAGE","readOnly":true}}}],"required":["entityType","id"]},"ProductId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"}}}],"required":["id"]},"QueueId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["QUEUE"],"example":"QUEUE","readOnly":true}}}],"required":["entityType","id"]},"QueueStatsId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["QUEUE_STATS"],"example":"QUEUE_STATS","readOnly":true}}}],"required":["entityType","id"]},"Report":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ReportId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"templateId":{"$ref":"#/components/schemas/ReportTemplateId"},"format":{"$ref":"#/components/schemas/TbReportFormat"},"name":{"type":"string","minLength":1},"userId":{"$ref":"#/components/schemas/UserId"},"publicKey":{"type":"string"},"public":{"type":"boolean"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["format","name","tenantId","userId"]},"ReportId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["REPORT"],"example":"REPORT","readOnly":true}}}],"required":["entityType","id"]},"ReportTemplateId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["REPORT_TEMPLATE"],"example":"REPORT_TEMPLATE","readOnly":true}}}],"required":["entityType","id"]},"RoleId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["ROLE"],"example":"ROLE","readOnly":true}}}],"required":["entityType","id"]},"RpcId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["RPC"],"example":"RPC","readOnly":true}}}],"required":["entityType","id"]},"RuleChainId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["RULE_CHAIN"],"example":"RULE_CHAIN","readOnly":true}}}],"required":["entityType","id"]},"RuleNodeId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["RULE_NODE"],"example":"RULE_NODE","readOnly":true}}}],"required":["entityType","id"]},"SchedulerEventId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["SCHEDULER_EVENT"],"example":"SCHEDULER_EVENT","readOnly":true}}}],"required":["entityType","id"]},"SecretId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["SECRET"],"example":"SECRET","readOnly":true}}}],"required":["entityType","id"]},"SubscriptionAddonId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"}}}],"required":["id"]},"SubscriptionId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"}}}],"required":["id"]},"SubscriptionPlanId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"}}}],"required":["id"]},"TbReportFormat":{"type":"string","enum":["PDF","CSV"]},"TbResourceId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["TB_RESOURCE"],"example":"TB_RESOURCE","readOnly":true}}}],"required":["entityType","id"]},"TenantId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["TENANT"],"example":"TENANT","readOnly":true}}}],"required":["entityType","id"]},"TenantProfileId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["TENANT_PROFILE"],"example":"TENANT_PROFILE","readOnly":true}}}],"required":["entityType","id"]},"UserId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["USER"],"example":"USER","readOnly":true}}}],"required":["entityType","id"]},"WidgetTypeId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["WIDGET_TYPE"],"example":"WIDGET_TYPE","readOnly":true}}}],"required":["entityType","id"]},"WidgetsBundleId":{"type":"object","allOf":[{"$ref":"#/components/schemas/EntityId"},{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"$ref":"#/components/schemas/EntityType","description":"string","enum":["WIDGETS_BUNDLE"],"example":"WIDGETS_BUNDLE","readOnly":true}}}],"required":["entityType","id"]},"SecretInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SecretId","description":"JSON object with the Secret Id. Specify this field to update the Secret. Referencing non-existing Secret Id will cause error. Omit this field to create new Secret."},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the secret cannot be changed.","readOnly":true},"name":{"type":"string","description":"Secret name","example":"Secret","minLength":1},"type":{"$ref":"#/components/schemas/SecretType","description":"Secret type.","example":"TEXT"},"description":{"type":"string","description":"Secret description.","example":"Secret description"}},"required":["name","type"]},"SecretType":{"type":"string","enum":["TEXT","TEXT_FILE"]},"SchedulerEvent":{"type":"object","description":"A JSON value representing the Scheduler Event.","properties":{"id":{"$ref":"#/components/schemas/SchedulerEventId","description":"JSON object with the scheduler event Id. Specify this field to update the scheduler event. Referencing non-existing scheduler event Id will cause error. Omit this field to create new scheduler event"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the scheduler event creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Scheduler Event is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"originatorId":{"description":"JSON object with Originator Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"name":{"type":"string","description":"scheduler event name","example":"Weekly Dashboard Report"},"type":{"type":"string","description":"scheduler event type","example":"generateReport"},"schedule":{"$ref":"#/components/schemas/JsonNode","description":"a JSON value with schedule time configuration"},"enabled":{"type":"boolean","description":"Enable/disable scheduler","example":true},"version":{"type":"integer","format":"int64"},"configuration":{"$ref":"#/components/schemas/JsonNode"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the scheduler event"}}},"ResourceSubType":{"type":"string","enum":["IMAGE","SCADA_SYMBOL","EXTENSION","MODULE"]},"ResourceType":{"type":"string","enum":["LWM2M_MODEL","JKS","PKCS_12","JS_MODULE","IMAGE","DASHBOARD","GENERAL"]},"TbResourceInfo":{"type":"object","description":"A JSON value representing the Resource Info.","properties":{"id":{"$ref":"#/components/schemas/TbResourceId","description":"JSON object with the Resource Id. Specify this field to update the Resource. Referencing non-existing Resource Id will cause error. Omit this field to create new Resource."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the resource creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the resource can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Customer Id of the resource can't be changed.","readOnly":true},"title":{"type":"string","description":"Resource title.","example":"BinaryAppDataContainer id=19 v1.0"},"resourceType":{"$ref":"#/components/schemas/ResourceType","description":"Resource type.","example":"LWM2M_MODEL"},"resourceSubType":{"$ref":"#/components/schemas/ResourceSubType","description":"Resource sub type.","example":"IOT_SVG"},"resourceKey":{"type":"string","description":"Resource key.","example":"19_1.0"},"publicResourceKey":{"type":"string","description":"Public resource key."},"etag":{"type":"string","description":"Resource etag.","example":"33a64df551425fcc55e4d42a148795d9f25f89d4","readOnly":true},"fileName":{"type":"string","description":"Resource file name.","example":"19.xml"},"descriptor":{"$ref":"#/components/schemas/JsonNode","description":"Resource descriptor."},"name":{"type":"string","readOnly":true},"public":{"type":"boolean"},"link":{"type":"string","readOnly":true},"publicLink":{"type":"string","readOnly":true}}},"ResourceExportData":{"type":"object","properties":{"link":{"type":"string"},"title":{"type":"string"},"type":{"$ref":"#/components/schemas/ResourceType"},"subType":{"$ref":"#/components/schemas/ResourceSubType"},"resourceKey":{"type":"string"},"fileName":{"type":"string"},"publicResourceKey":{"type":"string"},"isPublic":{"type":"boolean","writeOnly":true},"mediaType":{"type":"string"},"data":{"type":"string"},"public":{"type":"boolean"}}},"CMAssigneeType":{"type":"string","enum":["NO_ASSIGN","ALL","CUSTOMERS","USERS","USER_GROUPS"]},"CMItemLinkType":{"type":"string","enum":["URL","DASHBOARD"]},"CMItemType":{"type":"string","enum":["LINK","SECTION"]},"CustomMenuConfig":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MenuItem"}}}},"CustomMenuItem":{"allOf":[{"$ref":"#/components/schemas/MenuItem"},{"type":"object","properties":{"name":{"type":"string","description":"Name of the menu item","example":"My Custom Menu"},"icon":{"type":"string","description":"URL of the menu item icon. Overrides 'materialIcon'","example":"My Custom Menu"},"menuItemType":{"$ref":"#/components/schemas/CMItemType","description":"Type of menu item (LINK or SECTION). LINK type means item has no child items, SECTION type should have at least one child","example":"LINK"},"linkType":{"$ref":"#/components/schemas/CMItemLinkType","description":"Type of menu item (URL or DASHBOARD)","example":"URL"},"dashboardId":{"type":"string","description":"Id of the Dashboard to open, when user clicks the menu item","example":"https://mycompany.com"},"hideDashboardToolbar":{"type":"boolean","description":"Hide the dashboard toolbar"},"url":{"type":"string","description":"URL to open in the iframe, when user clicks the menu item","example":"https://myexternalurl.com"},"setAccessToken":{"type":"boolean","description":"Set the access token of the current user to a new dashboard"},"visible":{"type":"boolean","description":"Mark if menu item is visible for user"},"pages":{"type":"array","description":"List of child menu items","items":{"$ref":"#/components/schemas/CustomMenuItem"}}}}],"required":["menuItemType","name","type"]},"DefaultMenuItem":{"allOf":[{"$ref":"#/components/schemas/MenuItem"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for predefined menu items","example":"home","readOnly":true},"name":{"type":"string","description":"Name of the menu item","example":"My Custom Menu"},"icon":{"type":"string","description":"URL of the menu item icon. Overrides 'materialIcon'","example":"My Custom Menu"},"visible":{"type":"boolean","description":"Mark if menu item is visible for user"},"pages":{"type":"array","description":"List of child menu items","items":{"$ref":"#/components/schemas/DefaultMenuItem"}}}}],"required":["type"]},"HomeMenuItem":{"allOf":[{"$ref":"#/components/schemas/MenuItem"},{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for predefined menu items","example":"home","readOnly":true},"name":{"type":"string","description":"Name of the menu item","example":"My Custom Menu"},"icon":{"type":"string","description":"URL of the menu item icon. Overrides 'materialIcon'","example":"My Custom Menu"},"visible":{"type":"boolean","description":"Mark if menu item is visible for user"},"pages":{"type":"array","description":"List of child menu items","items":{"$ref":"#/components/schemas/DefaultMenuItem"}},"homeType":{"$ref":"#/components/schemas/HomeMenuItemType","description":"DEFAULT or DASHBOARD. DASHBOARD means default home page presentation changed to refer to dashboard"},"dashboardId":{"type":"string","description":"Id of the Dashboard to open, when user clicks the menu item"},"hideDashboardToolbar":{"type":"boolean","description":"Hide the dashboard toolbar"}}}],"required":["type"]},"HomeMenuItemType":{"type":"string","enum":["DEFAULT","DASHBOARD"]},"MenuItem":{"type":"object","discriminator":{"propertyName":"type","mapping":{"HOME":"#/components/schemas/HomeMenuItem","DEFAULT":"#/components/schemas/DefaultMenuItem","CUSTOM":"#/components/schemas/CustomMenuItem"}},"properties":{"type":{"$ref":"#/components/schemas/MenuItemType","description":"Menu item type"},"visible":{"type":"boolean"}},"required":["type"]},"MenuItemType":{"type":"string","enum":["HOME","DEFAULT","CUSTOM"]},"CMScope":{"type":"string","enum":["SYSTEM","TENANT","CUSTOMER"]},"CustomMenu":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CustomMenuId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id that owns the menu.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id that owns the menu.","readOnly":true},"name":{"type":"string","description":"Custom menu name","example":"Customer A custom menu"},"scope":{"$ref":"#/components/schemas/CMScope","description":"Custom menu scope. Possible values: SYSTEM, TENANT, CUSTOMER","example":"TENANT"},"assigneeType":{"$ref":"#/components/schemas/CMAssigneeType","description":"Custom menu assignee type. Possible values are: All (all users of specified scope), CUSTOMERS (specified customers), USERS (specified list of users), NO_ASSIGN (no assignees), USER_GROUPS (user groups)","example":"ALL"},"userGroupNames":{"type":"array","description":"User group names menu is applied to","example":"[Customer Administrators, Customer Users]]","items":{"type":"string"}},"config":{"$ref":"#/components/schemas/CustomMenuConfig","description":"Custom menu configuration"}},"required":["assigneeType","name","scope"]},"CustomMenuId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"ApiKeyInfo":{"type":"object","description":"A JSON value representing the API key.","properties":{"id":{"$ref":"#/components/schemas/ApiKeyId","description":"JSON object with the API Key Id. Specify this field to update the API Key. Referencing non-existing API Key Id will cause error. Omit this field to create new API Key."},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the API key cannot be changed.","readOnly":true},"userId":{"$ref":"#/components/schemas/UserId","description":"JSON object with User Id. User Id of the API key cannot be changed."},"expirationTime":{"type":"integer","format":"int64","description":"Expiration time of the API key."},"description":{"type":"string","description":"API Key description.","example":"API Key description","minLength":1},"enabled":{"type":"boolean","description":"Enabled/disabled API key.","example":true},"expired":{"type":"boolean","description":"Indicates if the API key is expired based on current time. Returns false if expirationTime is 0 (no expiry).","example":false,"readOnly":true}},"required":["description"]},"AgentAppArgument":{"type":"object","properties":{"name":{"type":"string","description":"Argument name, referenced in the compose as ${tb.<name>}.","example":"device_uuid"},"sourceType":{"$ref":"#/components/schemas/AgentAppArgumentSource","description":"Source entity the value is resolved from."},"sourceEntityId":{"description":"Concrete source entity id. Required when sourceType references a specific entity (DEVICE, ASSET, CUSTOMER, EDGE); ignored for the context-derived sources.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"valueType":{"$ref":"#/components/schemas/AgentAppArgumentValueType","description":"Whether the value is read from an attribute or the latest telemetry."},"scope":{"$ref":"#/components/schemas/AttributeScope","description":"Attribute scope. Applicable only when valueType is ATTRIBUTE. Defaults to SERVER_SCOPE."},"key":{"type":"string","description":"Attribute or latest telemetry key to read.","example":"cloud_endpoint"},"defaultValue":{"type":"string","description":"Optional fallback value used when the source has no value for the key."},"format":{"$ref":"#/components/schemas/AgentAppArgumentFormat","description":"How the resolved value is injected into the compose: STRING (quoted) or JSON (raw, for arrays/objects/numbers when the placeholder is the whole value). Defaults to STRING."}}},"AgentAppArgumentFormat":{"type":"string","enum":["STRING","JSON"]},"AgentAppArgumentSource":{"type":"string","enum":["AGENT","OWNER","RELATED_ENTITY","TENANT","DEVICE","ASSET","CUSTOMER","EDGE"]},"AgentAppArgumentValueType":{"type":"string","enum":["ATTRIBUTE","LATEST_TELEMETRY"]},"AgentAppConfig":{"type":"object","discriminator":{"propertyName":"type"},"properties":{"arguments":{"type":"array","items":{"$ref":"#/components/schemas/AgentAppArgument"}},"type":{"$ref":"#/components/schemas/AgentAppConfigType"},"edgeRoutingKey":{"type":"string"}}},"AgentAppConfigType":{"type":"string","enum":["DOCKER_COMPOSE"]},"AgentApplication":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentApplicationId","description":"JSON object with the Agent Application Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the agent application creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"agentId":{"$ref":"#/components/schemas/AgentId","description":"Agent this application belongs to"},"name":{"type":"string","description":"Application name (not unique across tenant)"},"templateVersion":{"type":"string","description":"Template version this application is based on"},"desiredTemplateVersion":{"type":"string"},"appType":{"$ref":"#/components/schemas/AgentApplicationType","description":"Application type"},"config":{"description":"Config (with compose field and type = 'DOCKER_COMPOSE' for EDGE/GATEWAY)","oneOf":[{"$ref":"#/components/schemas/DockerComposeConfig"}]},"version":{"type":"integer","format":"int64"},"projectName":{"type":"string"},"pendingDeletion":{"type":"boolean"},"origin":{"$ref":"#/components/schemas/AgentApplicationOrigin","description":"Origin of the application (INSTALLED or DISCOVERED)"},"applicationProfileId":{"$ref":"#/components/schemas/AgentAppProfileId","description":"Application Profile Id. When set, config is read-only and inherited from the profile."},"profileConfigVersion":{"type":"integer","format":"int64"}},"required":["agentId","appType"]},"AgentApplicationOrigin":{"type":"string","enum":["INSTALLED","DISCOVERED","AUTO_PROVISIONED"]},"AgentApplicationType":{"type":"string","enum":["GENERIC","EDGE","GATEWAY"]},"AttributeScope":{"type":"string","enum":["CLIENT_SCOPE","SERVER_SCOPE","SHARED_SCOPE"]},"DockerComposeConfig":{"allOf":[{"$ref":"#/components/schemas/AgentAppConfig"},{"type":"object","properties":{"compose":{"$ref":"#/components/schemas/JsonNode"},"composeType":{"type":"string"}}}]},"TwoFaProviderType":{"type":"string","enum":["TOTP","SMS","EMAIL","BACKUP_CODE"]},"TwoFaAccountConfigUpdateRequest":{"type":"object","properties":{"useByDefault":{"type":"boolean"}}},"AccountTwoFaSettings":{"type":"object","description":"Account Two-Factor Authentication Settings","properties":{"configs":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/BackupCodeTwoFaAccountConfig"},{"$ref":"#/components/schemas/EmailTwoFaAccountConfig"},{"$ref":"#/components/schemas/SmsTwoFaAccountConfig"},{"$ref":"#/components/schemas/TotpTwoFaAccountConfig"}]}}}},"BackupCodeTwoFaAccountConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaAccountConfig"},{"type":"object","properties":{"codes":{"type":"array","items":{"type":"string"},"minItems":1,"uniqueItems":true},"codesLeft":{"type":"integer","format":"int32"}}}],"required":["codes"]},"EmailTwoFaAccountConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaAccountConfig"},{"type":"object","properties":{"email":{"type":"string","minLength":1}}}],"required":["email"]},"SmsTwoFaAccountConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaAccountConfig"},{"type":"object","properties":{"phoneNumber":{"type":"string","minLength":1,"pattern":"^\\+[1-9]\\d{1,14}$"}}}],"required":["phoneNumber"]},"TotpTwoFaAccountConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaAccountConfig"},{"type":"object","properties":{"authUrl":{"type":"string","minLength":1,"pattern":"otpauth://totp/(\\S+?):(\\S+?)\\?issuer=(\\S+?)&secret=(\\w+?)"}}}],"required":["authUrl"]},"TwoFaAccountConfig":{"type":"object","description":"Base configuration for two-factor authentication accounts","discriminator":{"propertyName":"providerType","mapping":{"TOTP":"#/components/schemas/TotpTwoFaAccountConfig","SMS":"#/components/schemas/SmsTwoFaAccountConfig","EMAIL":"#/components/schemas/EmailTwoFaAccountConfig","BACKUP_CODE":"#/components/schemas/BackupCodeTwoFaAccountConfig"}},"properties":{"useByDefault":{"type":"boolean"},"providerType":{"type":"string"}},"required":["providerType"]},"WidgetsBundle":{"type":"object","description":"A JSON value representing the Widget Bundle.","properties":{"id":{"$ref":"#/components/schemas/WidgetsBundleId","description":"JSON object with the Widget Bundle Id. Specify this field to update the Widget Bundle. Referencing non-existing Widget Bundle Id will cause error. Omit this field to create new Widget Bundle."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the Widget Bundle creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"alias":{"type":"string","description":"Unique alias that is used in widget types as a reference widget bundle","readOnly":true},"title":{"type":"string","description":"Title used in search and UI","readOnly":true},"image":{"type":"string","description":"Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled.","readOnly":true},"scada":{"type":"boolean","description":"Whether widgets bundle contains SCADA symbol widget types.","readOnly":true},"description":{"type":"string","description":"Description","readOnly":true},"order":{"type":"integer","format":"int32","description":"Order","readOnly":true},"version":{"type":"integer","format":"int64"},"name":{"type":"string","description":"Same as title of the Widget Bundle. Read-only field. Update the 'title' to change the 'name' of the Widget Bundle.","readOnly":true}}},"WidgetTypeDetails":{"type":"object","description":"A JSON value representing the Widget Type Details.","properties":{"id":{"$ref":"#/components/schemas/WidgetTypeId","description":"JSON object with the Widget Type Id. Specify this field to update the Widget Type. Referencing non-existing Widget Type Id will cause error. Omit this field to create new Widget Type."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the Widget Type creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"fqn":{"type":"string","description":"Unique FQN that is used in dashboards as a reference widget type","readOnly":true},"name":{"type":"string","description":"Widget name used in search and UI","readOnly":true},"deprecated":{"type":"boolean","description":"Whether widget type is deprecated.","example":true},"scada":{"type":"boolean","description":"Whether widget type is SCADA symbol.","example":true},"version":{"type":"integer","format":"int64"},"descriptor":{"$ref":"#/components/schemas/JsonNode","description":"Complex JSON object that describes the widget type","readOnly":true},"image":{"type":"string","description":"Relative or external image URL. Replaced with image data URL (Base64) in case of relative URL and 'inlineImages' option enabled."},"description":{"type":"string","description":"Description of the widget"},"tags":{"type":"array","description":"Tags of the widget type","items":{"type":"string"}},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ResourceExportData"}}}},"Favicon":{"type":"object","properties":{"url":{"type":"string"}}},"Palette":{"type":"object","properties":{"type":{"type":"string","description":"Name of the pre-defined palette, or 'custom'","example":"custom"},"colors":{"type":"object","additionalProperties":{"type":"string"},"description":"Mapping of hue identifier number to the rgb(a) color code"},"extends":{"type":"string","description":"Pre-defined palette name that the custom palette extends","example":"purple"}}},"PaletteSettings":{"type":"object","properties":{"primaryPalette":{"$ref":"#/components/schemas/Palette","description":"Primary palette JSON"},"accentPalette":{"$ref":"#/components/schemas/Palette","description":"Accent palette JSON"}}},"WhiteLabelingParams":{"type":"object","description":"A JSON value representing the white labeling configuration","properties":{"logoImageUrl":{"type":"string","description":"Logo image URL","example":"https://company.com/images/logo.png"},"logoImageHeight":{"type":"integer","format":"int32","description":"The height of a logo container. Logo image will be automatically scaled."},"collapsedLogoImageUrl":{"type":"string","description":"Logo shown when side menu is collapsed","example":"https://company.com/images/collapsed-logo.png"},"appTitle":{"type":"string","description":"White-labeled name of the platform","example":"My Company IoT Platform"},"favicon":{"$ref":"#/components/schemas/Favicon","description":"JSON object that contains website icon url and type"},"paletteSettings":{"$ref":"#/components/schemas/PaletteSettings","description":"Complex JSON that describes structure of the Angular Material Palette. See [theming](https://material.angular.io/guide/theming) for more details"},"primaryColorPanels":{"type":"boolean","description":"Whether primary-color panels (top toolbar, side navigation, dialog and entity-details headers) use the primary palette color as background. When false, they render on a white background"},"helpLinkBaseUrl":{"type":"string","description":"Base URL for help link"},"uiHelpBaseUrl":{"type":"string","description":"Base URL for the repository with the UI help components (markdown)"},"enableHelpLinks":{"type":"boolean","description":"Enable or Disable help links"},"whiteLabelingEnabled":{"type":"boolean","description":"Enable white-labeling","readOnly":true},"showNameVersion":{"type":"boolean","description":"Show platform name and version on UI and login screen"},"platformName":{"type":"string","description":"White-labeled platform name"},"platformVersion":{"type":"string","description":"White-labeled platform version"},"customCss":{"type":"string","description":"Custom CSS content"},"hideConnectivityDialog":{"type":"boolean","description":"Hide device connectivity dialog"},"overrideTrendzName":{"type":"boolean","description":"Override Trendz Add-on name"},"hideChatBot":{"type":"boolean","description":"Hide chat bot"}}},"LoginWhiteLabelingParams":{"type":"object","description":"A JSON value representing the login white labeling configuration","properties":{"logoImageUrl":{"type":"string","description":"Logo image URL","example":"https://company.com/images/logo.png"},"logoImageHeight":{"type":"integer","format":"int32","description":"The height of a logo container. Logo image will be automatically scaled."},"collapsedLogoImageUrl":{"type":"string","description":"Logo shown when side menu is collapsed","example":"https://company.com/images/collapsed-logo.png"},"appTitle":{"type":"string","description":"White-labeled name of the platform","example":"My Company IoT Platform"},"favicon":{"$ref":"#/components/schemas/Favicon","description":"JSON object that contains website icon url and type"},"paletteSettings":{"$ref":"#/components/schemas/PaletteSettings","description":"Complex JSON that describes structure of the Angular Material Palette. See [theming](https://material.angular.io/guide/theming) for more details"},"primaryColorPanels":{"type":"boolean","description":"Whether primary-color panels (top toolbar, side navigation, dialog and entity-details headers) use the primary palette color as background. When false, they render on a white background"},"helpLinkBaseUrl":{"type":"string","description":"Base URL for help link"},"uiHelpBaseUrl":{"type":"string","description":"Base URL for the repository with the UI help components (markdown)"},"enableHelpLinks":{"type":"boolean","description":"Enable or Disable help links"},"whiteLabelingEnabled":{"type":"boolean","description":"Enable white-labeling","readOnly":true},"showNameVersion":{"type":"boolean","description":"Show platform name and version on UI and login screen"},"platformName":{"type":"string","description":"White-labeled platform name"},"platformVersion":{"type":"string","description":"White-labeled platform version"},"customCss":{"type":"string","description":"Custom CSS content"},"hideConnectivityDialog":{"type":"boolean","description":"Hide device connectivity dialog"},"overrideTrendzName":{"type":"boolean","description":"Override Trendz Add-on name"},"hideChatBot":{"type":"boolean","description":"Hide chat bot"},"pageBackgroundColor":{"type":"string","description":"Login page background color","example":"#d90f0f"},"darkForeground":{"type":"boolean","description":"Enable/Disable dark foreground"},"domainId":{"$ref":"#/components/schemas/DomainId","description":"Domain id"},"baseUrl":{"type":"string","description":"Base URL for the activation link, etc","example":"https://iot.mycompany.com"},"prohibitDifferentUrl":{"type":"boolean","description":"Prohibit use of other URLs. It is recommended to enable this setting","example":true},"adminSettingsId":{"type":"string","description":"Id of the settings object that store this parameters"},"showNameBottom":{"type":"boolean","description":"Show platform name and version on login page"}}},"Aggregation":{"type":"string","enum":["MIN","MAX","AVG","SUM","COUNT","NONE"]},"AggregationConfiguration":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/Aggregation"},"limit":{"type":"integer","format":"int32"}}},"AlarmFilterConfig":{"type":"object","properties":{"typeList":{"type":"array","items":{"type":"string"}},"statusList":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSearchStatus"}},"severityList":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSeverity"}},"assigneeId":{"$ref":"#/components/schemas/UserId"},"searchPropagatedAlarms":{"type":"boolean"}}},"AlarmRuleComplexOperation":{"type":"string","enum":["AND","OR"]},"AlarmSearchStatus":{"type":"string","enum":["ANY","ACTIVE","CLEARED","ACK","UNACK"]},"AlarmSeverity":{"type":"string","enum":["CRITICAL","MAJOR","MINOR","WARNING","INDETERMINATE"]},"AlarmTableComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"showTableHeading":{"type":"boolean"},"tableHeading":{"$ref":"#/components/schemas/Heading"},"tableSortOrder":{"$ref":"#/components/schemas/TableSortOrder"},"alarmSource":{"$ref":"#/components/schemas/DataSource"},"timewindow":{"$ref":"#/components/schemas/TimeWindowConfiguration"}}}],"required":["type"]},"AliasEntityId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"ID of the entity, time-based UUID v1. Required for an entity type; for CURRENT_CUSTOMER, the customer used when the current user does not belong to one","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityType":{"type":"string","description":"Entity type: an EntityType value, or an AliasEntityType value resolved for the current user","example":"DEVICE"}},"required":["entityType"]},"ApiUsageStateFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"customerId":{"$ref":"#/components/schemas/CustomerId"}}}]},"AssetSearchQueryFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"rootEntity":{"$ref":"#/components/schemas/AliasEntityId"},"relationType":{"type":"string"},"direction":{"$ref":"#/components/schemas/EntitySearchDirection"},"maxLevel":{"type":"integer","format":"int32"},"fetchLastLevelOnly":{"type":"boolean"},"rootStateEntity":{"type":"boolean"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"},"assetTypes":{"type":"array","items":{"type":"string"}}}}]},"AssetTypeFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"assetType":{"type":"string","deprecated":true,"writeOnly":true},"assetTypes":{"type":"array","items":{"type":"string"}},"assetNameFilter":{"type":"string"}}}]},"AxisPosition":{"type":"string","enum":["left","right","top","bottom"]},"BarSeriesSettings":{"type":"object","properties":{"showBorder":{"type":"boolean"},"borderWidth":{"type":"number","format":"float"},"borderRadius":{"type":"number","format":"float"},"barWidth":{"type":"number","format":"double"},"showLabel":{"type":"boolean"},"labelPosition":{"$ref":"#/components/schemas/ChartLabelPosition"},"labelFont":{"$ref":"#/components/schemas/Font"},"labelColor":{"type":"string"},"enableLabelBackground":{"type":"boolean"},"labelBackground":{"type":"string"},"backgroundSettings":{"$ref":"#/components/schemas/ChartFillSettings"}}},"BooleanFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/KeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/BooleanOperation"},"value":{"$ref":"#/components/schemas/FilterPredicateValueBoolean","description":"The value associated with the filter predicate"}}}]},"BooleanOperation":{"type":"string","enum":["EQUAL","NOT_EQUAL"]},"BorderLength":{"type":"string","enum":["LONG","SHORT"]},"BorderType":{"type":"string","enum":["solid","dashed","dotted","double"]},"CellSettings":{"type":"object","properties":{"font":{"$ref":"#/components/schemas/Font"},"color":{"type":"string"},"backgroundColor":{"type":"string"},"textAlignment":{"$ref":"#/components/schemas/TextAlignment"},"verticalAlignment":{"$ref":"#/components/schemas/VerticalAlignment"},"borderType":{"$ref":"#/components/schemas/BorderType"},"borderWidth":{"type":"integer","format":"int32"},"borderColor":{"type":"string"}}},"ChartFillSettings":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ChartFillType"},"opacity":{"type":"number","format":"float"},"gradient":{"$ref":"#/components/schemas/ChartFillSettingsGradient"}}},"ChartFillSettingsGradient":{"type":"object","properties":{"start":{"type":"number","format":"float"},"end":{"type":"number","format":"float"}}},"ChartFillType":{"type":"string","enum":["none","opacity","gradient"]},"ChartLabelPosition":{"type":"string","enum":["top","bottom"]},"ChartLineType":{"type":"string","enum":["solid","dashed","dotted"]},"ChartShape":{"type":"string","enum":["emptyCircle","circle","rect","roundRect","triangle","diamond","pin","arrow","none"]},"ColorRange":{"type":"object","properties":{"from":{"type":"number","format":"double"},"to":{"type":"number","format":"double"},"color":{"type":"string"}}},"ColumnSettings":{"type":"object","allOf":[{"$ref":"#/components/schemas/DataKeySettings"},{"type":"object","properties":{"columnWidth":{"type":"string"},"header":{"$ref":"#/components/schemas/CellSettings"},"cell":{"$ref":"#/components/schemas/CellSettings"}}}],"required":["type"]},"ComparisonDuration":{"type":"string","enum":["previousInterval","days","weeks","months","years","customInterval"]},"ComplexFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/KeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"predicates":{"type":"array","items":{"$ref":"#/components/schemas/KeyFilterPredicate"}}}}]},"CsvReportTemplateConfig":{"allOf":[{"$ref":"#/components/schemas/ReportTemplateConfig"}],"required":["components","format"]},"DashboardComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"widthType":{"$ref":"#/components/schemas/ImageWidthType"},"customWidth":{"type":"integer","format":"int32"},"alignment":{"$ref":"#/components/schemas/ImageAlignment"},"config":{"$ref":"#/components/schemas/DashboardReportConfig","description":"Dashboard report configuration."}}}],"required":["config","type"]},"DashboardReportConfig":{"type":"object","properties":{"baseUrl":{"type":"string","description":"Base URL of ThingsBoard UI that should be accessible by Web Report Server.","example":"https:thingsboard.cloud"},"dashboardId":{"type":"string","description":"A string value representing the dashboard id.","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"state":{"type":"string","description":"Target dashboard state for dashboard report generation."},"timezone":{"type":"string","description":"Timezone in which target dashboard will be presented in dashboard report.","example":"Europe/Kiev"},"useDashboardTimewindow":{"type":"boolean","description":"If set, timewindow configured in the target dashboard will be used during dashboard report generation.","example":true},"timewindow":{"$ref":"#/components/schemas/JsonNode","description":"Specific dashboard timewindow that will be used during dashboard report generation."},"namePattern":{"type":"string","description":"Pattern of the generated report file name. '%d{<date format>}' is replaced with the report generation time formatted in the report timezone. If not set, 'report-%d{yyyy-MM-dd_HH:mm:ss}' is used.","example":"report-%d{yyyy-MM-dd_HH:mm:ss}"},"type":{"type":"string","description":"Dashboard report file type, can be PDF | PNG | JPEG.","example":"pdf"},"useCurrentUserCredentials":{"type":"boolean","description":"If set, credentials of user created this dashboard report configuration will be used to open dashboard UI during dashboard report generation.","example":true},"userId":{"type":"string","description":"A string value representing the user id.","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["baseUrl","dashboardId","timezone"]},"DataKey":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"label":{"type":"string"},"color":{"type":"string"},"decimals":{"type":"integer","format":"int32"},"units":{"type":"string"},"aggregationType":{"$ref":"#/components/schemas/Aggregation"},"timewindow":{"$ref":"#/components/schemas/TimeWindowConfiguration"},"usePostProcessing":{"type":"boolean"},"postFuncBody":{"type":"string"},"settings":{"oneOf":[{"$ref":"#/components/schemas/ColumnSettings"},{"$ref":"#/components/schemas/DefaultDataKeySettings"},{"$ref":"#/components/schemas/TimeSeriesChartKeySettings"}]}}},"DataKeyComparisonSettings":{"type":"object","properties":{"showValuesForComparison":{"type":"boolean"},"comparisonValuesLabel":{"type":"string"},"color":{"type":"string"}}},"DataKeySettings":{"type":"object","discriminator":{"propertyName":"type","mapping":{"COLUMN":"#/components/schemas/ColumnSettings","TIME_SERIES_CHART":"#/components/schemas/TimeSeriesChartKeySettings","DEFAULT":"#/components/schemas/DefaultDataKeySettings"}},"properties":{"type":{"$ref":"#/components/schemas/DataKeySettingsType","description":"Data key settings type"}},"required":["type"]},"DataKeySettingsType":{"type":"string","enum":["COLUMN","TIME_SERIES_CHART","DEFAULT"]},"DataSource":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/DataSourceType"},"deviceId":{"type":"string"},"entityAliasId":{"type":"string"},"filterId":{"type":"string"},"dataKeys":{"type":"array","items":{"$ref":"#/components/schemas/DataKey"}},"latestDataKeys":{"type":"array","items":{"$ref":"#/components/schemas/DataKey"}},"alarmFilterConfig":{"$ref":"#/components/schemas/AlarmFilterConfig"}}},"DataSourceType":{"type":"string","enum":["device","entity","entityCount","alarmCount"]},"DefaultDataKeySettings":{"allOf":[{"$ref":"#/components/schemas/DataKeySettings"}],"required":["type"]},"DeviceSearchQueryFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"rootEntity":{"$ref":"#/components/schemas/AliasEntityId"},"relationType":{"type":"string"},"direction":{"$ref":"#/components/schemas/EntitySearchDirection"},"maxLevel":{"type":"integer","format":"int32"},"fetchLastLevelOnly":{"type":"boolean"},"rootStateEntity":{"type":"boolean"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"},"deviceTypes":{"type":"array","items":{"type":"string"}}}}]},"DeviceTypeFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"deviceType":{"type":"string","deprecated":true,"writeOnly":true},"deviceTypes":{"type":"array","items":{"type":"string"}},"deviceNameFilter":{"type":"string"}}}]},"DividerComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"length":{"$ref":"#/components/schemas/BorderLength"},"borderType":{"$ref":"#/components/schemas/BorderType"},"widthPx":{"type":"integer","format":"int32"},"color":{"type":"string"}}}],"required":["type"]},"DoughnutLayout":{"type":"string","enum":["default","with_total"]},"DynamicValueBoolean":{"type":"object","properties":{"sourceType":{"$ref":"#/components/schemas/DynamicValueSourceType"},"sourceAttribute":{"type":"string"},"inherit":{"type":"boolean"},"resolvedValue":{"type":"boolean"}}},"DynamicValueDouble":{"type":"object","properties":{"sourceType":{"$ref":"#/components/schemas/DynamicValueSourceType"},"sourceAttribute":{"type":"string"},"inherit":{"type":"boolean"},"resolvedValue":{"type":"number","format":"double"}}},"DynamicValueSourceType":{"type":"string","enum":["CURRENT_TENANT","CURRENT_CUSTOMER","CURRENT_USER","CURRENT_DEVICE"]},"DynamicValueString":{"type":"object","properties":{"sourceType":{"$ref":"#/components/schemas/DynamicValueSourceType"},"sourceAttribute":{"type":"string"},"inherit":{"type":"boolean"},"resolvedValue":{"type":"string"}}},"EdgeSearchQueryFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"rootEntity":{"$ref":"#/components/schemas/AliasEntityId"},"relationType":{"type":"string"},"direction":{"$ref":"#/components/schemas/EntitySearchDirection"},"maxLevel":{"type":"integer","format":"int32"},"fetchLastLevelOnly":{"type":"boolean"},"rootStateEntity":{"type":"boolean"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"},"edgeTypes":{"type":"array","items":{"type":"string"}}}}]},"EdgeTypeFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"edgeType":{"type":"string","deprecated":true,"writeOnly":true},"edgeTypes":{"type":"array","items":{"type":"string"}},"edgeNameFilter":{"type":"string"}}}]},"EntitiesByGroupNameFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"groupType":{"$ref":"#/components/schemas/EntityType"},"ownerId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"entityGroupNameFilter":{"type":"string"},"groupStateEntity":{"type":"boolean"},"stateEntityParamName":{"type":"string"}}}]},"EntityAlias":{"type":"object","properties":{"id":{"type":"string"},"alias":{"type":"string"},"filter":{"oneOf":[{"$ref":"#/components/schemas/ApiUsageStateFilter"},{"$ref":"#/components/schemas/AssetSearchQueryFilter"},{"$ref":"#/components/schemas/AssetTypeFilter"},{"$ref":"#/components/schemas/DeviceSearchQueryFilter"},{"$ref":"#/components/schemas/DeviceTypeFilter"},{"$ref":"#/components/schemas/EdgeSearchQueryFilter"},{"$ref":"#/components/schemas/EdgeTypeFilter"},{"$ref":"#/components/schemas/EntitiesByGroupNameFilter"},{"$ref":"#/components/schemas/EntityGroupFilter"},{"$ref":"#/components/schemas/EntityGroupListFilter"},{"$ref":"#/components/schemas/EntityGroupNameFilter"},{"$ref":"#/components/schemas/EntityListFilter"},{"$ref":"#/components/schemas/EntityNameFilter"},{"$ref":"#/components/schemas/EntityTypeFilter"},{"$ref":"#/components/schemas/EntityViewSearchQueryFilter"},{"$ref":"#/components/schemas/EntityViewTypeFilter"},{"$ref":"#/components/schemas/RelationsQueryFilter"},{"$ref":"#/components/schemas/SchedulerEventFilter"},{"$ref":"#/components/schemas/SingleEntityFilter"},{"$ref":"#/components/schemas/StateEntityFilter"},{"$ref":"#/components/schemas/StateEntityOwnerFilter"}]}}},"EntityFilter":{"description":"Filter for selecting entities","discriminator":{"propertyName":"type","mapping":{"singleEntity":"#/components/schemas/SingleEntityFilter","entityGroup":"#/components/schemas/EntityGroupFilter","entityList":"#/components/schemas/EntityListFilter","entityName":"#/components/schemas/EntityNameFilter","entityType":"#/components/schemas/EntityTypeFilter","entityGroupList":"#/components/schemas/EntityGroupListFilter","entityGroupName":"#/components/schemas/EntityGroupNameFilter","entitiesByGroupName":"#/components/schemas/EntitiesByGroupNameFilter","stateEntity":"#/components/schemas/StateEntityFilter","stateEntityOwner":"#/components/schemas/StateEntityOwnerFilter","assetType":"#/components/schemas/AssetTypeFilter","deviceType":"#/components/schemas/DeviceTypeFilter","edgeType":"#/components/schemas/EdgeTypeFilter","entityViewType":"#/components/schemas/EntityViewTypeFilter","apiUsageState":"#/components/schemas/ApiUsageStateFilter","relationsQuery":"#/components/schemas/RelationsQueryFilter","assetSearchQuery":"#/components/schemas/AssetSearchQueryFilter","deviceSearchQuery":"#/components/schemas/DeviceSearchQueryFilter","entityViewSearchQuery":"#/components/schemas/EntityViewSearchQueryFilter","edgeSearchQuery":"#/components/schemas/EdgeSearchQueryFilter","schedulerEvent":"#/components/schemas/SchedulerEventFilter"}},"properties":{"type":{"type":"string"}},"required":["type"]},"EntityGroupFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"groupType":{"$ref":"#/components/schemas/EntityType"},"entityGroup":{"type":"string"},"groupStateEntity":{"type":"boolean"},"defaultStateGroupType":{"$ref":"#/components/schemas/EntityType"},"defaultStateEntityGroup":{"type":"string"}}}]},"EntityGroupListFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"groupType":{"$ref":"#/components/schemas/EntityType"},"entityGroupList":{"type":"array","items":{"type":"string"}}}}]},"EntityGroupNameFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"groupType":{"$ref":"#/components/schemas/EntityType"},"entityGroupNameFilter":{"type":"string"}}}]},"EntityKey":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/EntityKeyType"},"key":{"type":"string"}}},"EntityKeyType":{"type":"string","enum":["ATTRIBUTE","CLIENT_ATTRIBUTE","SHARED_ATTRIBUTE","SERVER_ATTRIBUTE","TIME_SERIES","ENTITY_FIELD","ALARM_FIELD"]},"EntityKeyValueType":{"type":"string","enum":["STRING","NUMERIC","BOOLEAN","DATE_TIME"]},"EntityListFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"entityList":{"type":"array","items":{"type":"string"}}}}]},"EntityNameFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"entityNameFilter":{"type":"string"}}}]},"EntitySearchDirection":{"type":"string","enum":["FROM","TO"]},"EntityTableComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"showTableHeading":{"type":"boolean"},"tableHeading":{"$ref":"#/components/schemas/Heading"},"tableSortOrder":{"$ref":"#/components/schemas/TableSortOrder"}}}],"required":["type"]},"EntityTypeFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"}}}]},"EntityViewSearchQueryFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"rootEntity":{"$ref":"#/components/schemas/AliasEntityId"},"relationType":{"type":"string"},"direction":{"$ref":"#/components/schemas/EntitySearchDirection"},"maxLevel":{"type":"integer","format":"int32"},"fetchLastLevelOnly":{"type":"boolean"},"rootStateEntity":{"type":"boolean"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"},"entityViewTypes":{"type":"array","items":{"type":"string"}}}}]},"EntityViewTypeFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"entityViewType":{"type":"string","deprecated":true,"writeOnly":true},"entityViewTypes":{"type":"array","items":{"type":"string"}},"entityViewNameFilter":{"type":"string"}}}]},"ErrorComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"errorMessage":{"type":"string"},"exception":{"type":"object","properties":{"cause":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"localizedMessage":{"type":"string"}}},"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"suppressed":{"type":"array","items":{"type":"object","properties":{"stackTrace":{"type":"array","items":{"type":"object","properties":{"classLoaderName":{"type":"string"},"moduleName":{"type":"string"},"moduleVersion":{"type":"string"},"methodName":{"type":"string"},"fileName":{"type":"string"},"lineNumber":{"type":"integer","format":"int32"},"className":{"type":"string"},"nativeMethod":{"type":"boolean"}}}},"message":{"type":"string"},"localizedMessage":{"type":"string"}}}},"localizedMessage":{"type":"string"}}}}}],"required":["type"]},"Filter":{"type":"object","properties":{"id":{"type":"string"},"filter":{"type":"string"},"keyFilters":{"type":"array","items":{"$ref":"#/components/schemas/KeyFilter"}}}},"FilterPredicateValueBoolean":{"type":"object","properties":{"defaultValue":{"type":"boolean"},"userValue":{"type":"boolean"},"dynamicValue":{"$ref":"#/components/schemas/DynamicValueBoolean"}}},"FilterPredicateValueDouble":{"type":"object","properties":{"defaultValue":{"type":"number","format":"double"},"userValue":{"type":"number","format":"double"},"dynamicValue":{"$ref":"#/components/schemas/DynamicValueDouble"}}},"FilterPredicateValueString":{"type":"object","properties":{"defaultValue":{"type":"string"},"userValue":{"type":"string"},"dynamicValue":{"$ref":"#/components/schemas/DynamicValueString"}}},"FixedTimeWindow":{"type":"object","properties":{"startTimeMs":{"type":"integer","format":"int64"},"endTimeMs":{"type":"integer","format":"int64"}}},"Font":{"type":"object","properties":{"size":{"type":"number","format":"float"},"weight":{"$ref":"#/components/schemas/FontWeight"},"style":{"$ref":"#/components/schemas/FontStyle"},"family":{"type":"string"}}},"FontStyle":{"type":"string","enum":["normal","italic"]},"FontWeight":{"type":"string","enum":["normal","bold","500"]},"HeaderFooter":{"type":"object","properties":{"enabled":{"type":"boolean"},"components":{"type":"array","items":{"$ref":"#/components/schemas/ReportComponent"}},"firstPage":{"required":["components"]}},"required":["components"]},"Heading":{"type":"object","properties":{"text":{"type":"string"},"font":{"$ref":"#/components/schemas/Font"},"color":{"type":"string"},"textAlignment":{"$ref":"#/components/schemas/TextAlignment"},"verticalAlignment":{"$ref":"#/components/schemas/VerticalAlignment"},"height":{"type":"integer","format":"int32"}}},"HeadingComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"value":{"type":"string"},"font":{"$ref":"#/components/schemas/Font"},"color":{"type":"string"},"textAlignment":{"$ref":"#/components/schemas/TextAlignment"},"verticalAlignment":{"$ref":"#/components/schemas/VerticalAlignment"},"height":{"type":"integer","format":"int32"}}}],"required":["type"]},"History":{"type":"object","properties":{"historyType":{"type":"integer","format":"int32"},"interval":{"$ref":"#/components/schemas/Interval"},"timewindowMs":{"type":"integer","format":"int64"},"fixedTimewindow":{"$ref":"#/components/schemas/FixedTimeWindow"},"quickInterval":{"$ref":"#/components/schemas/QuickTimeInterval"}}},"ImageAlignment":{"type":"string","enum":["left","center","right"]},"ImageComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"widthType":{"$ref":"#/components/schemas/ImageWidthType"},"customWidth":{"type":"integer","format":"int32"},"alignment":{"$ref":"#/components/schemas/ImageAlignment"},"sourceType":{"$ref":"#/components/schemas/ImageSourceType"},"imageUrl":{"type":"string"}}}],"required":["type"]},"ImageSourceType":{"type":"string","enum":["image","entityKey"]},"ImageWidthType":{"type":"string","enum":["fitWidth","original","custom"]},"Insets":{"type":"object","properties":{"left":{"type":"integer","format":"int32"},"right":{"type":"integer","format":"int32"},"top":{"type":"integer","format":"int32"},"bottom":{"type":"integer","format":"int32"}}},"Interval":{"type":"object","properties":{"interval":{"type":"integer","format":"int64"},"intervalType":{"$ref":"#/components/schemas/IntervalType"}}},"IntervalType":{"type":"string","enum":["MILLISECONDS","WEEK","WEEK_ISO","MONTH","QUARTER"]},"KeyFilter":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/EntityKey"},"valueType":{"$ref":"#/components/schemas/EntityKeyValueType"},"predicate":{"oneOf":[{"$ref":"#/components/schemas/BooleanFilterPredicate"},{"$ref":"#/components/schemas/ComplexFilterPredicate"},{"$ref":"#/components/schemas/NumericFilterPredicate"},{"$ref":"#/components/schemas/StringFilterPredicate"}]}}},"KeyFilterPredicate":{"description":"Filter predicate for key-based filtering","discriminator":{"propertyName":"type","mapping":{"STRING":"#/components/schemas/StringFilterPredicate","NUMERIC":"#/components/schemas/NumericFilterPredicate","BOOLEAN":"#/components/schemas/BooleanFilterPredicate","COMPLEX":"#/components/schemas/ComplexFilterPredicate"}},"properties":{"type":{"type":"string"}},"required":["type"]},"LatestChartComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"widthType":{"$ref":"#/components/schemas/ImageWidthType"},"customWidth":{"type":"integer","format":"int32"},"alignment":{"$ref":"#/components/schemas/ImageAlignment"},"height":{"type":"integer","format":"int32"},"latestChartSettings":{"oneOf":[{"$ref":"#/components/schemas/ReportLatestChartSettings"},{"$ref":"#/components/schemas/ReportBarChartSettings"},{"$ref":"#/components/schemas/ReportDoughnutChartSettings"},{"$ref":"#/components/schemas/ReportPieChartSettings"}]}}}],"required":["type"]},"LegendConfig":{"type":"object","properties":{"position":{"$ref":"#/components/schemas/LegendPosition"},"sortDataKeys":{"type":"boolean"},"showMin":{"type":"boolean"},"showMax":{"type":"boolean"},"showAvg":{"type":"boolean"},"showTotal":{"type":"boolean"},"showLatest":{"type":"boolean"}}},"LegendPosition":{"type":"string","enum":["top","bottom","left","right"]},"LineSeriesSettings":{"type":"object","properties":{"showLine":{"type":"boolean"},"step":{"type":"boolean"},"stepType":{"$ref":"#/components/schemas/LineSeriesStepType"},"smooth":{"type":"boolean"},"lineType":{"$ref":"#/components/schemas/ChartLineType"},"lineWidth":{"type":"number","format":"float"},"showPoints":{"type":"boolean"},"showPointLabel":{"type":"boolean"},"pointLabelPosition":{"$ref":"#/components/schemas/ChartLabelPosition"},"pointLabelFont":{"$ref":"#/components/schemas/Font"},"pointLabelColor":{"type":"string"},"enablePointLabelBackground":{"type":"boolean"},"pointLabelBackground":{"type":"string"},"pointShape":{"$ref":"#/components/schemas/ChartShape"},"pointSize":{"type":"number","format":"float"},"fillAreaSettings":{"$ref":"#/components/schemas/ChartFillSettings"}}},"LineSeriesStepType":{"type":"string","enum":["start","middle","end"]},"NumericFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/KeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/NumericOperation"},"value":{"$ref":"#/components/schemas/FilterPredicateValueDouble","description":"The value associated with the filter predicate"}}}]},"NumericOperation":{"type":"string","enum":["EQUAL","NOT_EQUAL","GREATER","LESS","GREATER_OR_EQUAL","LESS_OR_EQUAL"]},"PageBreakComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"}],"required":["type"]},"PageOrientation":{"type":"string","enum":["PORTRAIT","LANDSCAPE"]},"PageSize":{"type":"string","enum":["A4","LETTER","LEGAL","A5","A3","TABLOID"]},"PdfReportTemplateConfig":{"allOf":[{"$ref":"#/components/schemas/ReportTemplateConfig"},{"type":"object","properties":{"pageSize":{"$ref":"#/components/schemas/PageSize"},"pageOrientation":{"$ref":"#/components/schemas/PageOrientation"},"pageMargins":{"$ref":"#/components/schemas/Insets"},"pageBackground":{"type":"string"},"header":{"$ref":"#/components/schemas/HeaderFooter"},"footer":{"$ref":"#/components/schemas/HeaderFooter"}}}],"required":["components","format"]},"PieChartLabelPosition":{"type":"string","enum":["inside","outside"]},"QuickTimeInterval":{"type":"string","enum":["YESTERDAY","DAY_BEFORE_YESTERDAY","THIS_DAY_LAST_WEEK","PREVIOUS_WEEK","PREVIOUS_WEEK_ISO","PREVIOUS_MONTH","PREVIOUS_QUARTER","PREVIOUS_HALF_YEAR","PREVIOUS_YEAR","CURRENT_HOUR","CURRENT_DAY","CURRENT_DAY_SO_FAR","CURRENT_WEEK","CURRENT_WEEK_ISO","CURRENT_WEEK_SO_FAR","CURRENT_WEEK_ISO_SO_FAR","CURRENT_MONTH","CURRENT_MONTH_SO_FAR","CURRENT_QUARTER","CURRENT_QUARTER_SO_FAR","CURRENT_HALF_YEAR","CURRENT_HALF_YEAR_SO_FAR","CURRENT_YEAR","CURRENT_YEAR_SO_FAR"]},"RelationEntityTypeFilter":{"type":"object","properties":{"relationType":{"type":"string","description":"Type of the relation between root entity and other entity (e.g. 'Contains' or 'Manages').","example":"Contains"},"entityTypes":{"type":"array","description":"Array of entity types to filter the related entities (e.g. 'DEVICE', 'ASSET').","items":{"$ref":"#/components/schemas/EntityType"}},"negate":{"type":"boolean","description":"Negate relation type between root entity and other entity."}}},"RelationsQueryFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"rootEntity":{"$ref":"#/components/schemas/AliasEntityId"},"multiRootEntitiesType":{"$ref":"#/components/schemas/EntityType"},"multiRootEntityIds":{"type":"array","items":{"type":"string"},"uniqueItems":true},"direction":{"$ref":"#/components/schemas/EntitySearchDirection"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/RelationEntityTypeFilter"}},"maxLevel":{"type":"integer","format":"int32"},"fetchLastLevelOnly":{"type":"boolean"},"negate":{"type":"boolean"},"rootStateEntity":{"type":"boolean"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"},"multiRoot":{"type":"boolean"}}}]},"ReportBarChartSettings":{"allOf":[{"$ref":"#/components/schemas/ReportLatestChartSettings"},{"type":"object","properties":{"axisMin":{"type":"number","format":"double"},"axisMax":{"type":"number","format":"double"},"axisTickLabelFont":{"$ref":"#/components/schemas/Font"},"axisTickLabelColor":{"type":"string"},"barSettings":{"$ref":"#/components/schemas/BarSeriesSettings"}}}]},"ReportBarChartWithLabelsSettings":{"allOf":[{"$ref":"#/components/schemas/ReportTimeSeriesChartSettings"},{"type":"object","properties":{"showBarLabel":{"type":"boolean"},"barLabelFont":{"$ref":"#/components/schemas/Font"},"barLabelColor":{"type":"string"},"showBarValue":{"type":"boolean"},"barValueFont":{"$ref":"#/components/schemas/Font"},"barValueColor":{"type":"string"},"showBarBorder":{"type":"boolean"},"barBorderWidth":{"type":"number","format":"float"},"barBorderRadius":{"type":"number","format":"float"},"barBackgroundSettings":{"$ref":"#/components/schemas/ChartFillSettings"},"barUnits":{"type":"string"},"barDecimals":{"type":"integer","format":"int32"}}}]},"ReportComponent":{"type":"object","discriminator":{"propertyName":"type","mapping":{"HEADING":"#/components/schemas/HeadingComponent","RICH_TEXT":"#/components/schemas/RichTextComponent","ENTITY_TABLE":"#/components/schemas/EntityTableComponent","PAGE_BREAK":"#/components/schemas/PageBreakComponent","TIME_SERIES_TABLE":"#/components/schemas/TimeseriesTableComponent","ALARM_TABLE":"#/components/schemas/AlarmTableComponent","TIME_SERIES_CHART":"#/components/schemas/TimeseriesChartComponent","LATEST_CHART":"#/components/schemas/LatestChartComponent","DASHBOARD":"#/components/schemas/DashboardComponent","IMAGE":"#/components/schemas/ImageComponent","SUB_REPORT":"#/components/schemas/SubReportComponent","ERROR":"#/components/schemas/ErrorComponent","DIVIDER":"#/components/schemas/DividerComponent","SPLIT_VIEW":"#/components/schemas/SplitViewComponent"}},"properties":{"type":{"$ref":"#/components/schemas/ReportComponentType"},"subType":{"$ref":"#/components/schemas/ReportComponentSubType"}},"required":["type"]},"ReportComponentSubType":{"type":"string","enum":["doughnutChart","horizontalDoughnutChart","pointChart","barChart","pieChart","lineChart","latestBarChart","rangeChart","barChartWithLabels","stateChart","default"]},"ReportComponentType":{"type":"string","enum":["HEADING","RICH_TEXT","ENTITY_TABLE","TIME_SERIES_TABLE","ALARM_TABLE","TIME_SERIES_CHART","LATEST_CHART","DASHBOARD","IMAGE","SUB_REPORT","PAGE_BREAK","ERROR","DIVIDER","SPLIT_VIEW"]},"ReportDoughnutChartSettings":{"allOf":[{"$ref":"#/components/schemas/ReportLatestChartSettings"},{"type":"object","properties":{"layout":{"$ref":"#/components/schemas/DoughnutLayout"},"clockwise":{"type":"boolean"},"totalValueFont":{"$ref":"#/components/schemas/Font"},"totalValueColor":{"type":"string"}}}]},"ReportLatestChartSettings":{"type":"object","properties":{"showTitle":{"type":"boolean"},"title":{"type":"string"},"titleFont":{"$ref":"#/components/schemas/Font"},"titleColor":{"type":"string"},"titleAlignment":{"$ref":"#/components/schemas/TextAlignment"},"units":{"type":"string"},"decimals":{"type":"integer","format":"int32"},"autoScale":{"type":"boolean"},"sortSeries":{"type":"boolean"},"showTotal":{"type":"boolean"},"showLegend":{"type":"boolean"},"legendPosition":{"$ref":"#/components/schemas/LegendPosition"},"legendLabelFont":{"$ref":"#/components/schemas/Font"},"legendLabelColor":{"type":"string"},"legendValueFont":{"$ref":"#/components/schemas/Font"},"legendValueColor":{"type":"string"},"legendShowTotal":{"type":"boolean"}}},"ReportPieChartSettings":{"allOf":[{"$ref":"#/components/schemas/ReportLatestChartSettings"},{"type":"object","properties":{"showLabel":{"type":"boolean"},"labelPosition":{"$ref":"#/components/schemas/PieChartLabelPosition"},"labelFont":{"$ref":"#/components/schemas/Font"},"labelColor":{"type":"string"},"borderWidth":{"type":"number","format":"float"},"borderColor":{"type":"string"},"radius":{"type":"number","format":"double"},"clockwise":{"type":"boolean"}}}]},"ReportRangeChartSettings":{"allOf":[{"$ref":"#/components/schemas/ReportTimeSeriesChartSettings"},{"type":"object","properties":{"rangeColors":{"type":"array","items":{"$ref":"#/components/schemas/ColorRange"}},"outOfRangeColor":{"type":"string"},"showRangeThresholds":{"type":"boolean"},"rangeThreshold":{"$ref":"#/components/schemas/TimeSeriesChartThreshold"},"fillArea":{"type":"boolean"},"fillAreaOpacity":{"type":"number","format":"float"},"lineSettings":{"$ref":"#/components/schemas/LineSeriesSettings"},"rangeUnits":{"type":"string"},"rangeDecimals":{"type":"integer","format":"int32"}}}]},"ReportRequest":{"type":"object","properties":{"reportTemplateId":{"$ref":"#/components/schemas/ReportTemplateId","description":"Json object representing the report template id."},"reportTemplateConfig":{"description":"Json object representing the report template config.","oneOf":[{"$ref":"#/components/schemas/CsvReportTemplateConfig"},{"$ref":"#/components/schemas/PdfReportTemplateConfig"}]},"timezone":{"type":"string","description":"Timezone used for report generation.","example":"Europe/Kiev"},"userId":{"type":"string","description":"A string value representing the user id.","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"makePublic":{"type":"boolean","description":"A boolean value indicating whether the generated report should be made public.","example":false},"originator":{"description":"Json object representing the originator id.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"targets":{"type":"array","items":{"type":"string","format":"uuid"}},"notificationTemplateId":{"$ref":"#/components/schemas/NotificationTemplateId"}}},"ReportTemplateConfig":{"type":"object","discriminator":{"propertyName":"format","mapping":{"PDF":"#/components/schemas/PdfReportTemplateConfig","CSV":"#/components/schemas/CsvReportTemplateConfig"}},"properties":{"namePattern":{"type":"string"},"timeDataPattern":{"type":"string"},"format":{"$ref":"#/components/schemas/TbReportFormat","description":"Report format"},"entityAliases":{"type":"array","items":{"$ref":"#/components/schemas/EntityAlias"}},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}},"components":{"type":"array","items":{"$ref":"#/components/schemas/ReportComponent"}}},"required":["format"]},"ReportTimeSeriesChartSettings":{"type":"object","properties":{"showTitle":{"type":"boolean"},"title":{"type":"string"},"titleFont":{"$ref":"#/components/schemas/Font"},"titleColor":{"type":"string"},"titleAlignment":{"$ref":"#/components/schemas/TextAlignment"},"stack":{"type":"boolean"},"comparisonEnabled":{"type":"boolean"},"timeForComparison":{"$ref":"#/components/schemas/ComparisonDuration"},"comparisonCustomIntervalValue":{"type":"integer","format":"int64"},"showLegend":{"type":"boolean"},"legendColumnTitleFont":{"$ref":"#/components/schemas/Font"},"legendColumnTitleColor":{"type":"string"},"legendLabelFont":{"$ref":"#/components/schemas/Font"},"legendLabelColor":{"type":"string"},"legendValueFont":{"$ref":"#/components/schemas/Font"},"legendValueColor":{"type":"string"},"xaxis":{"$ref":"#/components/schemas/TimeSeriesChartXAxisSettings"},"yaxes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TimeSeriesChartYAxisSettings"}},"thresholds":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesChartThreshold"}},"grid":{"$ref":"#/components/schemas/TimeSeriesChartGridSettings"},"yAxes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TimeSeriesChartYAxisSettings"}},"xAxis":{"$ref":"#/components/schemas/TimeSeriesChartXAxisSettings"},"barWidthSettings":{"$ref":"#/components/schemas/TimeSeriesChartBarWidthSettings"},"noAggregationBarWidthSettings":{"$ref":"#/components/schemas/TimeSeriesChartNoAggregationBarWidthSettings"},"states":{"type":"array","items":{"$ref":"#/components/schemas/TimeSeriesChartStateSettings"}},"comparisonXAxis":{"$ref":"#/components/schemas/TimeSeriesChartXAxisSettings"},"legendConfig":{"$ref":"#/components/schemas/LegendConfig"}}},"RichTextComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"value":{"type":"string"}}}],"required":["type"]},"SchedulerEventFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"originator":{"$ref":"#/components/schemas/AliasEntityId"},"eventType":{"type":"string"},"originatorStateEntity":{"type":"boolean"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"}}}]},"SimpleValueSourceConfig":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ValueSourceType"},"value":{"type":"number","format":"double"},"latestKeyType":{"type":"string"},"latestKey":{"type":"string"},"entityKeyType":{"type":"string"},"entityAlias":{"type":"string"},"entityKey":{"type":"string"}}},"SingleEntityFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"singleEntity":{"$ref":"#/components/schemas/AliasEntityId"}}}]},"SplitViewComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"leftView":{"$ref":"#/components/schemas/ReportComponent"},"rightView":{"$ref":"#/components/schemas/ReportComponent"},"splitPosition":{"type":"number","format":"float"},"splitGap":{"type":"integer","format":"int32"},"leftVerticalAlignment":{"$ref":"#/components/schemas/VerticalAlignment"},"rightVerticalAlignment":{"$ref":"#/components/schemas/VerticalAlignment"}}}],"required":["type"]},"StateEntityFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"}}}]},"StateEntityOwnerFilter":{"allOf":[{"$ref":"#/components/schemas/EntityFilter"},{"type":"object","properties":{"singleEntity":{"$ref":"#/components/schemas/AliasEntityId"},"defaultStateEntity":{"$ref":"#/components/schemas/AliasEntityId"}}}]},"StringFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/KeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/StringOperation"},"value":{"$ref":"#/components/schemas/FilterPredicateValueString","description":"The value associated with the filter predicate"},"ignoreCase":{"type":"boolean"}}}]},"StringOperation":{"type":"string","enum":["EQUAL","NOT_EQUAL","STARTS_WITH","ENDS_WITH","CONTAINS","NOT_CONTAINS","IN","NOT_IN"]},"SubReportComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"templateId":{"$ref":"#/components/schemas/ReportTemplateId"},"avoidPageBreakInside":{"type":"boolean"}}}],"required":["type"]},"TableSortDirection":{"type":"string","enum":["ASC","DESC"]},"TableSortOrder":{"type":"object","properties":{"column":{"type":"string"},"direction":{"$ref":"#/components/schemas/TableSortDirection"}}},"TextAlignment":{"type":"string","enum":["center","right","left","justify"]},"ThresholdLabelPosition":{"type":"string","enum":["start","middle","end","insideStart","insideStartTop","insideStartBottom","insideMiddle","insideMiddleTop","insideMiddleBottom","insideEnd","insideEndTop","insideEndBottom"]},"TimeSeriesChartBarWidth":{"type":"object","properties":{"relative":{"type":"boolean"},"relativeWidth":{"type":"number","format":"double"},"absoluteWidth":{"type":"number","format":"double"}}},"TimeSeriesChartBarWidthSettings":{"type":"object","properties":{"barGap":{"type":"number","format":"double"},"intervalGap":{"type":"number","format":"double"}}},"TimeSeriesChartGridSettings":{"type":"object","properties":{"show":{"type":"boolean"},"backgroundColor":{"type":"string"},"borderWidth":{"type":"number","format":"float"},"borderColor":{"type":"string"}}},"TimeSeriesChartKeySettings":{"allOf":[{"$ref":"#/components/schemas/DataKeySettings"},{"type":"object","properties":{"showInLegend":{"type":"boolean"},"seriesType":{"$ref":"#/components/schemas/TimeSeriesChartSeriesType"},"lineSettings":{"$ref":"#/components/schemas/LineSeriesSettings"},"barSettings":{"$ref":"#/components/schemas/BarSeriesSettings"},"comparisonSettings":{"$ref":"#/components/schemas/DataKeyComparisonSettings"},"yaxisId":{"type":"string"},"yAxisId":{"type":"string"}}}],"required":["type"]},"TimeSeriesChartNoAggregationBarWidthSettings":{"type":"object","properties":{"strategy":{"$ref":"#/components/schemas/TimeSeriesChartNoAggregationBarWidthStrategy"},"groupWidth":{"$ref":"#/components/schemas/TimeSeriesChartBarWidth"},"barWidth":{"$ref":"#/components/schemas/TimeSeriesChartBarWidth"}}},"TimeSeriesChartNoAggregationBarWidthStrategy":{"type":"string","enum":["group","separate"]},"TimeSeriesChartSeriesType":{"type":"string","enum":["line","bar"]},"TimeSeriesChartStateSettings":{"type":"object","properties":{"label":{"type":"string"},"value":{"type":"number","format":"double"},"sourceType":{"$ref":"#/components/schemas/TimeSeriesChartStateSourceType"},"sourceRangeFrom":{"type":"number","format":"double"},"sourceRangeTo":{"type":"number","format":"double"},"sourceValue":{"$ref":"#/components/schemas/JsonNode"}}},"TimeSeriesChartStateSourceType":{"type":"string","enum":["constant","range"]},"TimeSeriesChartThreshold":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ValueSourceType"},"value":{"type":"number","format":"double"},"latestKeyType":{"type":"string"},"latestKey":{"type":"string"},"entityKeyType":{"type":"string"},"entityAlias":{"type":"string"},"entityKey":{"type":"string"},"units":{"type":"string"},"decimals":{"type":"integer","format":"int32"},"lineColor":{"type":"string"},"lineType":{"$ref":"#/components/schemas/ChartLineType"},"lineWidth":{"type":"number","format":"float"},"startSymbol":{"$ref":"#/components/schemas/ChartShape"},"startSymbolSize":{"type":"number","format":"float"},"endSymbol":{"$ref":"#/components/schemas/ChartShape"},"endSymbolSize":{"type":"number","format":"float"},"showLabel":{"type":"boolean"},"labelPosition":{"$ref":"#/components/schemas/ThresholdLabelPosition"},"labelFont":{"$ref":"#/components/schemas/Font"},"labelColor":{"type":"string"},"enableLabelBackground":{"type":"boolean"},"labelBackground":{"type":"string"},"yaxisId":{"type":"string"},"yAxisId":{"type":"string"}}},"TimeSeriesChartXAxisSettings":{"type":"object","properties":{"show":{"type":"boolean"},"label":{"type":"string"},"labelFont":{"$ref":"#/components/schemas/Font"},"labelColor":{"type":"string"},"position":{"$ref":"#/components/schemas/AxisPosition"},"showTickLabels":{"type":"boolean"},"tickLabelFont":{"$ref":"#/components/schemas/Font"},"tickLabelColor":{"type":"string"},"showTicks":{"type":"boolean"},"ticksColor":{"type":"string"},"showLine":{"type":"boolean"},"lineColor":{"type":"string"},"showSplitLines":{"type":"boolean"},"splitLinesColor":{"type":"string"},"ticksFormat":{"type":"object","additionalProperties":{"type":"string"}}}},"TimeSeriesChartYAxisSettings":{"type":"object","properties":{"show":{"type":"boolean"},"label":{"type":"string"},"labelFont":{"$ref":"#/components/schemas/Font"},"labelColor":{"type":"string"},"position":{"$ref":"#/components/schemas/AxisPosition"},"showTickLabels":{"type":"boolean"},"tickLabelFont":{"$ref":"#/components/schemas/Font"},"tickLabelColor":{"type":"string"},"showTicks":{"type":"boolean"},"ticksColor":{"type":"string"},"showLine":{"type":"boolean"},"lineColor":{"type":"string"},"showSplitLines":{"type":"boolean"},"splitLinesColor":{"type":"string"},"id":{"type":"string"},"order":{"type":"integer","format":"int32"},"units":{"type":"string"},"decimals":{"type":"integer","format":"int32"},"interval":{"type":"number","format":"double"},"splitNumber":{"type":"integer","format":"int32"},"min":{"$ref":"#/components/schemas/SimpleValueSourceConfig"},"max":{"$ref":"#/components/schemas/SimpleValueSourceConfig"}}},"TimeWindowConfiguration":{"type":"object","properties":{"history":{"$ref":"#/components/schemas/History"},"aggregation":{"$ref":"#/components/schemas/AggregationConfiguration"},"timezone":{"type":"string"}}},"TimeseriesChartComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"widthType":{"$ref":"#/components/schemas/ImageWidthType"},"customWidth":{"type":"integer","format":"int32"},"alignment":{"$ref":"#/components/schemas/ImageAlignment"},"height":{"type":"integer","format":"int32"},"timewindow":{"$ref":"#/components/schemas/TimeWindowConfiguration"},"timeSeriesChartSettings":{"oneOf":[{"$ref":"#/components/schemas/ReportTimeSeriesChartSettings"},{"$ref":"#/components/schemas/ReportBarChartWithLabelsSettings"},{"$ref":"#/components/schemas/ReportRangeChartSettings"}]}}}],"required":["type"]},"TimeseriesTableComponent":{"allOf":[{"$ref":"#/components/schemas/ReportComponent"},{"type":"object","properties":{"dataSources":{"type":"array","items":{"$ref":"#/components/schemas/DataSource"}},"margins":{"$ref":"#/components/schemas/Insets"},"paddings":{"$ref":"#/components/schemas/Insets"},"background":{"type":"string"},"borderWidth":{"type":"integer","format":"int32"},"borderRadius":{"type":"integer","format":"int32"},"borderColor":{"type":"string"},"showTableHeading":{"type":"boolean"},"tableHeading":{"$ref":"#/components/schemas/Heading"},"tableSortOrder":{"$ref":"#/components/schemas/TableSortOrder"},"timewindow":{"$ref":"#/components/schemas/TimeWindowConfiguration"},"showTimestamp":{"type":"boolean"},"timestampLabel":{"type":"string"},"timestampPattern":{"type":"string"},"timestampColumnSettings":{"$ref":"#/components/schemas/ColumnSettings"}}}],"required":["type"]},"ValueSourceType":{"type":"string","enum":["constant","latestKey","entity"]},"VerticalAlignment":{"type":"string","enum":["bottom","top","middle"]},"ActionType":{"type":"string","enum":["ADDED","DELETED","UPDATED","ATTRIBUTES_UPDATED","ATTRIBUTES_DELETED","TIMESERIES_UPDATED","TIMESERIES_DELETED","RPC_CALL","CREDENTIALS_UPDATED","ASSIGNED_TO_CUSTOMER","UNASSIGNED_FROM_CUSTOMER","CHANGE_OWNER","ACTIVATED","SUSPENDED","CREDENTIALS_READ","ATTRIBUTES_READ","RELATION_ADD_OR_UPDATE","RELATION_DELETED","RELATIONS_DELETED","ALARM_ACK","ALARM_CLEAR","ALARM_DELETE","ALARM_ASSIGNED","ALARM_UNASSIGNED","ADDED_TO_ENTITY_GROUP","REMOVED_FROM_ENTITY_GROUP","REST_API_RULE_ENGINE_CALL","MADE_PUBLIC","MADE_PRIVATE","LOGIN","LOGOUT","LOCKOUT","ASSIGNED_FROM_TENANT","ASSIGNED_TO_TENANT","PROVISION_SUCCESS","PROVISION_FAILURE","ASSIGNED_TO_EDGE","UNASSIGNED_FROM_EDGE","ADDED_COMMENT","UPDATED_COMMENT","DELETED_COMMENT","SMS_SENT","SUBSCRIPTION_CREATED","SUBSCRIPTION_UPDATED","SUBSCRIPTION_CANCELED","SUBSCRIPTION_PLAN_UPDATED","SUBSCRIPTION_COUPON_APPLIED"]},"AddonAccessErrorNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"addonType":{"$ref":"#/components/schemas/AddonType"},"addonNameOverride":{"type":"string"},"userEmail":{"type":"string"},"checkConfigurationActionLabel":{"type":"string"},"checkConfigurationLink":{"type":"string"},"baseUrl":{"type":"string"}}}]},"AddonAccessRequestNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"addonType":{"$ref":"#/components/schemas/AddonType"},"addonNameOverride":{"type":"string"},"userEmail":{"type":"string"},"enableAddonActionLabel":{"type":"string"},"enableAddonLink":{"type":"string"},"baseUrl":{"type":"string"}}}]},"AddonType":{"type":"string","enum":["EDGE","TRENDZ","WHITE_LABELING"]},"AlarmAssignmentNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"action":{"type":"string"},"assigneeEmail":{"type":"string"},"assigneeFirstName":{"type":"string"},"assigneeLastName":{"type":"string"},"assigneeId":{"$ref":"#/components/schemas/UserId"},"userEmail":{"type":"string"},"userFirstName":{"type":"string"},"userLastName":{"type":"string"},"alarmType":{"type":"string"},"alarmId":{"type":"string","format":"uuid"},"alarmOriginator":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"alarmOriginatorName":{"type":"string"},"alarmOriginatorLabel":{"type":"string"},"alarmSeverity":{"$ref":"#/components/schemas/AlarmSeverity"},"alarmStatus":{"$ref":"#/components/schemas/AlarmStatus"},"alarmCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"AlarmCommentNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"comment":{"type":"string"},"action":{"type":"string"},"userEmail":{"type":"string"},"userFirstName":{"type":"string"},"userLastName":{"type":"string"},"alarmType":{"type":"string"},"alarmId":{"type":"string","format":"uuid"},"alarmOriginator":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"alarmOriginatorName":{"type":"string"},"alarmOriginatorLabel":{"type":"string"},"alarmSeverity":{"$ref":"#/components/schemas/AlarmSeverity"},"alarmStatus":{"$ref":"#/components/schemas/AlarmStatus"},"alarmCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"AlarmNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"alarmType":{"type":"string"},"action":{"type":"string"},"alarmId":{"type":"string","format":"uuid"},"alarmOriginator":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"alarmOriginatorName":{"type":"string"},"alarmOriginatorLabel":{"type":"string"},"alarmSeverity":{"$ref":"#/components/schemas/AlarmSeverity"},"alarmStatus":{"$ref":"#/components/schemas/AlarmStatus"},"acknowledged":{"type":"boolean"},"cleared":{"type":"boolean"},"alarmCustomerId":{"$ref":"#/components/schemas/CustomerId"},"details":{"type":"object","additionalProperties":{"type":"string"}},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"AlarmStatus":{"type":"string","enum":["ACTIVE_UNACK","ACTIVE_ACK","CLEARED_UNACK","CLEARED_ACK"]},"ApiFeature":{"type":"string","enum":["TRANSPORT","DB","RE","JS","TBEL","EMAIL","SMS","ALARM","REPORT","AI"]},"ApiUsageLimitNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"feature":{"$ref":"#/components/schemas/ApiFeature"},"recordKey":{"$ref":"#/components/schemas/ApiUsageRecordKey"},"status":{"$ref":"#/components/schemas/ApiUsageStateValue"},"limit":{"type":"string"},"currentValue":{"type":"string"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"tenantName":{"type":"string"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"}}}]},"ApiUsageRecordKey":{"type":"string","enum":["TRANSPORT_MSG_COUNT","TRANSPORT_DP_COUNT","STORAGE_DP_COUNT","RE_EXEC_COUNT","JS_EXEC_COUNT","TBEL_EXEC_COUNT","EMAIL_EXEC_COUNT","SMS_EXEC_COUNT","CREATED_ALARMS_COUNT","ACTIVE_DEVICES","INACTIVE_DEVICES","GENERATED_REPORTS_COUNT","AI_CREDITS_COUNT"]},"ApiUsageStateValue":{"type":"string","enum":["ENABLED","WARNING","DISABLED"]},"Button":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string"},"linkType":{"$ref":"#/components/schemas/LinkType"},"link":{"type":"string"},"dashboardId":{"type":"string","format":"uuid"},"dashboardState":{"type":"string"},"setEntityIdInState":{"type":"boolean"}}},"CfReprocessingJobConfiguration":{"allOf":[{"$ref":"#/components/schemas/JobConfiguration"},{"type":"object","properties":{"calculatedFieldId":{"$ref":"#/components/schemas/CalculatedFieldId"},"calculatedFieldName":{"type":"string"},"startTs":{"type":"integer","format":"int64"},"endTs":{"type":"integer","format":"int64"}}}],"required":["calculatedFieldId","tasksKey"]},"CfReprocessingJobResult":{"allOf":[{"$ref":"#/components/schemas/JobResult"}]},"CfReprocessingTaskFailure":{"type":"object","properties":{"error":{"type":"string"},"entityInfo":{"$ref":"#/components/schemas/EntityInfo"}}},"CfReprocessingTaskResult":{"allOf":[{"$ref":"#/components/schemas/TaskResult"},{"type":"object","properties":{"failure":{"$ref":"#/components/schemas/CfReprocessingTaskFailure"}}}]},"ComponentLifecycleEvent":{"type":"string","enum":["CREATED","STARTED","ACTIVATED","SUSPENDED","UPDATED","STOPPED","DELETED","FAILED","DEACTIVATED","RELATION_UPDATED","RELATION_DELETED"]},"DebugSettings":{"type":"object","properties":{"failuresEnabled":{"type":"boolean","description":"Debug failures. ","example":false},"allEnabled":{"type":"boolean","description":"Debug All. Used as a trigger for updating debugAllUntil.","example":false},"allEnabledUntil":{"type":"integer","format":"int64","description":"Timestamp of the end time for the processing debug events."}}},"DeliveryMethodNotificationTemplate":{"type":"object","description":"Base template for different delivery methods","discriminator":{"propertyName":"method","mapping":{"WEB":"#/components/schemas/WebDeliveryMethodNotificationTemplate","EMAIL":"#/components/schemas/EmailDeliveryMethodNotificationTemplate","SMS":"#/components/schemas/SmsDeliveryMethodNotificationTemplate","SLACK":"#/components/schemas/SlackDeliveryMethodNotificationTemplate","MICROSOFT_TEAMS":"#/components/schemas/MicrosoftTeamsDeliveryMethodNotificationTemplate","MOBILE_APP":"#/components/schemas/MobileAppDeliveryMethodNotificationTemplate"}},"properties":{"enabled":{"type":"boolean"},"body":{"type":"string","minLength":1},"method":{"type":"string"}},"required":["body","method"]},"DeviceActivityNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"eventType":{"type":"string"},"deviceId":{"type":"string","format":"uuid"},"deviceName":{"type":"string"},"deviceLabel":{"type":"string"},"deviceType":{"type":"string"},"deviceCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"DummyJobConfiguration":{"allOf":[{"$ref":"#/components/schemas/JobConfiguration"},{"type":"object","properties":{"taskProcessingTimeMs":{"type":"integer","format":"int64"},"successfulTasksCount":{"type":"integer","format":"int32"},"failedTasksCount":{"type":"integer","format":"int32"},"permanentlyFailedTasksCount":{"type":"integer","format":"int32"},"errors":{"type":"array","items":{"type":"string"}},"retries":{"type":"integer","format":"int32"},"taskProcessingTimeoutMs":{"type":"integer","format":"int64"},"generalError":{"type":"string"},"submittedTasksBeforeGeneralError":{"type":"integer","format":"int32"}}}],"description":"Dummy job configuration","required":["tasksKey"]},"DummyJobResult":{"allOf":[{"$ref":"#/components/schemas/JobResult"}]},"DummyTaskFailure":{"type":"object","properties":{"error":{"type":"string"},"number":{"type":"integer","format":"int32"},"failAlways":{"type":"boolean"}}},"DummyTaskResult":{"allOf":[{"$ref":"#/components/schemas/TaskResult"},{"type":"object","properties":{"failure":{"$ref":"#/components/schemas/DummyTaskFailure"}}}]},"EdgeCommunicationFailureNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"edgeId":{"$ref":"#/components/schemas/EdgeId"},"edgeName":{"type":"string"},"failureMsg":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"}}}]},"EdgeConnectionNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"eventType":{"type":"string"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"edgeId":{"$ref":"#/components/schemas/EdgeId"},"edgeName":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"}}}]},"EmailDeliveryMethodNotificationTemplate":{"allOf":[{"$ref":"#/components/schemas/DeliveryMethodNotificationTemplate"},{"type":"object","properties":{"subject":{"type":"string","minLength":1}}}],"required":["body","subject"]},"EntitiesLimitIncreaseRequestNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"userEmail":{"type":"string"},"increaseLimitActionLabel":{"type":"string"},"increaseLimitLink":{"type":"string"},"baseUrl":{"type":"string"}}}]},"EntitiesLimitNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"currentCount":{"type":"integer","format":"int64"},"limit":{"type":"integer","format":"int64"},"percents":{"type":"integer","format":"int32"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"tenantName":{"type":"string"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"}}}]},"EntityActionNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"entityName":{"type":"string"},"actionType":{"$ref":"#/components/schemas/ActionType"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"userId":{"type":"string","format":"uuid"},"userTitle":{"type":"string"},"userEmail":{"type":"string"},"userFirstName":{"type":"string"},"userLastName":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"EntityInfo":{"type":"object","properties":{"id":{"description":"JSON object with the entity Id. ","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"name":{"type":"string","description":"Entity Name"}}},"GeneralNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"string"}},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"HousekeeperTaskType":{"type":"string","enum":["DELETE_ATTRIBUTES","DELETE_TELEMETRY","DELETE_LATEST_TS","DELETE_TS_HISTORY","DELETE_EVENTS","DELETE_ALARMS","DELETE_ALARM_COMMENTS","UNASSIGN_ALARMS","DELETE_TENANT_ENTITIES","DELETE_ENTITIES","CLEANUP_ENTITIES","DELETE_CALCULATED_FIELDS","DELETE_JOBS","DELETE_AI_USER_DATA","DELETE_AI_TENANT_DATA"]},"IntegrationLifecycleEventNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"integrationId":{"$ref":"#/components/schemas/IntegrationId"},"integrationType":{"type":"string"},"integrationName":{"type":"string"},"action":{"type":"string"},"eventType":{"$ref":"#/components/schemas/ComponentLifecycleEvent"},"error":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"Job":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/JobId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"type":{"$ref":"#/components/schemas/JobType"},"key":{"type":"string","minLength":1},"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"entityName":{"type":"string"},"status":{"$ref":"#/components/schemas/JobStatus"},"configuration":{"oneOf":[{"$ref":"#/components/schemas/CfReprocessingJobConfiguration"},{"$ref":"#/components/schemas/DummyJobConfiguration"},{"$ref":"#/components/schemas/ReportJobConfiguration"}]},"result":{"oneOf":[{"$ref":"#/components/schemas/CfReprocessingJobResult"},{"$ref":"#/components/schemas/DummyJobResult"},{"$ref":"#/components/schemas/ReportJobResult"}]},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["configuration","entityId","key","result","status","tenantId","type"]},"JobConfiguration":{"type":"object","discriminator":{"propertyName":"type","mapping":{"DUMMY":"#/components/schemas/DummyJobConfiguration","CF_REPROCESSING":"#/components/schemas/CfReprocessingJobConfiguration","REPORT":"#/components/schemas/ReportJobConfiguration"}},"properties":{"tasksKey":{"type":"string","minLength":1},"toReprocess":{"type":"array","items":{"$ref":"#/components/schemas/TaskResult"}},"type":{"type":"string"}},"required":["tasksKey","type"]},"JobResult":{"type":"object","description":"Job execution result","discriminator":{"propertyName":"jobType","mapping":{"DUMMY":"#/components/schemas/DummyJobResult","CF_REPROCESSING":"#/components/schemas/CfReprocessingJobResult","REPORT":"#/components/schemas/ReportJobResult"}},"properties":{"successfulCount":{"type":"integer","format":"int32","description":"Count of successfully completed tasks"},"failedCount":{"type":"integer","format":"int32","description":"Count of failed tasks"},"discardedCount":{"type":"integer","format":"int32","description":"Count of discarded tasks"},"totalCount":{"type":"integer","format":"int32","description":"Total number of tasks, set when all tasks are submitted"},"results":{"type":"array","items":{"$ref":"#/components/schemas/TaskResult"}},"generalError":{"type":"string","description":"General error message if the job failed"},"startTs":{"type":"integer","format":"int64","description":"Timestamp of the job start, in milliseconds"},"finishTs":{"type":"integer","format":"int64","description":"Timestamp of the job finish, in milliseconds"},"cancellationTs":{"type":"integer","format":"int64","description":"Timestamp of the job cancellation, in milliseconds"},"jobType":{"type":"string"}},"required":["jobType"]},"JobStatus":{"type":"string","enum":["QUEUED","PENDING","RUNNING","COMPLETED","FAILED","CANCELLED"]},"JobType":{"type":"string","enum":["CF_REPROCESSING","REPORT","DUMMY"]},"LimitedApi":{"type":"string","enum":["ENTITY_EXPORT","ENTITY_IMPORT","NOTIFICATION_REQUESTS","NOTIFICATION_REQUESTS_PER_RULE","REST_REQUESTS_PER_TENANT","REST_REQUESTS_PER_CUSTOMER","WS_UPDATES_PER_SESSION","CASSANDRA_WRITE_QUERIES_CORE","CASSANDRA_READ_QUERIES_CORE","CASSANDRA_WRITE_QUERIES_RULE_ENGINE","CASSANDRA_READ_QUERIES_RULE_ENGINE","CASSANDRA_READ_QUERIES_MONOLITH","CASSANDRA_WRITE_QUERIES_MONOLITH","CASSANDRA_QUERIES","EDGE_EVENTS","EDGE_EVENTS_PER_EDGE","EDGE_UPLINK_MESSAGES","EDGE_UPLINK_MESSAGES_PER_EDGE","AGENT_EVENTS","AGENT_EVENTS_PER_AGENT","AGENT_LOG_CHUNKS","AGENT_LOG_CHUNKS_PER_AGENT","INTEGRATION_MSGS_PER_TENANT","INTEGRATION_MSGS_PER_DEVICE","INTEGRATION_MSGS_PER_ASSET","INTEGRATION_EVENTS","CONVERTER_EVENTS","REPORTS","PASSWORD_RESET","TWO_FA_VERIFICATION_CODE_SEND","TWO_FA_VERIFICATION_CODE_CHECK","TRANSPORT_MESSAGES_PER_TENANT","TRANSPORT_MESSAGES_PER_DEVICE","TRANSPORT_MESSAGES_PER_GATEWAY","TRANSPORT_MESSAGES_PER_GATEWAY_DEVICE","EMAILS","WS_SUBSCRIPTIONS","CALCULATED_FIELD_DEBUG_EVENTS","TRENDZ_PUBLIC_SYNC","AI_CHAT_REQUESTS"]},"LinkType":{"type":"string","enum":["LINK","DASHBOARD"]},"MicrosoftTeamsDeliveryMethodNotificationTemplate":{"allOf":[{"$ref":"#/components/schemas/DeliveryMethodNotificationTemplate"},{"type":"object","properties":{"subject":{"type":"string"},"themeColor":{"type":"string"},"button":{"$ref":"#/components/schemas/Button"}}}],"required":["body"]},"MobileAppDeliveryMethodNotificationTemplate":{"allOf":[{"$ref":"#/components/schemas/DeliveryMethodNotificationTemplate"},{"type":"object","properties":{"subject":{"type":"string","description":"Subject line for the mobile notification","example":"New Message Received","minLength":1},"additionalConfig":{"$ref":"#/components/schemas/JsonNode","description":"Additional JSON configuration for web buttons/actions"}}}],"required":["body","subject"]},"NewPlatformVersionNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"latestVersion":{"type":"string"},"latestVersionReleaseNotesUrl":{"type":"string"},"upgradeInstructionsUrl":{"type":"string"},"currentVersion":{"type":"string"},"currentVersionReleaseNotesUrl":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"NotificationInfo":{"type":"object","discriminator":{"propertyName":"type","mapping":{"org.thingsboard.server.common.data.notification.info.AddonAccessErrorNotificationInfo":"#/components/schemas/AddonAccessErrorNotificationInfo","org.thingsboard.server.common.data.notification.info.AddonAccessRequestNotificationInfo":"#/components/schemas/AddonAccessRequestNotificationInfo","org.thingsboard.server.common.data.notification.info.AlarmAssignmentNotificationInfo":"#/components/schemas/AlarmAssignmentNotificationInfo","org.thingsboard.server.common.data.notification.info.AlarmCommentNotificationInfo":"#/components/schemas/AlarmCommentNotificationInfo","org.thingsboard.server.common.data.notification.info.AlarmNotificationInfo":"#/components/schemas/AlarmNotificationInfo","org.thingsboard.server.common.data.notification.info.ApiUsageLimitNotificationInfo":"#/components/schemas/ApiUsageLimitNotificationInfo","org.thingsboard.server.common.data.notification.info.DeviceActivityNotificationInfo":"#/components/schemas/DeviceActivityNotificationInfo","org.thingsboard.server.common.data.notification.info.EdgeCommunicationFailureNotificationInfo":"#/components/schemas/EdgeCommunicationFailureNotificationInfo","org.thingsboard.server.common.data.notification.info.EdgeConnectionNotificationInfo":"#/components/schemas/EdgeConnectionNotificationInfo","org.thingsboard.server.common.data.notification.info.EntitiesLimitIncreaseRequestNotificationInfo":"#/components/schemas/EntitiesLimitIncreaseRequestNotificationInfo","org.thingsboard.server.common.data.notification.info.EntitiesLimitNotificationInfo":"#/components/schemas/EntitiesLimitNotificationInfo","org.thingsboard.server.common.data.notification.info.EntityActionNotificationInfo":"#/components/schemas/EntityActionNotificationInfo","org.thingsboard.server.common.data.notification.info.GeneralNotificationInfo":"#/components/schemas/GeneralNotificationInfo","org.thingsboard.server.common.data.notification.info.IntegrationLifecycleEventNotificationInfo":"#/components/schemas/IntegrationLifecycleEventNotificationInfo","org.thingsboard.server.common.data.notification.info.NewPlatformVersionNotificationInfo":"#/components/schemas/NewPlatformVersionNotificationInfo","org.thingsboard.server.common.data.notification.info.PlanUpgradeRequestNotificationInfo":"#/components/schemas/PlanUpgradeRequestNotificationInfo","org.thingsboard.server.common.data.notification.info.RateLimitsNotificationInfo":"#/components/schemas/RateLimitsNotificationInfo","org.thingsboard.server.common.data.notification.info.ReportGeneratedNotificationInfo":"#/components/schemas/ReportGeneratedNotificationInfo","org.thingsboard.server.common.data.notification.info.ResourcesShortageNotificationInfo":"#/components/schemas/ResourcesShortageNotificationInfo","org.thingsboard.server.common.data.notification.info.RuleEngineComponentLifecycleEventNotificationInfo":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationInfo","org.thingsboard.server.common.data.notification.info.RuleEngineOriginatedNotificationInfo":"#/components/schemas/RuleEngineOriginatedNotificationInfo","org.thingsboard.server.common.data.notification.info.TaskProcessingFailureNotificationInfo":"#/components/schemas/TaskProcessingFailureNotificationInfo","org.thingsboard.server.common.data.notification.info.UserActivatedNotificationInfo":"#/components/schemas/UserActivatedNotificationInfo","org.thingsboard.server.common.data.notification.info.UserRegisteredNotificationInfo":"#/components/schemas/UserRegisteredNotificationInfo"}},"properties":{"dashboardId":{"$ref":"#/components/schemas/DashboardId"},"stateEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"type":{"type":"string"}},"required":["type"]},"NotificationRequest":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1},"templateId":{"$ref":"#/components/schemas/NotificationTemplateId"},"template":{"$ref":"#/components/schemas/NotificationTemplate"},"info":{"oneOf":[{"$ref":"#/components/schemas/AddonAccessErrorNotificationInfo"},{"$ref":"#/components/schemas/AddonAccessRequestNotificationInfo"},{"$ref":"#/components/schemas/AlarmAssignmentNotificationInfo"},{"$ref":"#/components/schemas/AlarmCommentNotificationInfo"},{"$ref":"#/components/schemas/AlarmNotificationInfo"},{"$ref":"#/components/schemas/ApiUsageLimitNotificationInfo"},{"$ref":"#/components/schemas/DeviceActivityNotificationInfo"},{"$ref":"#/components/schemas/EdgeCommunicationFailureNotificationInfo"},{"$ref":"#/components/schemas/EdgeConnectionNotificationInfo"},{"$ref":"#/components/schemas/EntitiesLimitIncreaseRequestNotificationInfo"},{"$ref":"#/components/schemas/EntitiesLimitNotificationInfo"},{"$ref":"#/components/schemas/EntityActionNotificationInfo"},{"$ref":"#/components/schemas/GeneralNotificationInfo"},{"$ref":"#/components/schemas/IntegrationLifecycleEventNotificationInfo"},{"$ref":"#/components/schemas/NewPlatformVersionNotificationInfo"},{"$ref":"#/components/schemas/PlanUpgradeRequestNotificationInfo"},{"$ref":"#/components/schemas/RateLimitsNotificationInfo"},{"$ref":"#/components/schemas/ReportGeneratedNotificationInfo"},{"$ref":"#/components/schemas/ResourcesShortageNotificationInfo"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationInfo"},{"$ref":"#/components/schemas/RuleEngineOriginatedNotificationInfo"},{"$ref":"#/components/schemas/TaskProcessingFailureNotificationInfo"},{"$ref":"#/components/schemas/UserActivatedNotificationInfo"},{"$ref":"#/components/schemas/UserRegisteredNotificationInfo"}]},"additionalConfig":{"$ref":"#/components/schemas/NotificationRequestConfig"},"originatorEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"ruleId":{"$ref":"#/components/schemas/NotificationRuleId"},"status":{"$ref":"#/components/schemas/NotificationRequestStatus"},"stats":{"$ref":"#/components/schemas/NotificationRequestStats"},"id":{"$ref":"#/components/schemas/NotificationRequestId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true}},"required":["targets"]},"NotificationRequestConfig":{"type":"object","properties":{"sendingDelayInSec":{"type":"integer","format":"int32","maximum":604800},"reports":{"type":"array","items":{"$ref":"#/components/schemas/ReportId"}}}},"NotificationRequestStats":{"type":"object","description":"Notification request processing statistics","properties":{"sent":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}},"errors":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"totalErrors":{"type":"integer","format":"int32"},"error":{"type":"string"},"totalSent":{"type":"integer","format":"int32"}}},"NotificationRequestStatus":{"type":"string","enum":["PROCESSING","SENT","SCHEDULED"]},"NotificationTemplate":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/NotificationTemplateId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"name":{"type":"string","minLength":1},"notificationType":{"$ref":"#/components/schemas/NotificationType"},"configuration":{"$ref":"#/components/schemas/NotificationTemplateConfig"}},"required":["configuration","name","notificationType"]},"NotificationTemplateConfig":{"type":"object","properties":{"deliveryMethodsTemplates":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/EmailDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/MicrosoftTeamsDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/MobileAppDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/SlackDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/SmsDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/WebDeliveryMethodNotificationTemplate"}]},"minProperties":1},"attachReport":{"type":"boolean"},"reportTemplateId":{"$ref":"#/components/schemas/ReportTemplateId"},"userId":{"$ref":"#/components/schemas/UserId"},"timezone":{"type":"string"},"makePublic":{"type":"boolean"}},"required":["deliveryMethodsTemplates"]},"NotificationType":{"type":"string","enum":["GENERAL","ALARM","DEVICE_ACTIVITY","ENTITY_ACTION","ALARM_COMMENT","RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT","ALARM_ASSIGNMENT","NEW_PLATFORM_VERSION","ENTITIES_LIMIT","ENTITIES_LIMIT_INCREASE_REQUEST","ADDON_ACCESS_REQUEST","ADDON_ACCESS_ERROR","PLAN_UPGRADE_REQUEST","API_USAGE_LIMIT","RULE_NODE","INTEGRATION_LIFECYCLE_EVENT","RATE_LIMITS","EDGE_CONNECTION","EDGE_COMMUNICATION_FAILURE","TASK_PROCESSING_FAILURE","RESOURCES_SHORTAGE","USER_ACTIVATED","USER_REGISTERED","REPORT_GENERATED"]},"PlanUpgradeRequestNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"planName":{"type":"string"},"userEmail":{"type":"string"},"upgradePlanLink":{"type":"string"},"baseUrl":{"type":"string"}}}]},"RateLimitsNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"tenantName":{"type":"string"},"api":{"$ref":"#/components/schemas/LimitedApi"},"limitLevel":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"limitLevelEntityName":{"type":"string"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"}}}]},"ReportGeneratedNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"reportFormat":{"$ref":"#/components/schemas/TbReportFormat"},"reportName":{"type":"string"},"userId":{"$ref":"#/components/schemas/UserId"},"reportPublicUrl":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"ReportJobConfiguration":{"allOf":[{"$ref":"#/components/schemas/JobConfiguration"},{"type":"object","properties":{"reportTemplateId":{"$ref":"#/components/schemas/ReportTemplateId"},"userId":{"$ref":"#/components/schemas/UserId"},"timezone":{"type":"string"},"makePublic":{"type":"boolean"},"targets":{"type":"array","items":{"type":"string","format":"uuid"}},"notificationTemplateId":{"$ref":"#/components/schemas/NotificationTemplateId"},"notificationRequests":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRequest"}},"originator":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"ruleNode":{"$ref":"#/components/schemas/RuleNode"},"outputTbMsgProto":{"type":"string"},"queueName":{"type":"string"},"schedulerEventInfo":{"$ref":"#/components/schemas/EntityInfo"}}}],"required":["tasksKey"]},"ReportJobResult":{"allOf":[{"$ref":"#/components/schemas/JobResult"},{"type":"object","properties":{"report":{"$ref":"#/components/schemas/Report"}}}]},"ReportTaskResult":{"allOf":[{"$ref":"#/components/schemas/TaskResult"},{"type":"object","properties":{"report":{"$ref":"#/components/schemas/Report"}}}]},"ResourcesShortageNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"resource":{"type":"string"},"usage":{"type":"integer","format":"int64"},"serviceId":{"type":"string"},"serviceType":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"RuleEngineComponentLifecycleEventNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"ruleChainId":{"$ref":"#/components/schemas/RuleChainId"},"ruleChainName":{"type":"string"},"componentId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"componentName":{"type":"string"},"action":{"type":"string"},"eventType":{"$ref":"#/components/schemas/ComponentLifecycleEvent"},"error":{"type":"string"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"RuleEngineOriginatedNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"msgOriginator":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"msgCustomerId":{"$ref":"#/components/schemas/CustomerId"},"msgType":{"type":"string"},"msgMetadata":{"type":"object","additionalProperties":{"type":"string"}},"msgData":{"type":"object","additionalProperties":{"type":"string"}},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"}}}]},"RuleNode":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/RuleNodeId","description":"JSON object with the Rule Node Id. Specify this field to update the Rule Node. Referencing non-existing Rule Node Id will cause error. Omit this field to create new rule node."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the rule node creation, in milliseconds","example":1609459200000,"readOnly":true},"ruleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"JSON object with the Rule Chain Id. ","readOnly":true},"type":{"type":"string","description":"Full Java Class Name of the rule node implementation. ","example":"com.mycompany.iot.rule.engine.ProcessingNode"},"name":{"type":"string","description":"User defined name of the rule node. Used on UI and for logging. ","example":"Process sensor reading"},"debugMode":{"type":"boolean","deprecated":true,"writeOnly":true},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"singletonMode":{"type":"boolean","description":"Enable/disable singleton mode. ","example":false},"queueName":{"type":"string","description":"Queue name. ","example":"Main"},"configurationVersion":{"type":"integer","format":"int32","description":"Version of rule node configuration. ","example":0},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON with the rule node configuration. Structure depends on the rule node implementation."},"externalId":{"$ref":"#/components/schemas/RuleNodeId"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the rule node. May include: 'layoutX' (number, X coordinate for visualization), 'layoutY' (number, Y coordinate for visualization), 'description' (string).","example":{"layoutX":320,"layoutY":160,"description":"Filter temperature data"}}}},"SlackDeliveryMethodNotificationTemplate":{"allOf":[{"$ref":"#/components/schemas/DeliveryMethodNotificationTemplate"}],"required":["body"]},"SmsDeliveryMethodNotificationTemplate":{"allOf":[{"$ref":"#/components/schemas/DeliveryMethodNotificationTemplate"}],"required":["body"]},"TaskProcessingFailureNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"taskType":{"$ref":"#/components/schemas/HousekeeperTaskType"},"taskDescription":{"type":"string"},"error":{"type":"string"},"attempt":{"type":"integer","format":"int32"},"affectedTenantId":{"$ref":"#/components/schemas/TenantId"},"affectedCustomerId":{"$ref":"#/components/schemas/CustomerId"},"affectedUserId":{"$ref":"#/components/schemas/UserId"}}}]},"TaskResult":{"type":"object","discriminator":{"propertyName":"jobType","mapping":{"CF_REPROCESSING":"#/components/schemas/CfReprocessingTaskResult","REPORT":"#/components/schemas/ReportTaskResult","DUMMY":"#/components/schemas/DummyTaskResult"}},"properties":{"key":{"type":"string"},"success":{"type":"boolean"},"discarded":{"type":"boolean"},"finishTs":{"type":"integer","format":"int64"},"error":{"type":"string"},"jobType":{"type":"string"}},"required":["jobType"]},"UserActivatedNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"userFullName":{"type":"string"},"userEmail":{"type":"string"}}}]},"UserRegisteredNotificationInfo":{"allOf":[{"$ref":"#/components/schemas/NotificationInfo"},{"type":"object","properties":{"userFullName":{"type":"string"},"userEmail":{"type":"string"}}}]},"WebDeliveryMethodNotificationTemplate":{"allOf":[{"$ref":"#/components/schemas/DeliveryMethodNotificationTemplate"},{"type":"object","properties":{"subject":{"type":"string","description":"Subject line for the web notification","example":"New Message Received","minLength":1},"additionalConfig":{"$ref":"#/components/schemas/JsonNode","description":"Additional JSON configuration for web buttons/actions"}}}],"required":["body","subject"]},"EntityRelation":{"type":"object","description":"A JSON value representing the relation.","properties":{"from":{"description":"JSON object with [from] Entity Id.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"to":{"description":"JSON object with [to] Entity Id.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"type":{"type":"string","description":"String value of relation type.","example":"Contains","minLength":1},"typeGroup":{"$ref":"#/components/schemas/RelationTypeGroup","description":"Represents the type group of the relation.","example":"COMMON"},"version":{"type":"integer","format":"int64"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the relation.","example":{"description":"Power supply connection"}}},"required":["from","to","type","typeGroup"]},"RelationTypeGroup":{"type":"string","enum":["COMMON","DASHBOARD","FROM_ENTITY_GROUP","RULE_CHAIN","RULE_NODE","EDGE","EDGE_AUTO_ASSIGN_RULE_CHAIN","AGENT"]},"ShareGroupRequest":{"type":"object","description":"The Share Group Request JSON","properties":{"ownerId":{"description":"In case 'allUserGroup' is set to true, this property specifies the owner of the user group 'All'. Either Tenant or Customer Id.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"allUserGroup":{"type":"boolean","description":"Indicate that the group should be shared with user group 'All' that belongs to Tenant or Customer (see 'ownerId' property description)."},"userGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"In case 'allUserGroup' is set to false, this property specifies the specific user group that the entity group should be shared with."},"readElseWrite":{"type":"boolean","description":"Used if 'roleIds' property is not present. if the value is 'true', creates role with read-only permissions. If the value is 'false', creates role with write permissions."},"roleIds":{"type":"array","description":"List of group role Ids that should be used to share the entity group with the user group. If not set, the platform will create new role (see 'readElseWrite' property description)","items":{"$ref":"#/components/schemas/RoleId"}}},"required":["allUserGroup"]},"Direction":{"type":"string","enum":["ASC","DESC"]},"EntityDataPageLink":{"type":"object","properties":{"pageSize":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"textSearch":{"type":"string"},"sortOrder":{"$ref":"#/components/schemas/EntityDataSortOrder"},"dynamic":{"type":"boolean"}}},"EntityDataQuery":{"type":"object","description":"Entity data query to find entities. Page size is capped at 100.","properties":{"entityFilter":{"oneOf":[{"$ref":"#/components/schemas/ApiUsageStateFilter"},{"$ref":"#/components/schemas/AssetSearchQueryFilter"},{"$ref":"#/components/schemas/AssetTypeFilter"},{"$ref":"#/components/schemas/DeviceSearchQueryFilter"},{"$ref":"#/components/schemas/DeviceTypeFilter"},{"$ref":"#/components/schemas/EdgeSearchQueryFilter"},{"$ref":"#/components/schemas/EdgeTypeFilter"},{"$ref":"#/components/schemas/EntitiesByGroupNameFilter"},{"$ref":"#/components/schemas/EntityGroupFilter"},{"$ref":"#/components/schemas/EntityGroupListFilter"},{"$ref":"#/components/schemas/EntityGroupNameFilter"},{"$ref":"#/components/schemas/EntityListFilter"},{"$ref":"#/components/schemas/EntityNameFilter"},{"$ref":"#/components/schemas/EntityTypeFilter"},{"$ref":"#/components/schemas/EntityViewSearchQueryFilter"},{"$ref":"#/components/schemas/EntityViewTypeFilter"},{"$ref":"#/components/schemas/RelationsQueryFilter"},{"$ref":"#/components/schemas/SchedulerEventFilter"},{"$ref":"#/components/schemas/SingleEntityFilter"},{"$ref":"#/components/schemas/StateEntityFilter"},{"$ref":"#/components/schemas/StateEntityOwnerFilter"}]},"keyFilters":{"type":"array","items":{"$ref":"#/components/schemas/KeyFilter"}},"keyFiltersOperation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"pageLink":{"$ref":"#/components/schemas/EntityDataPageLink"},"entityFields":{"type":"array","items":{"$ref":"#/components/schemas/EntityKey"}},"latestValues":{"type":"array","items":{"$ref":"#/components/schemas/EntityKey"}},"keyFiltersOperationOrDefault":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"}}},"EntityDataSortOrder":{"type":"object","properties":{"key":{"$ref":"#/components/schemas/EntityKey"},"direction":{"$ref":"#/components/schemas/Direction"}}},"AvailableEntityKeysV2":{"type":"object","description":"Contains unique time series and attribute key names discovered from entities matching a query,\noptionally including a sample value for each key.","properties":{"totalEntities":{"type":"integer","format":"int32","description":"Total number of entities that matched the query filter.","example":5},"entityTypes":{"type":"array","description":"Set of entity types found among the matched entities.","example":["DEVICE","ASSET"],"items":{"$ref":"#/components/schemas/EntityType"},"uniqueItems":true},"timeseries":{"type":"array","description":"List of unique time series keys available on the matched entities, sorted alphabetically.\nOmitted when timeseries keys were not requested.","items":{"$ref":"#/components/schemas/KeyInfo"}},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/KeyInfo"}},"description":"Map of attribute scope to the list of unique attribute keys available on the matched entities.\nOnly scopes supported by the matched entity types are included.\nOmitted when attribute keys were not requested or when none of the requested scopes apply to the matched entity types."}},"required":["entityTypes","totalEntities"]},"KeyInfo":{"type":"object","description":"Key name with an optional sample value.","properties":{"key":{"type":"string","description":"Key name.","example":"temperature"},"sample":{"$ref":"#/components/schemas/KeySample","description":"Most recent sample value for this key across the matched entities. Omitted when samples were not requested."}},"required":["key"]},"KeySample":{"type":"object","description":"Most recent value and its timestamp.","properties":{"ts":{"type":"integer","format":"int64","description":"Timestamp in milliseconds since epoch.","example":1707000000000},"value":{"description":"Sample value.","example":23.5}},"required":["ts","value"]},"User":{"type":"object","description":"A JSON value representing the User.","properties":{"id":{"$ref":"#/components/schemas/UserId","description":"JSON object with the User Id. Specify this field to update the device. Referencing non-existing User Id will cause error. Omit this field to create new customer."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the user creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with the Tenant Id."},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with the Customer Id."},"email":{"type":"string","description":"Email of the user","example":"user@example.com"},"authority":{"$ref":"#/components/schemas/Authority","description":"Authority","example":"SYS_ADMIN, TENANT_ADMIN or CUSTOMER_USER"},"firstName":{"type":"string","description":"First name of the user","example":"John"},"lastName":{"type":"string","description":"Last name of the user","example":"Doe"},"phone":{"type":"string","description":"Phone number of the user","example":38012345123},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId"},"version":{"type":"integer","format":"int64"},"name":{"type":"string","description":"Duplicates the email of the user, readonly","example":"user@example.com","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider).","example":{"defaultDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","defaultDashboardFullscreen":false,"homeDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","homeDashboardHideToolbar":true,"lang":"en_US"}}},"required":["authority","email"]},"GroupPermission":{"type":"object","description":"A JSON value representing the group permission.","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with the Tenant Id.","readOnly":true},"userGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group."},"roleId":{"$ref":"#/components/schemas/RoleId","description":"JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required."},"entityGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role."},"entityGroupType":{"$ref":"#/components/schemas/EntityType","description":"Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions.","readOnly":true},"isPublic":{"type":"boolean","writeOnly":true},"id":{"$ref":"#/components/schemas/GroupPermissionId","description":"JSON object with the Group Permission Id. Specify this field to update the Group Permission. Referencing non-existing Group Permission Id will cause error. Omit this field to create new Group Permission."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the group permission creation, in milliseconds","example":1609459200000,"readOnly":true},"name":{"type":"string","description":"Name of the Group Permissions. Auto-generated","readOnly":true},"public":{"type":"boolean"}},"required":["roleId"]},"GroupPermissionInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/GroupPermissionId","description":"JSON object with the Group Permission Id. Specify this field to update the Group Permission. Referencing non-existing Group Permission Id will cause error. Omit this field to create new Group Permission."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the group permission creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with the Tenant Id.","readOnly":true},"userGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group."},"roleId":{"$ref":"#/components/schemas/RoleId","description":"JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required."},"entityGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role."},"entityGroupType":{"$ref":"#/components/schemas/EntityType","description":"Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions.","readOnly":true},"role":{"$ref":"#/components/schemas/Role","description":"Represent set of permissions."},"entityGroupName":{"type":"string","description":"Entity Group Name."},"entityGroupOwnerId":{"description":"Entity Group Owner Id (Tenant or Customer).","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"entityGroupOwnerName":{"type":"string","description":"Name of the entity group owner (Tenant or Customer title)."},"userGroupName":{"type":"string","description":"User Group Name."},"userGroupOwnerId":{"description":"User Group Owner Id (Tenant or Customer).","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"userGroupOwnerName":{"type":"string","description":"Name of the user group owner (Tenant or Customer title)."},"readOnly":{"type":"boolean"},"name":{"type":"string","description":"Name of the Group Permissions. Auto-generated","readOnly":true},"public":{"type":"boolean"}},"required":["roleId"]},"Role":{"type":"object","description":"A JSON value representing the role.","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Role is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"name":{"type":"string","description":"Role Name","example":"Read-Only"},"type":{"$ref":"#/components/schemas/RoleType","description":"Type of the role: generic or group","example":"GROUP"},"permissions":{"$ref":"#/components/schemas/JsonNode","description":"Set of permissions granted by this role. The JSON shape depends on the role 'type':\n\n* GENERIC — JSON object mapping `Resource` enum names to arrays of `Operation` enum names allowed on that resource. The wildcard entry `{\"ALL\":[\"ALL\"]}` grants every operation on every resource.\n\n* GROUP — JSON array of `Operation` enum names that apply to the entity group this role is bound to via `GroupPermission.entityGroupId`. Only operations with `allowedForGroupRole=true` may appear (see `Operation` enum). The wildcard entry `[\"ALL\"]` grants every supported operation on the bound entity group.","example":{"DEVICE":["READ","WRITE","READ_TELEMETRY"],"DASHBOARD":["READ"]}},"excludedPermissions":{"$ref":"#/components/schemas/JsonNode","description":"Operations to subtract from those granted by `permissions`. Only applicable to GENERIC roles — setting this on a GROUP role is rejected by validation. Same shape as the GENERIC variant of `permissions`: a JSON object mapping `Resource` enum names to non-empty arrays of `Operation` enum names. At evaluation time, for each resource the listed operations are removed from the resolved permission set (e.g. `permissions={\"ALL\":[\"ALL\"]}` combined with `excludedPermissions={\"DEVICE\":[\"DELETE\"]}` grants everything except deleting devices). May be null or an empty object when no exclusions apply.","example":{"DEVICE":["DELETE"]}},"version":{"type":"integer","format":"int64"},"id":{"$ref":"#/components/schemas/RoleId","description":"JSON object with the Role Id. Specify this field to update the Role. Referencing non-existing Role Id will cause error. Omit this field to create new Role."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the role creation, in milliseconds","example":1609459200000,"readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the role. May include: 'description' (string).","example":{"description":"Administrator role"}}},"required":["name","permissions","type"]},"RoleType":{"type":"string","enum":["GENERIC","GROUP"]},"MobileSessionInfo":{"type":"object","properties":{"fcmTokenTimestamp":{"type":"integer","format":"int64"}}},"TrendzSynchronizationResult":{"type":"object","properties":{"version":{"type":"string"},"updatedTs":{"type":"integer","format":"int64"},"type":{"$ref":"#/components/schemas/TrendzSynchronizationResultType"},"status":{"$ref":"#/components/schemas/TrendzSynchronizationStatus"}}},"TrendzSynchronizationResultType":{"type":"string","enum":["SYNC_NOT_INITIALIZED","SYNC_COMPLETED","SYNC_DISABLED","TRENDZ_UNSUPPORTED_VERSION","TRENDZ_AUTH_INVALID","TRENDZ_URL_UNREACHABLE","TB_URL_MISMATCH","TB_URL_UNREACHABLE","TB_AUTH_INVALID","SYNC_INTERNAL_ERROR"]},"TrendzSynchronizationStatus":{"type":"string","enum":["NOT_AVAILABLE","AVAILABLE","SYNCED"]},"TrendzConfiguration":{"type":"object","properties":{"trendzUrl":{"type":"string"},"tbUrl":{"type":"string"}}},"Tenant":{"type":"object","description":"A JSON value representing the tenant.","properties":{"id":{"$ref":"#/components/schemas/TenantId","description":"JSON object with the tenant Id. Specify this field to update the tenant. Referencing non-existing tenant Id will cause error. Omit this field to create new tenant."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the tenant creation, in milliseconds","example":1609459200000,"readOnly":true},"country":{"type":"string","description":"Country","example":"US"},"state":{"type":"string","description":"State","example":"NY"},"city":{"type":"string","description":"City","example":"New York"},"address":{"type":"string","description":"Address Line 1","example":42},"address2":{"type":"string","description":"Address Line 2"},"zip":{"type":"string","description":"Zip code","example":10004},"phone":{"type":"string","description":"Phone number","example":"+1(415)777-7777"},"email":{"type":"string","description":"Email","example":"example@company.com"},"title":{"type":"string","description":"Title of the tenant","example":"Company A"},"region":{"type":"string","description":"Geo region of the tenant","example":"North America"},"tenantProfileId":{"$ref":"#/components/schemas/TenantProfileId","description":"JSON object with Tenant Profile Id"},"version":{"type":"integer","format":"int64"},"active":{"type":"boolean"},"lastInactiveTs":{"type":"integer","format":"int64"},"currentPeriodStartTs":{"type":"integer","format":"int64"},"edgeLicenseVersion":{"type":"integer","format":"int32"},"name":{"type":"string","description":"Name of the tenant. Read-only, duplicated from title for backward compatibility","example":"Company A","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the tenant. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar).","example":{"description":"Main tenant","homeDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","homeDashboardHideToolbar":true}},"addonData":{"$ref":"#/components/schemas/TenantAddonData"}},"required":["title"]},"TenantAddonData":{"type":"object","properties":{"maxDevices":{"type":"integer","format":"int64"},"maxAssets":{"type":"integer","format":"int64"},"maxCustomers":{"type":"integer","format":"int64"},"maxUsers":{"type":"integer","format":"int64"},"maxIntegrations":{"type":"integer","format":"int64"},"maxConverters":{"type":"integer","format":"int64"},"maxCalculatedFieldsPerEntity":{"type":"integer","format":"int64"},"maxTransportMessages":{"type":"integer","format":"int64"},"maxTransportDataPoints":{"type":"integer","format":"int64"},"maxREExecutions":{"type":"integer","format":"int64"},"maxJSExecutions":{"type":"integer","format":"int64"},"maxDPStorageDays":{"type":"integer","format":"int64"},"maxCreatedAlarms":{"type":"integer","format":"int64"},"maxEmails":{"type":"integer","format":"int64"},"maxSms":{"type":"integer","format":"int64"},"maxAiCredits":{"type":"integer","format":"int64"},"edgeEnabled":{"type":"boolean"},"maxEdges":{"type":"integer","format":"int64"},"maxAgents":{"type":"integer","format":"int64"},"trendzEnabled":{"type":"boolean"},"whiteLabelingEnabled":{"type":"boolean"},"default":{"type":"boolean"}}},"DefaultTenantProfileConfiguration":{"allOf":[{"$ref":"#/components/schemas/TenantProfileConfiguration"},{"type":"object","properties":{"maxDevices":{"type":"integer","format":"int64"},"maxAssets":{"type":"integer","format":"int64"},"maxCustomers":{"type":"integer","format":"int64"},"maxUsers":{"type":"integer","format":"int64"},"maxDashboards":{"type":"integer","format":"int64"},"maxRuleChains":{"type":"integer","format":"int64"},"maxEdges":{"type":"integer","format":"int64"},"maxAgents":{"type":"integer","format":"int64"},"maxAgentApplications":{"type":"integer","format":"int64"},"maxResourcesInBytes":{"type":"integer","format":"int64"},"maxOtaPackagesInBytes":{"type":"integer","format":"int64"},"maxResourceSize":{"type":"integer","format":"int64"},"maxReportSizeInBytes":{"type":"integer","format":"int64"},"maxIntegrations":{"type":"integer","format":"int64"},"maxConverters":{"type":"integer","format":"int64"},"maxSchedulerEvents":{"type":"integer","format":"int64"},"whiteLabelingEnabled":{"type":"boolean"},"trendzEnabled":{"type":"boolean"},"edgeEnabled":{"type":"boolean"},"transportTenantMsgRateLimit":{"type":"string","example":"1000:1,20000:60"},"transportTenantTelemetryMsgRateLimit":{"type":"string","example":"1000:1,20000:60"},"transportTenantTelemetryDataPointsRateLimit":{"type":"string","example":"1000:1,20000:60"},"transportDeviceMsgRateLimit":{"type":"string","example":"20:1,600:60"},"transportDeviceTelemetryMsgRateLimit":{"type":"string","example":"20:1,600:60"},"transportDeviceTelemetryDataPointsRateLimit":{"type":"string","example":"20:1,600:60"},"transportGatewayMsgRateLimit":{"type":"string","example":"20:1,600:60"},"transportGatewayTelemetryMsgRateLimit":{"type":"string","example":"20:1,600:60"},"transportGatewayTelemetryDataPointsRateLimit":{"type":"string","example":"20:1,600:60"},"transportGatewayDeviceMsgRateLimit":{"type":"string","example":"20:1,600:60"},"transportGatewayDeviceTelemetryMsgRateLimit":{"type":"string","example":"20:1,600:60"},"transportGatewayDeviceTelemetryDataPointsRateLimit":{"type":"string","example":"20:1,600:60"},"integrationMsgsPerTenantRateLimit":{"type":"string","example":"20:1,600:60"},"integrationMsgsPerDeviceRateLimit":{"type":"string","example":"20:1,600:60"},"integrationMsgsPerAssetRateLimit":{"type":"string"},"tenantEntityExportRateLimit":{"type":"string","example":"20:1,600:60"},"tenantEntityImportRateLimit":{"type":"string","example":"20:1,600:60"},"tenantNotificationRequestsRateLimit":{"type":"string","example":"20:1,600:60"},"tenantNotificationRequestsPerRuleRateLimit":{"type":"string","example":"20:1,600:60"},"maxTransportMessages":{"type":"integer","format":"int64","example":10000000},"maxTransportDataPoints":{"type":"integer","format":"int64","example":10000000},"maxREExecutions":{"type":"integer","format":"int64","example":4000000},"maxJSExecutions":{"type":"integer","format":"int64","example":5000000},"maxTbelExecutions":{"type":"integer","format":"int64","example":5000000},"maxDPStorageDays":{"type":"integer","format":"int64","example":0},"maxRuleNodeExecutionsPerMessage":{"type":"integer","format":"int32","example":50},"maxDebugModeDurationMinutes":{"type":"integer","format":"int32","example":15},"maxEmails":{"type":"integer","format":"int64","description":"Maximum number of emails per billing period sent via the system mail server. 0 means unlimited, -1 disables email sending.","example":0,"minimum":-1},"smsEnabled":{"type":"boolean","example":true},"maxSms":{"type":"integer","format":"int64","example":0},"maxCreatedAlarms":{"type":"integer","format":"int64","example":1000},"maxGeneratedReports":{"type":"integer","format":"int64","example":10000},"maxAiCredits":{"type":"integer","format":"int64","example":10000},"tenantServerRestLimitsConfiguration":{"type":"string"},"customerServerRestLimitsConfiguration":{"type":"string"},"maxWsSessionsPerTenant":{"type":"integer","format":"int32"},"maxWsSessionsPerCustomer":{"type":"integer","format":"int32"},"maxWsSessionsPerRegularUser":{"type":"integer","format":"int32"},"maxWsSessionsPerPublicUser":{"type":"integer","format":"int32"},"wsMsgQueueLimitPerSession":{"type":"integer","format":"int32"},"maxWsSubscriptionsPerTenant":{"type":"integer","format":"int64"},"maxWsSubscriptionsPerCustomer":{"type":"integer","format":"int64"},"maxWsSubscriptionsPerRegularUser":{"type":"integer","format":"int64"},"maxWsSubscriptionsPerPublicUser":{"type":"integer","format":"int64"},"wsUpdatesPerSessionRateLimit":{"type":"string"},"cassandraReadQueryTenantCoreRateLimits":{"type":"string"},"cassandraWriteQueryTenantCoreRateLimits":{"type":"string"},"cassandraReadQueryTenantRuleEngineRateLimits":{"type":"string"},"cassandraWriteQueryTenantRuleEngineRateLimits":{"type":"string"},"edgeEventRateLimits":{"type":"string"},"edgeEventRateLimitsPerEdge":{"type":"string"},"edgeUplinkMessagesRateLimits":{"type":"string"},"edgeUplinkMessagesRateLimitsPerEdge":{"type":"string"},"agentEventRateLimits":{"type":"string"},"agentEventRateLimitsPerAgent":{"type":"string"},"agentLogChunkRateLimits":{"type":"string"},"agentLogChunkRateLimitsPerAgent":{"type":"string"},"defaultStorageTtlDays":{"type":"integer","format":"int32"},"alarmsTtlDays":{"type":"integer","format":"int32"},"rpcTtlDays":{"type":"integer","format":"int32"},"queueStatsTtlDays":{"type":"integer","format":"int32"},"ruleEngineExceptionsTtlDays":{"type":"integer","format":"int32"},"blobEntityTtlDays":{"type":"integer","format":"int32"},"reportTtlDays":{"type":"integer","format":"int32"},"warnThreshold":{"type":"number","format":"double"},"maxCalculatedFieldsPerEntity":{"type":"integer","format":"int64","example":100},"maxArgumentsPerCF":{"type":"integer","format":"int64","example":10},"minAllowedScheduledUpdateIntervalInSecForCF":{"type":"integer","format":"int32","example":10},"maxRelationLevelPerCfArgument":{"type":"integer","format":"int32","example":2},"maxRelatedEntitiesToReturnPerCfArgument":{"type":"integer","format":"int32","example":1000},"maxDataPointsPerRollingArg":{"type":"integer","format":"int64","example":1000},"maxStateSizeInKBytes":{"type":"integer","format":"int64","example":512},"maxSingleValueArgumentSizeInKBytes":{"type":"integer","format":"int64","example":32},"minAllowedDeduplicationIntervalInSecForCF":{"type":"integer","format":"int64","example":10},"minAllowedAggregationIntervalInSecForCF":{"type":"integer","format":"int64","example":60},"intermediateAggregationIntervalInSecForCF":{"type":"integer","format":"int64","example":300},"cfReevaluationCheckInterval":{"type":"integer","format":"int64","example":60},"alarmsReevaluationInterval":{"type":"integer","format":"int64","example":60},"aiChatRequestsPerTenantRateLimit":{"type":"string"}}}]},"ProcessingStrategy":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/ProcessingStrategyType"},"retries":{"type":"integer","format":"int32"},"failurePercentage":{"type":"number","format":"double"},"pauseBetweenRetries":{"type":"integer","format":"int64"},"maxPauseBetweenRetries":{"type":"integer","format":"int64"}}},"ProcessingStrategyType":{"type":"string","enum":["SKIP_ALL_FAILURES","SKIP_ALL_FAILURES_AND_TIMED_OUT","RETRY_ALL","RETRY_FAILED","RETRY_TIMED_OUT","RETRY_FAILED_AND_TIMED_OUT"]},"SubmitStrategy":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SubmitStrategyType"},"batchSize":{"type":"integer","format":"int32"}}},"SubmitStrategyType":{"type":"string","enum":["BURST","BATCH","SEQUENTIAL_BY_ORIGINATOR","SEQUENTIAL_BY_TENANT","SEQUENTIAL"]},"TenantProfile":{"type":"object","description":"A JSON value representing the tenant profile.","properties":{"id":{"$ref":"#/components/schemas/TenantProfileId","description":"JSON object with the tenant profile Id. Specify this field to update the tenant profile. Referencing non-existing tenant profile Id will cause error. Omit this field to create new tenant profile."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the tenant profile creation, in milliseconds","example":1609459200000,"readOnly":true},"name":{"type":"string","description":"Name of the tenant profile","example":"High Priority Tenants"},"description":{"type":"string","description":"Description of the tenant profile","example":"Any text"},"isolatedTbRuleEngine":{"type":"boolean","description":"If enabled, will push all messages related to this tenant and processed by the rule engine into separate queue. Useful for complex microservices deployments, to isolate processing of the data for specific tenants","example":false},"default":{"type":"boolean","description":"Default Tenant profile to be used.","example":false},"profileData":{"$ref":"#/components/schemas/TenantProfileData"}}},"TenantProfileConfiguration":{"discriminator":{"propertyName":"type","mapping":{"DEFAULT":"#/components/schemas/DefaultTenantProfileConfiguration"}},"properties":{"type":{"type":"string"}},"required":["type"]},"TenantProfileData":{"type":"object","properties":{"configuration":{"description":"Complex JSON object that contains profile settings: max devices, max assets, rate limits, etc.","oneOf":[{"$ref":"#/components/schemas/DefaultTenantProfileConfiguration"}]},"queueConfiguration":{"type":"array","description":"JSON array of queue configuration per tenant profile","items":{"$ref":"#/components/schemas/TenantProfileQueueConfiguration"}}}},"TenantProfileQueueConfiguration":{"type":"object","properties":{"name":{"type":"string"},"topic":{"type":"string"},"pollInterval":{"type":"integer","format":"int32"},"partitions":{"type":"integer","format":"int32"},"consumerPerPartition":{"type":"boolean"},"packProcessingTimeout":{"type":"integer","format":"int64"},"submitStrategy":{"$ref":"#/components/schemas/SubmitStrategy"},"processingStrategy":{"$ref":"#/components/schemas/ProcessingStrategy"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}}},"AuthenticationProtocol":{"type":"string","enum":["SHA_1","SHA_224","SHA_256","SHA_384","SHA_512","MD5"]},"CoapDeviceTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceTransportConfiguration"},{"type":"object","properties":{"powerMode":{"$ref":"#/components/schemas/PowerMode"},"psmActivityTimer":{"type":"integer","format":"int64"},"edrxCycle":{"type":"integer","format":"int64"},"pagingTransmissionWindow":{"type":"integer","format":"int64"}}}]},"DefaultDeviceConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceConfiguration"}],"description":"Default device configuration","required":["type"]},"DefaultDeviceTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceTransportConfiguration"}]},"Device":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DeviceId","description":"JSON object with the Device Id. Specify this field to update the Device. Referencing non-existing Device Id will cause error. Omit this field to create new Device."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the device creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Use 'assignDeviceToTenant' to change the Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Device."},"name":{"type":"string","description":"Unique Device Name in scope of Tenant","example":"A4B72CCDFF33"},"type":{"type":"string","description":"Device Profile Name","example":"Temperature Sensor"},"label":{"type":"string","description":"Label that may be used in widgets","example":"Room 234 Sensor"},"deviceProfileId":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with Device Profile Id. If not provided, the type will be used to determine the profile. If neither deviceProfileId nor type is specified, the default device profile will be used."},"firmwareId":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with Ota Package Id."},"softwareId":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with Ota Package Id."},"version":{"type":"integer","format":"int64"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device).","example":{"gateway":false,"description":"Temperature sensor","lastConnectedGateway":"784f394c-42b6-435a-983c-b7beff2784f9"}},"deviceData":{"$ref":"#/components/schemas/DeviceData","description":"JSON object with content specific to type of transport in the device profile."}}},"DeviceConfiguration":{"type":"object","description":"Device configuration","discriminator":{"propertyName":"type","mapping":{"DEFAULT":"#/components/schemas/DefaultDeviceConfiguration"}},"properties":{"type":{"$ref":"#/components/schemas/DeviceProfileType","description":"Device profile type"}},"required":["type"]},"DeviceData":{"type":"object","properties":{"configuration":{"description":"Device configuration for device profile type. DEFAULT is only supported value for now","oneOf":[{"$ref":"#/components/schemas/DefaultDeviceConfiguration"}]},"transportConfiguration":{"description":"Device transport configuration used to connect the device","oneOf":[{"$ref":"#/components/schemas/CoapDeviceTransportConfiguration"},{"$ref":"#/components/schemas/DefaultDeviceTransportConfiguration"},{"$ref":"#/components/schemas/Lwm2mDeviceTransportConfiguration"},{"$ref":"#/components/schemas/MqttDeviceTransportConfiguration"},{"$ref":"#/components/schemas/SnmpDeviceTransportConfiguration"}]}}},"DeviceProfileType":{"type":"string","enum":["DEFAULT"]},"DeviceTransportConfiguration":{"description":"Configuration for device transport","discriminator":{"propertyName":"type","mapping":{"DEFAULT":"#/components/schemas/DefaultDeviceTransportConfiguration","MQTT":"#/components/schemas/MqttDeviceTransportConfiguration","COAP":"#/components/schemas/CoapDeviceTransportConfiguration","LWM2M":"#/components/schemas/Lwm2mDeviceTransportConfiguration","SNMP":"#/components/schemas/SnmpDeviceTransportConfiguration"}},"properties":{"type":{"type":"string"}},"required":["type"]},"Lwm2mDeviceTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceTransportConfiguration"},{"type":"object","properties":{"powerMode":{"$ref":"#/components/schemas/PowerMode"},"psmActivityTimer":{"type":"integer","format":"int64"},"edrxCycle":{"type":"integer","format":"int64"},"pagingTransmissionWindow":{"type":"integer","format":"int64"}}}]},"MqttDeviceTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceTransportConfiguration"}]},"PowerMode":{"type":"string","enum":["PSM","DRX","E_DRX"]},"PrivacyProtocol":{"type":"string","enum":["DES","AES_128","AES_192","AES_256"]},"SnmpDeviceTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceTransportConfiguration"},{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","format":"int32"},"protocolVersion":{"$ref":"#/components/schemas/SnmpProtocolVersion"},"community":{"type":"string"},"username":{"type":"string"},"securityName":{"type":"string"},"contextName":{"type":"string"},"authenticationProtocol":{"$ref":"#/components/schemas/AuthenticationProtocol"},"authenticationPassphrase":{"type":"string"},"privacyProtocol":{"$ref":"#/components/schemas/PrivacyProtocol"},"privacyPassphrase":{"type":"string"},"engineId":{"type":"string"}}}]},"SnmpProtocolVersion":{"type":"string","enum":["V1","V2C","V3"]},"HomeDashboardInfo":{"type":"object","description":"A JSON object that represents home dashboard id and other parameters","properties":{"dashboardId":{"$ref":"#/components/schemas/DashboardId","description":"JSON object with the dashboard Id."},"hideDashboardToolbar":{"type":"boolean","description":"Hide dashboard toolbar flag. Useful for rendering dashboards on mobile."}}},"AggFunction":{"type":"string","enum":["MIN","MAX","SUM","AVG","COUNT","COUNT_UNIQUE"]},"AggFunctionInput":{"allOf":[{"$ref":"#/components/schemas/AggInput"},{"type":"object","properties":{"function":{"type":"string"}}}]},"AggInput":{"discriminator":{"propertyName":"type","mapping":{"key":"#/components/schemas/AggKeyInput","function":"#/components/schemas/AggFunctionInput"}},"properties":{"type":{"type":"string"}},"required":["type"]},"AggInterval":{"discriminator":{"propertyName":"type","mapping":{"HOUR":"#/components/schemas/HourInterval","DAY":"#/components/schemas/DayInterval","WEEK":"#/components/schemas/WeekInterval","WEEK_SUN_SAT":"#/components/schemas/WeekSunSatInterval","MONTH":"#/components/schemas/MonthInterval","QUARTER":"#/components/schemas/QuarterInterval","YEAR":"#/components/schemas/YearInterval","CUSTOM":"#/components/schemas/CustomInterval"}},"properties":{"type":{"type":"string"}},"required":["type"]},"AggKeyInput":{"allOf":[{"$ref":"#/components/schemas/AggInput"},{"type":"object","properties":{"key":{"type":"string"}}}]},"AggMetric":{"type":"object","properties":{"function":{"$ref":"#/components/schemas/AggFunction"},"filter":{"type":"string"},"input":{"oneOf":[{"$ref":"#/components/schemas/AggFunctionInput"},{"$ref":"#/components/schemas/AggKeyInput"}]},"defaultValue":{"type":"number","format":"double"}}},"AiModelExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"AlarmCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"arguments":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Argument"},"minProperties":1},"createRules":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AlarmRule"},"minProperties":1},"clearRule":{"$ref":"#/components/schemas/AlarmRule"},"propagate":{"type":"boolean"},"propagateToOwner":{"type":"boolean"},"propagateToOwnerHierarchy":{"type":"boolean"},"propagateToTenant":{"type":"boolean"},"propagateRelationTypes":{"type":"array","items":{"type":"string"}}}}],"required":["arguments","createRules"]},"AlarmCondition":{"type":"object","discriminator":{"propertyName":"type","mapping":{"SIMPLE":"#/components/schemas/SimpleAlarmCondition","DURATION":"#/components/schemas/DurationAlarmCondition","REPEATING":"#/components/schemas/RepeatingAlarmCondition"}},"properties":{"expression":{"oneOf":[{"$ref":"#/components/schemas/SimpleAlarmConditionExpression"},{"$ref":"#/components/schemas/TbelAlarmConditionExpression"}]},"schedule":{"$ref":"#/components/schemas/AlarmConditionValueAlarmSchedule"},"type":{"type":"string"}},"required":["expression","type"]},"AlarmConditionExpression":{"discriminator":{"propertyName":"type","mapping":{"SIMPLE":"#/components/schemas/SimpleAlarmConditionExpression","TBEL":"#/components/schemas/TbelAlarmConditionExpression"}},"properties":{"type":{"type":"string"}},"required":["type"]},"AlarmConditionFilter":{"type":"object","properties":{"argument":{"type":"string","minLength":1},"valueType":{"$ref":"#/components/schemas/EntityKeyValueType"},"operation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"predicates":{"type":"array","items":{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"},"minItems":1}},"required":["argument","predicates","valueType"]},"AlarmConditionValueAlarmSchedule":{"type":"object","properties":{"staticValue":{"oneOf":[{"$ref":"#/components/schemas/AnyTimeSchedule"},{"$ref":"#/components/schemas/CustomTimeSchedule"},{"$ref":"#/components/schemas/SpecificTimeSchedule"}]},"dynamicValueArgument":{"type":"string"}}},"AlarmConditionValueBoolean":{"type":"object","properties":{"staticValue":{"type":"boolean"},"dynamicValueArgument":{"type":"string"}}},"AlarmConditionValueDouble":{"type":"object","properties":{"staticValue":{"type":"number","format":"double"},"dynamicValueArgument":{"type":"string"}}},"AlarmConditionValueInteger":{"type":"object","properties":{"staticValue":{"type":"integer","format":"int32"},"dynamicValueArgument":{"type":"string"}}},"AlarmConditionValueLong":{"type":"object","properties":{"staticValue":{"type":"integer","format":"int64"},"dynamicValueArgument":{"type":"string"}}},"AlarmConditionValueString":{"type":"object","properties":{"staticValue":{"type":"string"},"dynamicValueArgument":{"type":"string"}}},"AlarmRule":{"type":"object","properties":{"condition":{"oneOf":[{"$ref":"#/components/schemas/DurationAlarmCondition"},{"$ref":"#/components/schemas/RepeatingAlarmCondition"},{"$ref":"#/components/schemas/SimpleAlarmCondition"}]},"alarmDetails":{"type":"string"},"dashboardId":{"$ref":"#/components/schemas/DashboardId"}},"required":["condition"]},"AlarmRuleBooleanFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/AlarmRuleBooleanOperation"},"value":{"$ref":"#/components/schemas/AlarmConditionValueBoolean"}}}],"required":["operation","value"]},"AlarmRuleBooleanOperation":{"type":"string","enum":["EQUAL","NOT_EQUAL"]},"AlarmRuleComplexFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"predicates":{"type":"array","items":{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"}}}}]},"AlarmRuleKeyFilterPredicate":{"description":"Filter predicate for alarm rule key-based filtering","discriminator":{"propertyName":"type","mapping":{"STRING":"#/components/schemas/AlarmRuleStringFilterPredicate","NUMERIC":"#/components/schemas/AlarmRuleNumericFilterPredicate","BOOLEAN":"#/components/schemas/AlarmRuleBooleanFilterPredicate","NO_DATA":"#/components/schemas/NoDataFilterPredicate","COMPLEX":"#/components/schemas/AlarmRuleComplexFilterPredicate"}},"properties":{"type":{"type":"string"}},"required":["type"]},"AlarmRuleNumericFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/AlarmRuleNumericOperation"},"value":{"$ref":"#/components/schemas/AlarmConditionValueDouble"}}}],"required":["operation","value"]},"AlarmRuleNumericOperation":{"type":"string","enum":["EQUAL","NOT_EQUAL","GREATER","LESS","GREATER_OR_EQUAL","LESS_OR_EQUAL"]},"AlarmRuleStringFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"},{"type":"object","properties":{"operation":{"$ref":"#/components/schemas/AlarmRuleStringOperation"},"value":{"$ref":"#/components/schemas/AlarmConditionValueString"},"ignoreCase":{"type":"boolean"}}}],"required":["operation","value"]},"AlarmRuleStringOperation":{"type":"string","enum":["EQUAL","NOT_EQUAL","STARTS_WITH","ENDS_WITH","CONTAINS","NOT_CONTAINS","IN","NOT_IN"]},"AlarmSchedule":{"discriminator":{"propertyName":"type","mapping":{"ANY_TIME":"#/components/schemas/AnyTimeSchedule","SPECIFIC_TIME":"#/components/schemas/SpecificTimeSchedule","CUSTOM":"#/components/schemas/CustomTimeSchedule"}},"properties":{"type":{"type":"string"}},"required":["type"]},"AnyTimeSchedule":{"allOf":[{"$ref":"#/components/schemas/AlarmSchedule"}]},"Argument":{"type":"object","properties":{"refEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"refDynamicSourceConfiguration":{"oneOf":[{"$ref":"#/components/schemas/CurrentOwnerDynamicSourceConfiguration"},{"$ref":"#/components/schemas/RelationPathQueryDynamicSourceConfiguration"}]},"refEntityKey":{"$ref":"#/components/schemas/ReferencedEntityKey"},"defaultValue":{"type":"string"},"limit":{"type":"integer","format":"int32"},"timeWindow":{"type":"integer","format":"int64"}}},"ArgumentType":{"type":"string","enum":["TS_LATEST","ATTRIBUTE","TS_ROLLING"]},"AssetExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"AssetProfileExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"AttributeExportData":{"type":"object","properties":{"key":{"type":"string"},"lastUpdateTs":{"type":"integer","format":"int64"},"booleanValue":{"type":"boolean"},"strValue":{"type":"string"},"longValue":{"type":"integer","format":"int64"},"doubleValue":{"type":"number","format":"double"},"jsonValue":{"type":"string"}}},"AttributesImmediateOutputStrategy":{"allOf":[{"$ref":"#/components/schemas/AttributesOutputStrategy"},{"type":"object","properties":{"sendAttributesUpdatedNotification":{"type":"boolean"},"updateAttributesOnlyOnValueChange":{"type":"boolean"},"saveAttribute":{"type":"boolean"},"sendWsUpdate":{"type":"boolean"},"processCfs":{"type":"boolean"}}}]},"AttributesOutput":{"allOf":[{"$ref":"#/components/schemas/Output"},{"type":"object","properties":{"strategy":{"oneOf":[{"$ref":"#/components/schemas/AttributesImmediateOutputStrategy"},{"$ref":"#/components/schemas/AttributesRuleChainOutputStrategy"}]}}}]},"AttributesOutputStrategy":{"discriminator":{"propertyName":"type","mapping":{"IMMEDIATE":"#/components/schemas/AttributesImmediateOutputStrategy","RULE_CHAIN":"#/components/schemas/AttributesRuleChainOutputStrategy"}},"properties":{"type":{"type":"string"}},"required":["type"]},"AttributesRuleChainOutputStrategy":{"allOf":[{"$ref":"#/components/schemas/AttributesOutputStrategy"}]},"CalculatedField":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CalculatedFieldId","description":"JSON object with the Calculated Field Id. Referencing non-existing Calculated Field Id will cause error."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the calculated field creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"type":{"$ref":"#/components/schemas/CalculatedFieldType"},"name":{"type":"string","description":"User defined name of the calculated field."},"debugMode":{"type":"boolean","deprecated":true,"writeOnly":true},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"configurationVersion":{"type":"integer","format":"int32","description":"Version of calculated field configuration.","example":0},"configuration":{"oneOf":[{"$ref":"#/components/schemas/AlarmCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/EntityAggregationCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/GeofencingCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/PropagationCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/RelatedEntitiesAggregationCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/ScriptCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/SimpleCalculatedFieldConfiguration"}]},"version":{"type":"integer","format":"int64"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the calculated field"}},"required":["configuration"]},"CalculatedFieldConfiguration":{"type":"object","discriminator":{"propertyName":"type","mapping":{"SIMPLE":"#/components/schemas/SimpleCalculatedFieldConfiguration","SCRIPT":"#/components/schemas/ScriptCalculatedFieldConfiguration","GEOFENCING":"#/components/schemas/GeofencingCalculatedFieldConfiguration","ALARM":"#/components/schemas/AlarmCalculatedFieldConfiguration","PROPAGATION":"#/components/schemas/PropagationCalculatedFieldConfiguration","RELATED_ENTITIES_AGGREGATION":"#/components/schemas/RelatedEntitiesAggregationCalculatedFieldConfiguration","ENTITY_AGGREGATION":"#/components/schemas/EntityAggregationCalculatedFieldConfiguration"}},"properties":{"output":{"oneOf":[{"$ref":"#/components/schemas/AttributesOutput"},{"$ref":"#/components/schemas/TimeSeriesOutput"}]},"type":{"type":"string"}},"required":["type"]},"CalculatedFieldType":{"type":"string","enum":["SIMPLE","SCRIPT","GEOFENCING","ALARM","PROPAGATION","RELATED_ENTITIES_AGGREGATION","ENTITY_AGGREGATION"]},"CfArgumentDynamicSourceConfiguration":{"discriminator":{"propertyName":"type","mapping":{"RELATION_PATH_QUERY":"#/components/schemas/RelationPathQueryDynamicSourceConfiguration","CURRENT_OWNER":"#/components/schemas/CurrentOwnerDynamicSourceConfiguration"}},"properties":{"type":{"type":"string"}},"required":["type"]},"ConverterExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"CurrentOwnerDynamicSourceConfiguration":{"allOf":[{"$ref":"#/components/schemas/CfArgumentDynamicSourceConfiguration"}]},"CustomInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"},"durationSec":{"type":"integer","format":"int64","minimum":1}}}],"required":["durationSec","tz"]},"CustomTimeSchedule":{"allOf":[{"$ref":"#/components/schemas/AlarmSchedule"},{"type":"object","properties":{"timezone":{"type":"string"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CustomTimeScheduleItem"}}}}]},"CustomTimeScheduleItem":{"type":"object","properties":{"enabled":{"type":"boolean"},"dayOfWeek":{"type":"integer","format":"int32"},"startsOn":{"type":"integer","format":"int64"},"endsOn":{"type":"integer","format":"int64"}}},"CustomerExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"DashboardExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"DayInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"DeviceCredentials":{"type":"object","description":"A JSON value representing the device credentials.","properties":{"id":{"$ref":"#/components/schemas/DeviceCredentialsId","description":"The Id is automatically generated during device creation. Use 'getDeviceCredentialsByDeviceId' to obtain the id based on device id. Use 'updateDeviceCredentials' to update device credentials. ","example":"784f394c-42b6-435a-983c-b7beff2784f9","readOnly":true},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the device credentials creation, in milliseconds","example":1609459200000},"deviceId":{"$ref":"#/components/schemas/DeviceId","description":"JSON object with the device Id."},"credentialsType":{"$ref":"#/components/schemas/DeviceCredentialsType","description":"Type of the credentials","enum":["ACCESS_TOKEN","X509_CERTIFICATE","MQTT_BASIC","LWM2M_CREDENTIALS"]},"credentialsId":{"type":"string","description":"Unique Credentials Id per platform instance. Used to lookup credentials from the database. By default, new access token for your device. Depends on the type of the credentials.","example":"Access token or other value that depends on the credentials type"},"credentialsValue":{"type":"string","description":"Value of the credentials. Null in case of ACCESS_TOKEN credentials type. Base64 value in case of X509_CERTIFICATE. Complex object in case of MQTT_BASIC and LWM2M_CREDENTIALS","example":"Null in case of ACCESS_TOKEN. See model definition."},"version":{"type":"integer","format":"int64"}},"required":["credentialsId","deviceId","id"]},"DeviceCredentialsId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"DeviceCredentialsType":{"type":"string","enum":["ACCESS_TOKEN","X509_CERTIFICATE","MQTT_BASIC","LWM2M_CREDENTIALS"]},"DeviceExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"type":"object","properties":{"credentials":{"$ref":"#/components/schemas/DeviceCredentials"}}},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"DeviceGroupOtaPackage":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"groupId":{"$ref":"#/components/schemas/EntityGroupId"},"otaPackageType":{"$ref":"#/components/schemas/OtaPackageType"},"otaPackageId":{"$ref":"#/components/schemas/OtaPackageId"},"otaPackageUpdateTime":{"type":"integer","format":"int64"}}},"DeviceProfileExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"DurationAlarmCondition":{"allOf":[{"$ref":"#/components/schemas/AlarmCondition"},{"type":"object","properties":{"unit":{"$ref":"#/components/schemas/TimeUnit"},"value":{"$ref":"#/components/schemas/AlarmConditionValueLong"}}}],"required":["expression","unit","value"]},"EntityAggregationCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"arguments":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Argument"},"minProperties":1},"metrics":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AggMetric"},"minProperties":1},"interval":{"oneOf":[{"$ref":"#/components/schemas/CustomInterval"},{"$ref":"#/components/schemas/DayInterval"},{"$ref":"#/components/schemas/HourInterval"},{"$ref":"#/components/schemas/MonthInterval"},{"$ref":"#/components/schemas/QuarterInterval"},{"$ref":"#/components/schemas/WeekInterval"},{"$ref":"#/components/schemas/WeekSunSatInterval"},{"$ref":"#/components/schemas/YearInterval"}]},"watermark":{"$ref":"#/components/schemas/Watermark"},"produceIntermediateResult":{"type":"boolean"}}}],"required":["arguments","interval","metrics","output"]},"EntityCoordinates":{"type":"object","properties":{"latitudeKeyName":{"type":"string","minLength":1},"longitudeKeyName":{"type":"string","minLength":1}},"required":["latitudeKeyName","longitudeKeyName"]},"EntityExportDataObject":{"type":"object","description":"Base export container for ThingsBoard entities","discriminator":{"propertyName":"entityType","mapping":{"DEVICE":"#/components/schemas/DeviceExportData","RULE_CHAIN":"#/components/schemas/RuleChainExportData","WIDGET_TYPE":"#/components/schemas/WidgetTypeExportData","WIDGETS_BUNDLE":"#/components/schemas/WidgetsBundleExportData","OTA_PACKAGE":"#/components/schemas/OtaPackageExportData","CUSTOMER":"#/components/schemas/CustomerExportData","TB_RESOURCE":"#/components/schemas/TbResourceExportData","DASHBOARD":"#/components/schemas/DashboardExportData","ASSET_PROFILE":"#/components/schemas/AssetProfileExportData","ASSET":"#/components/schemas/AssetExportData","DEVICE_PROFILE":"#/components/schemas/DeviceProfileExportData","ENTITY_VIEW":"#/components/schemas/EntityViewExportData","NOTIFICATION_TEMPLATE":"#/components/schemas/NotificationTemplateExportData","NOTIFICATION_TARGET":"#/components/schemas/NotificationTargetExportData","NOTIFICATION_RULE":"#/components/schemas/NotificationRuleExportData","AI_MODEL":"#/components/schemas/AiModelExportData","ENTITY_GROUP":"#/components/schemas/EntityGroupExportData","SCHEDULER_EVENT":"#/components/schemas/SchedulerEventExportData","CONVERTER":"#/components/schemas/ConverterExportData","INTEGRATION":"#/components/schemas/IntegrationExportData","ROLE":"#/components/schemas/RoleExportData","REPORT_TEMPLATE":"#/components/schemas/ReportTemplateExportData","USER":"#/components/schemas/UserExportData"}},"properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"entity":{"$ref":"#/components/schemas/ExportableEntity"},"relations":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AttributeExportData"}},"description":"Map of attributes where key is the scope of attributes and value is the list of attributes for that scope"},"calculatedFields":{"type":"array","items":{"$ref":"#/components/schemas/CalculatedField"}}},"required":["entityType"]},"EntityGroupExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"type":"object","properties":{"permissions":{"type":"array","description":"Group permissions to apply to this group on import. Meaningful only for USER groups; ignored for groups of any other type. Each entry's userGroupId, roleId, and entityGroupId may use the external IDs of other entities in this payload or the IDs of entities that already exist on the target tenant; the importer resolves them against the target tenant. System-tenant roles are not allowed and will be rejected. Leave null to skip permission management for this group.","items":{"$ref":"#/components/schemas/GroupPermission"}},"groupOtaPackages":{"type":"array","description":"OTA package assignments to apply to this group on import. Meaningful only for DEVICE groups; ignored for groups of any other type. Each entry's otaPackageId and groupId may reference external IDs of entities in this payload or IDs of entities that already exist on the target tenant. Leave null to skip OTA assignment management for this group.","items":{"$ref":"#/components/schemas/DeviceGroupOtaPackage"}},"groupEntities":{"type":"boolean","description":"Marker indicating that the group's member entities are intended to be transported alongside this payload. Used by flows that convey members through a side channel (notably the version control flow, which stores members in a separate git index). The solution import API does not consume this flag and does not require it to be set. Safe to leave false (default)."},"memberIds":{"type":"array","description":"External IDs of the entities that should be members of this group after import. Each ID is resolved against the target tenant — by other entity in this payload, by external ID, or by existing internal ID — and the matching entities are added to the group. The import fails if any listed member cannot be resolved. Must be null for the special 'All' group (whose membership is implicit and managed by the platform). Leave null to skip membership wiring; existing membership on the target tenant is left untouched.","items":{"type":"string","format":"uuid"}}}},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"EntityViewExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"ExportableEntity":{"type":"object","properties":{"id":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"createdTime":{"type":"integer","format":"int64"},"tenantId":{"$ref":"#/components/schemas/TenantId","writeOnly":true},"name":{"type":"string"}}},"GeofencingCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"entityCoordinates":{"$ref":"#/components/schemas/EntityCoordinates"},"zoneGroups":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ZoneGroupConfiguration"}},"scheduledUpdateEnabled":{"type":"boolean"},"scheduledUpdateInterval":{"type":"integer","format":"int32"}}}],"required":["entityCoordinates","output","zoneGroups"]},"GeofencingReportStrategy":{"type":"string","enum":["REPORT_TRANSITION_EVENTS_ONLY","REPORT_PRESENCE_STATUS_ONLY","REPORT_TRANSITION_EVENTS_AND_PRESENCE_STATUS"]},"HourInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"IntegrationExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"MonthInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"NoDataFilterPredicate":{"allOf":[{"$ref":"#/components/schemas/AlarmRuleKeyFilterPredicate"},{"type":"object","properties":{"unit":{"$ref":"#/components/schemas/TimeUnit"},"duration":{"$ref":"#/components/schemas/AlarmConditionValueLong"}}}],"required":["duration","unit"]},"NodeConnectionInfo":{"type":"object","properties":{"fromIndex":{"type":"integer","format":"int32","description":"Index of rule node in the 'nodes' array of the RuleChainMetaData. Indicates the 'from' part of the connection."},"toIndex":{"type":"integer","format":"int32","description":"Index of rule node in the 'nodes' array of the RuleChainMetaData. Indicates the 'to' part of the connection."},"type":{"type":"string","description":"Type of the relation. Typically indicated the result of processing by the 'from' rule node. For example, 'Success' or 'Failure'"}},"required":["fromIndex","toIndex","type"]},"NotificationRuleExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"NotificationTargetExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"NotificationTemplateExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"OtaPackageExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"OtaPackageType":{"type":"string","enum":["FIRMWARE","SOFTWARE"]},"Output":{"type":"object","discriminator":{"propertyName":"type","mapping":{"TIME_SERIES":"#/components/schemas/TimeSeriesOutput","ATTRIBUTES":"#/components/schemas/AttributesOutput"}},"properties":{"name":{"type":"string"},"scope":{"$ref":"#/components/schemas/AttributeScope"},"decimalsByDefault":{"type":"integer","format":"int32"},"strategy":{"$ref":"#/components/schemas/OutputStrategy"},"type":{"type":"string"}},"required":["type"]},"OutputStrategy":{},"PropagationCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"arguments":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Argument"},"minProperties":1},"expression":{"type":"string"},"relation":{"$ref":"#/components/schemas/RelationPathLevel"},"applyExpressionToResolvedArguments":{"type":"boolean"}}}],"required":["arguments","output","relation"]},"QuarterInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"ReferencedEntityKey":{"type":"object","properties":{"key":{"type":"string"},"type":{"$ref":"#/components/schemas/ArgumentType"},"scope":{"$ref":"#/components/schemas/AttributeScope"}}},"RelatedEntitiesAggregationCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"relation":{"$ref":"#/components/schemas/RelationPathLevel"},"arguments":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Argument"},"minProperties":1},"deduplicationIntervalInSec":{"type":"integer","format":"int64"},"metrics":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AggMetric"},"minProperties":1},"useLatestTs":{"type":"boolean"},"scheduledUpdateInterval":{"type":"integer","format":"int32"},"scheduledUpdateEnabled":{"type":"boolean"}}}],"required":["arguments","metrics","output","relation"]},"RelationPathLevel":{"type":"object","properties":{"direction":{"$ref":"#/components/schemas/EntitySearchDirection"},"relationType":{"type":"string","minLength":1}},"required":["direction","relationType"]},"RelationPathQueryDynamicSourceConfiguration":{"allOf":[{"$ref":"#/components/schemas/CfArgumentDynamicSourceConfiguration"},{"type":"object","properties":{"levels":{"type":"array","items":{"$ref":"#/components/schemas/RelationPathLevel"}}}}]},"RepeatingAlarmCondition":{"allOf":[{"$ref":"#/components/schemas/AlarmCondition"},{"type":"object","properties":{"count":{"$ref":"#/components/schemas/AlarmConditionValueInteger"}}}],"required":["count","expression"]},"ReportTemplateExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"RoleExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"RuleChainConnectionInfo":{"type":"object","properties":{"fromIndex":{"type":"integer","format":"int32","description":"Index of rule node in the 'nodes' array of the RuleChainMetaData. Indicates the 'from' part of the connection."},"targetRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"JSON object with the Rule Chain Id."},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with the additional information about the connection."},"type":{"type":"string","description":"Type of the relation. Typically indicated the result of processing by the 'from' rule node. For example, 'Success' or 'Failure'"}},"required":["additionalInfo","fromIndex","targetRuleChainId","type"]},"RuleChainExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"type":"object","properties":{"metaData":{"$ref":"#/components/schemas/RuleChainMetaData"}}},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"RuleChainMetaData":{"type":"object","description":"A JSON value representing the rule chain metadata.","properties":{"ruleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"JSON object with Rule Chain Id.","readOnly":true},"version":{"type":"integer","format":"int64","description":"Version of the Rule Chain"},"firstNodeIndex":{"type":"integer","format":"int32","description":"Index of the first rule node in the 'nodes' list"},"nodes":{"type":"array","description":"List of rule node JSON objects","items":{"$ref":"#/components/schemas/RuleNode"}},"connections":{"type":"array","description":"List of JSON objects that represent connections between rule nodes","items":{"$ref":"#/components/schemas/NodeConnectionInfo"}},"ruleChainConnections":{"type":"array","description":"List of JSON objects that represent connections between rule nodes and other rule chains.","items":{"$ref":"#/components/schemas/RuleChainConnectionInfo"}},"notes":{"type":"array","description":"List of sticky notes placed on the rule chain canvas","items":{"$ref":"#/components/schemas/RuleChainNote"}}},"required":["nodes","ruleChainId"]},"RuleChainNote":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier of the note on the canvas"},"x":{"type":"integer","format":"int32","description":"Horizontal position of the note on the canvas, in pixels"},"y":{"type":"integer","format":"int32","description":"Vertical position of the note on the canvas, in pixels"},"width":{"type":"integer","format":"int32","description":"Width of the note, in pixels"},"height":{"type":"integer","format":"int32","description":"Height of the note, in pixels"},"content":{"type":"string","description":"Markdown or HTML content of the note"},"backgroundColor":{"type":"string","description":"Background color of the note in CSS hex format, e.g. '#FFF9C4'"},"borderColor":{"type":"string","description":"Border color of the note in CSS hex format, e.g. '#E6C800'"},"borderWidth":{"type":"integer","format":"int32","description":"Border width of the note in pixels"},"applyDefaultMarkdownStyle":{"type":"boolean","description":"Whether to apply the default markdown stylesheet to the note content"},"markdownCss":{"type":"string","description":"Custom CSS styles applied to the note content"}}},"SchedulerEventExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"ScriptCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"arguments":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Argument"},"minProperties":1},"expression":{"type":"string"}}}],"required":["arguments","output"]},"SimpleAlarmCondition":{"allOf":[{"$ref":"#/components/schemas/AlarmCondition"}],"required":["expression"]},"SimpleAlarmConditionExpression":{"allOf":[{"$ref":"#/components/schemas/AlarmConditionExpression"},{"type":"object","properties":{"filters":{"type":"array","items":{"$ref":"#/components/schemas/AlarmConditionFilter"},"minItems":1},"operation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"}}}],"required":["filters"]},"SimpleCalculatedFieldConfiguration":{"allOf":[{"$ref":"#/components/schemas/CalculatedFieldConfiguration"},{"type":"object","properties":{"arguments":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/Argument"},"minProperties":1},"expression":{"type":"string"},"useLatestTs":{"type":"boolean"}}}],"required":["arguments","output"]},"SolutionData":{"type":"object","description":"Portable solution package containing exported entities grouped by type. Represents a self-contained snapshot that can be imported into another tenant.","properties":{"entities":{"type":"object","additionalProperties":{"type":"array","items":{"oneOf":[{"$ref":"#/components/schemas/AiModelExportData"},{"$ref":"#/components/schemas/AssetExportData"},{"$ref":"#/components/schemas/AssetProfileExportData"},{"$ref":"#/components/schemas/ConverterExportData"},{"$ref":"#/components/schemas/CustomerExportData"},{"$ref":"#/components/schemas/DashboardExportData"},{"$ref":"#/components/schemas/DeviceExportData"},{"$ref":"#/components/schemas/DeviceProfileExportData"},{"$ref":"#/components/schemas/EntityGroupExportData"},{"$ref":"#/components/schemas/EntityViewExportData"},{"$ref":"#/components/schemas/IntegrationExportData"},{"$ref":"#/components/schemas/NotificationRuleExportData"},{"$ref":"#/components/schemas/NotificationTargetExportData"},{"$ref":"#/components/schemas/NotificationTemplateExportData"},{"$ref":"#/components/schemas/OtaPackageExportData"},{"$ref":"#/components/schemas/ReportTemplateExportData"},{"$ref":"#/components/schemas/RoleExportData"},{"$ref":"#/components/schemas/RuleChainExportData"},{"$ref":"#/components/schemas/SchedulerEventExportData"},{"$ref":"#/components/schemas/TbResourceExportData"},{"$ref":"#/components/schemas/UserExportData"},{"$ref":"#/components/schemas/WidgetTypeExportData"},{"$ref":"#/components/schemas/WidgetsBundleExportData"}]}},"description":"Exported entities grouped by entity type. Each key is an entity type (e.g. DEVICE_PROFILE, RULE_CHAIN) and the value is a list of entity export data objects."}},"required":["entities"]},"SpecificTimeSchedule":{"allOf":[{"$ref":"#/components/schemas/AlarmSchedule"},{"type":"object","properties":{"timezone":{"type":"string"},"daysOfWeek":{"type":"array","items":{"type":"integer","format":"int32"},"uniqueItems":true},"startsOn":{"type":"integer","format":"int64"},"endsOn":{"type":"integer","format":"int64"}}}]},"TbResourceExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"TbelAlarmConditionExpression":{"allOf":[{"$ref":"#/components/schemas/AlarmConditionExpression"},{"type":"object","properties":{"expression":{"type":"string","minLength":1}}}],"required":["expression"]},"TimeSeriesImmediateOutputStrategy":{"allOf":[{"$ref":"#/components/schemas/TimeSeriesOutputStrategy"},{"type":"object","properties":{"ttl":{"type":"integer","format":"int64"},"saveTimeSeries":{"type":"boolean"},"saveLatest":{"type":"boolean"},"sendWsUpdate":{"type":"boolean"},"processCfs":{"type":"boolean"}}}]},"TimeSeriesOutput":{"allOf":[{"$ref":"#/components/schemas/Output"},{"type":"object","properties":{"strategy":{"oneOf":[{"$ref":"#/components/schemas/TimeSeriesImmediateOutputStrategy"},{"$ref":"#/components/schemas/TimeSeriesRuleChainOutputStrategy"}]}}}]},"TimeSeriesOutputStrategy":{"discriminator":{"propertyName":"type","mapping":{"IMMEDIATE":"#/components/schemas/TimeSeriesImmediateOutputStrategy","RULE_CHAIN":"#/components/schemas/TimeSeriesRuleChainOutputStrategy"}},"properties":{"type":{"type":"string"}},"required":["type"]},"TimeSeriesRuleChainOutputStrategy":{"allOf":[{"$ref":"#/components/schemas/TimeSeriesOutputStrategy"}]},"TimeUnit":{"type":"string","enum":["NANOSECONDS","MICROSECONDS","MILLISECONDS","SECONDS","MINUTES","HOURS","DAYS"]},"UserExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"Watermark":{"type":"object","properties":{"duration":{"type":"integer","format":"int64","minimum":0}}},"WeekInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"WeekSunSatInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"WidgetTypeExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"WidgetsBundleExportData":{"allOf":[{"$ref":"#/components/schemas/EntityExportDataObject"},{"type":"object","properties":{"widgets":{"type":"array","description":"List of widgets in the bundle","items":{"$ref":"#/components/schemas/JsonNode"}},"fqns":{"type":"array","items":{"type":"string"}}}},{"$ref":"#/components/schemas/EntityExportData"}],"required":["entityType"]},"YearInterval":{"allOf":[{"$ref":"#/components/schemas/AggInterval"},{"type":"object","properties":{"tz":{"type":"string","minLength":1},"offsetSec":{"type":"integer","format":"int64"}}}],"required":["tz"]},"ZoneGroupConfiguration":{"type":"object","properties":{"perimeterKeyName":{"type":"string","minLength":1},"reportStrategy":{"$ref":"#/components/schemas/GeofencingReportStrategy"},"createRelationsWithMatchedZones":{"type":"boolean"},"refEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"refDynamicSourceConfiguration":{"oneOf":[{"$ref":"#/components/schemas/CurrentOwnerDynamicSourceConfiguration"},{"$ref":"#/components/schemas/RelationPathQueryDynamicSourceConfiguration"}]},"relationType":{"type":"string"},"direction":{"$ref":"#/components/schemas/EntitySearchDirection"}},"required":["perimeterKeyName","reportStrategy"]},"SolutionValidationResult":{"type":"object","description":"Result of a solution validation (dry-run). Checks structural validity and dependency references without modifying any data.","properties":{"valid":{"type":"boolean","description":"'true' if the solution can be imported without errors. 'false' if there are structural issues (empty entities, unsupported types, malformed data).","example":true},"entitySummary":{"type":"object","additionalProperties":{"type":"integer","format":"int32"},"description":"Number of entities per type found in the solution file.","example":{"RULE_CHAIN":2,"DEVICE_PROFILE":1}},"conflicts":{"type":"array","description":"List of blocking issues that would prevent import (e.g. unsupported entity types, missing or malformed entity data).","example":["Unsupported entity types: UNKNOWN_TYPE"],"items":{"type":"string"}},"warnings":{"type":"array","description":"List of non-blocking warnings (e.g. missing dependency references).","example":["DEVICE_PROFILE 'My DP' references rule chain (uuid) which is not included in the solution file"],"items":{"type":"string"}}}},"SolutionImportResult":{"type":"object","description":"Result of a solution import operation.","properties":{"success":{"type":"boolean","description":"'true' if all entities were imported successfully.","example":true},"created":{"type":"object","additionalProperties":{"type":"integer","format":"int32"},"description":"Number of newly created entities per entity type. Entity types with zero created entities are omitted. Entity groups are reported under the ENTITY_GROUP key regardless of their inner type (e.g. a user group and a device group both contribute to ENTITY_GROUP).","example":{"RULE_CHAIN":2,"DEVICE_PROFILE":1,"DEVICE":3,"ENTITY_GROUP":1}},"idMapping":{"type":"object","additionalProperties":{"type":"string","format":"uuid"},"description":"Mapping from external entity IDs (as they appear in the solution file) to the internal entity IDs assigned during import."}}},"EntityExportSettings":{"type":"object","properties":{"exportRelations":{"type":"boolean"},"exportAttributes":{"type":"boolean"},"exportCredentials":{"type":"boolean"},"exportCalculatedFields":{"type":"boolean"},"exportPermissions":{"type":"boolean"},"exportGroupEntities":{"type":"boolean"},"embedGroupMembers":{"type":"boolean"}}},"SolutionExportRequest":{"type":"object","description":"Solution export request specifying which entities to include and export settings.","properties":{"internalIds":{"type":"array","description":"Set of internal entity IDs to export. The 'id' of each EntityId is the server-internal UUID. All listed entities must belong to the current tenant. Optional, but at least one of 'internalIds' or 'externalIds' must be non-empty.","items":{"$ref":"#/components/schemas/EntityId"},"uniqueItems":true},"externalIds":{"type":"array","description":"Set of external entity IDs to export. The 'id' of each EntityId is the external UUID (as stored in the 'externalId' field on the entity in the current tenant). The server looks up each entity by 'externalId' and 'entityType' within the current tenant. Optional, but at least one of 'internalIds' or 'externalIds' must be non-empty.","items":{"$ref":"#/components/schemas/EntityId"},"uniqueItems":true},"settings":{"$ref":"#/components/schemas/EntityExportSettings","description":"Optional export settings controlling what additional data is included (relations, attributes, credentials, etc.). If not specified, default settings will be used that include all available data."}}},"SolutionExportResponse":{"type":"object","description":"Solution export response containing the exported solution data and any dependency warnings.","properties":{"solution":{"$ref":"#/components/schemas/SolutionData","description":"The exported solution data containing all requested entities grouped by type."},"warnings":{"type":"array","description":"List of dependency warnings. Generated when exported entities reference other entities that are not included in the export (e.g. a device profile references a rule chain that was not selected for export).","example":["DEVICE_PROFILE 'My DP' references RuleChain (784f394c-42b6-435a-983c-b7beff2784f9) which is not in the export selection"],"items":{"type":"string"}}}},"DeleteTenantRequest":{"type":"object","properties":{"reason":{"type":"string"},"additionalNotes":{"type":"string"}}},"JwtPair":{"type":"object","description":"JWT Pair","properties":{"token":{"type":"string","description":"The JWT Access Token. Used to perform API calls.","example":"AAB254FF67D.."},"refreshToken":{"type":"string","description":"The JWT Refresh Token. Used to get new JWT Access Token if old one has expired.","example":"AAB254FF67D.."},"scope":{"$ref":"#/components/schemas/Authority"}}},"CaptchaParams":{"type":"object","discriminator":{"propertyName":"version","mapping":{"enterprise":"#/components/schemas/EnterpriseCaptchaParams","v2":"#/components/schemas/V2CaptchaParams","v3":"#/components/schemas/V3CaptchaParams"}},"properties":{"version":{"type":"string"}},"required":["version"]},"DefaultDashboardParams":{"type":"object","properties":{"id":{"type":"string","description":"Default dashboard Id to assign for the new user.","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"fullscreen":{"type":"boolean","description":"Set default dashboard to full screen mode."}}},"EnterpriseCaptchaParams":{"allOf":[{"$ref":"#/components/schemas/CaptchaParams"},{"type":"object","properties":{"projectId":{"type":"string","description":"Your Google Cloud project ID"},"serviceAccountCredentials":{"type":"string","description":"Service account credentials"},"serviceAccountCredentialsFileName":{"type":"string","description":"Service account credentials file name"},"androidKey":{"type":"string","description":"The reCAPTCHA key associated with android app."},"iosKey":{"type":"string","description":"The reCAPTCHA key associated with iOS app."},"logActionName":{"type":"string","description":"Optional action name used for logging"}}}],"required":["version"]},"HomeDashboardParams":{"type":"object","properties":{"id":{"type":"string","description":"Home dashboard Id to assign for the new user.","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"hideToolbar":{"type":"boolean","description":"Indicates if hide toolbar should be hidden."}}},"SelfRegistrationType":{"type":"string","enum":["WEB","MOBILE"]},"SignUpField":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SignUpFieldId","description":"Signup field id"},"label":{"type":"string","description":"Signup field label"},"required":{"type":"boolean","description":"Indicates if field is required"}},"required":["id","label"]},"SignUpFieldId":{"type":"string","enum":["EMAIL","PASSWORD","REPEAT_PASSWORD","FIRST_NAME","LAST_NAME","PHONE","COUNTRY","CITY","STATE","ZIP","ADDRESS","ADDRESS2"]},"V2CaptchaParams":{"allOf":[{"$ref":"#/components/schemas/CaptchaParams"},{"type":"object","properties":{"siteKey":{"type":"string","description":"Captcha site key for 'I'm not a robot' validation"},"logActionName":{"type":"string","description":"Optional action name used for logging (for captcha version 'v3' and 'enterprise')"},"secretKey":{"type":"string","description":"Secret key to validate the Captcha. Should match the Captcha Site Key."}}}],"required":["version"]},"V3CaptchaParams":{"allOf":[{"$ref":"#/components/schemas/CaptchaParams"},{"type":"object","properties":{"siteKey":{"type":"string","description":"Captcha site key for 'I'm not a robot' validation"},"logActionName":{"type":"string","description":"Optional action name used for logging (for captcha version 'v3' and 'enterprise')"},"secretKey":{"type":"string","description":"Secret key to validate the Captcha. Should match the Captcha Site Key."}}}],"required":["version"]},"WebSelfRegistrationParams":{"allOf":[{"$ref":"#/components/schemas/SelfRegistrationParams"},{"type":"object","properties":{"enabled":{"type":"boolean","description":"Indicates if self-registration is allowed via sign-up form"},"title":{"type":"string","description":"The text message to appear on login form"},"captcha":{"description":"Captcha site key for 'I'm not a robot' validation","oneOf":[{"$ref":"#/components/schemas/EnterpriseCaptchaParams"},{"$ref":"#/components/schemas/V2CaptchaParams"},{"$ref":"#/components/schemas/V3CaptchaParams"}]},"permissions":{"type":"array","description":"Group Permissions to assign for the new customer user.","items":{"$ref":"#/components/schemas/GroupPermission"}},"notificationRecipient":{"$ref":"#/components/schemas/NotificationTargetId","description":"Recipient to use for notifications when new user self-registered."},"signUpFields":{"type":"array","description":"List of sign-up form fields","items":{"$ref":"#/components/schemas/SignUpField"}},"customerTitlePrefix":{"type":"string","description":"Prefix to add to created customer"},"showPrivacyPolicy":{"type":"boolean","description":"Show or hide 'Privacy Policy'"},"showTermsOfUse":{"type":"boolean","description":"Show or hide 'Terms of Use'"},"defaultDashboard":{"$ref":"#/components/schemas/DefaultDashboardParams","description":"Default dashboard params"},"homeDashboard":{"$ref":"#/components/schemas/HomeDashboardParams","description":"Home dashboard params"},"customerGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"Id of the customer group customer wil be added to."},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId","description":"Custom menu id"},"privacyPolicy":{"type":"string","description":"Privacy policy text. Supports HTML."},"termsOfUse":{"type":"string","description":"Terms of User text. Supports HTML."},"domainId":{"$ref":"#/components/schemas/DomainId","description":"Domain name for self registration URL. Typically this matches the domain name from the Login White Labeling page."}}}],"required":["captcha","domainId","permissions","signUpFields","title","type"]},"Secret":{"type":"object","description":"A JSON value representing the Secret.","properties":{"id":{"$ref":"#/components/schemas/SecretId","description":"JSON object with the Secret Id. Specify this field to update the Secret. Referencing non-existing Secret Id will cause error. Omit this field to create new Secret."},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the secret cannot be changed.","readOnly":true},"name":{"type":"string","description":"Secret name","example":"Secret","minLength":1},"type":{"$ref":"#/components/schemas/SecretType","description":"Secret type.","example":"TEXT"},"description":{"type":"string","description":"Secret description.","example":"Secret description"},"value":{"type":"string"},"encryptedValue":{"type":"string"}},"required":["name","type"]},"RuleChain":{"type":"object","description":"A JSON value representing the rule chain.","properties":{"id":{"$ref":"#/components/schemas/RuleChainId","description":"JSON object with the Rule Chain Id. Specify this field to update the Rule Chain. Referencing non-existing Rule Chain Id will cause error. Omit this field to create new rule chain."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the rule chain creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"name":{"type":"string","description":"Rule Chain name","example":"Humidity data processing"},"type":{"$ref":"#/components/schemas/RuleChainType","description":"Rule Chain type. 'EDGE' rule chains are processing messages on the edge devices only.","example":"A4B72CCDFF33"},"firstRuleNodeId":{"$ref":"#/components/schemas/RuleNodeId","description":"JSON object with Rule Chain Id. Pointer to the first rule node that should receive all messages pushed to this rule chain."},"root":{"type":"boolean","description":"Indicates root rule chain. The root rule chain process messages from all devices and entities by default. User may configure default rule chain per device profile."},"debugMode":{"type":"boolean","description":"Reserved for future usage."},"version":{"type":"integer","format":"int64"},"configuration":{"$ref":"#/components/schemas/JsonNode"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}},"required":["name"]},"RuleChainData":{"type":"object","description":"A JSON value representing the rule chains.","properties":{"ruleChains":{"type":"array","description":"List of the Rule Chain objects.","items":{"$ref":"#/components/schemas/RuleChain"},"readOnly":true},"metadata":{"type":"array","description":"List of the Rule Chain metadata objects.","items":{"$ref":"#/components/schemas/RuleChainMetaData"},"readOnly":true}},"required":["metadata","ruleChains"]},"RuleChainType":{"type":"string","enum":["CORE","EDGE"]},"RuleChainImportResult":{"type":"object","properties":{"ruleChainId":{"$ref":"#/components/schemas/RuleChainId"},"ruleChainName":{"type":"string"},"updated":{"type":"boolean"},"error":{"type":"string"}}},"ScriptLanguage":{"type":"string","enum":["JS","TBEL"]},"DefaultRuleChainCreateRequest":{"type":"object","description":"A JSON value representing the request.","properties":{"name":{"type":"string","description":"Name of the new rule chain","example":"Root Rule Chain"}},"required":["name"]},"TbResource":{"type":"object","description":"A JSON value representing the Resource.","properties":{"id":{"$ref":"#/components/schemas/TbResourceId","description":"JSON object with the Resource Id. Specify this field to update the Resource. Referencing non-existing Resource Id will cause error. Omit this field to create new Resource."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the resource creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the resource can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Customer Id of the resource can't be changed.","readOnly":true},"title":{"type":"string","description":"Resource title.","example":"BinaryAppDataContainer id=19 v1.0"},"resourceType":{"$ref":"#/components/schemas/ResourceType","description":"Resource type.","example":"LWM2M_MODEL"},"resourceSubType":{"$ref":"#/components/schemas/ResourceSubType","description":"Resource sub type.","example":"IOT_SVG"},"resourceKey":{"type":"string","description":"Resource key.","example":"19_1.0"},"publicResourceKey":{"type":"string","description":"Public resource key."},"etag":{"type":"string","description":"Resource etag.","example":"33a64df551425fcc55e4d42a148795d9f25f89d4","readOnly":true},"fileName":{"type":"string","description":"Resource file name.","example":"19.xml"},"descriptor":{"$ref":"#/components/schemas/JsonNode","description":"Resource descriptor."},"data":{"type":"string","description":"Resource data.","example":"77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLQpGSUxFIElORk9STUFUSU9OCgpPTUEgUGVybWFuZW50IERvY3VtZW50CiAgIEZpbGU6IE9NQS1TVVAtTHdNMk1fQmluYXJ5QXBwRGF0YUNvbnRhaW5lci1WMV8wXzEtMjAxOTAyMjEtQQogICBUeXBlOiB4bWwKClB1YmxpYyBSZWFjaGFibGUgSW5mb3JtYXRpb24KICAgUGF0aDogaHR0cDovL3d3dy5vcGVubW9iaWxlYWxsaWFuY2Uub3JnL3RlY2gvcHJvZmlsZXMKICAgTmFtZTogTHdNMk1fQmluYXJ5QXBwRGF0YUNvbnRhaW5lci12MV8wXzEueG1sCgpOT1JNQVRJVkUgSU5GT1JNQVRJT04KCiAgSW5mb3JtYXRpb24gYWJvdXQgdGhpcyBmaWxlIGNhbiBiZSBmb3VuZCBpbiB0aGUgbGF0ZXN0IHJldmlzaW9uIG9mCgogIE9NQS1UUy1MV00yTV9CaW5hcnlBcHBEYXRhQ29udGFpbmVyLVYxXzBfMQoKICBUaGlzIGlzIGF2YWlsYWJsZSBhdCBodHRwOi8vd3d3Lm9wZW5tb2JpbGVhbGxpYW5jZS5vcmcvCgogIFNlbmQgY29tbWVudHMgdG8gaHR0cHM6Ly9naXRodWIuY29tL09wZW5Nb2JpbGVBbGxpYW5jZS9PTUFfTHdNMk1fZm9yX0RldmVsb3BlcnMvaXNzdWVzCgpDSEFOR0UgSElTVE9SWQoKMTUwNjIwMTggU3RhdHVzIGNoYW5nZWQgdG8gQXBwcm92ZWQgYnkgRE0sIERvYyBSZWYgIyBPTUEtRE0mU0UtMjAxOC0wMDYxLUlOUF9MV00yTV9BUFBEQVRBX1YxXzBfRVJQX2Zvcl9maW5hbF9BcHByb3ZhbAoyMTAyMjAxOSBTdGF0dXMgY2hhbmdlZCB0byBBcHByb3ZlZCBieSBJUFNPLCBEb2MgUmVmICMgT01BLUlQU08tMjAxOS0wMDI1LUlOUF9Md00yTV9PYmplY3RfQXBwX0RhdGFfQ29udGFpbmVyXzFfMF8xX2Zvcl9GaW5hbF9BcHByb3ZhbAoKTEVHQUwgRElTQ0xBSU1FUgoKQ29weXJpZ2h0IDIwMTkgT3BlbiBNb2JpbGUgQWxsaWFuY2UuCgpSZWRpc3RyaWJ1dGlvbiBhbmQgdXNlIGluIHNvdXJjZSBhbmQgYmluYXJ5IGZvcm1zLCB3aXRoIG9yIHdpdGhvdXQKbW9kaWZpY2F0aW9uLCBhcmUgcGVybWl0dGVkIHByb3ZpZGVkIHRoYXQgdGhlIGZvbGxvd2luZyBjb25kaXRpb25zCmFyZSBtZXQ6CgoxLiBSZWRpc3RyaWJ1dGlvbnMgb2Ygc291cmNlIGNvZGUgbXVzdCByZXRhaW4gdGhlIGFib3ZlIGNvcHlyaWdodApub3RpY2UsIHRoaXMgbGlzdCBvZiBjb25kaXRpb25zIGFuZCB0aGUgZm9sbG93aW5nIGRpc2NsYWltZXIuCjIuIFJlZGlzdHJpYnV0aW9ucyBpbiBiaW5hcnkgZm9ybSBtdXN0IHJlcHJvZHVjZSB0aGUgYWJvdmUgY29weXJpZ2h0Cm5vdGljZSwgdGhpcyBsaXN0IG9mIGNvbmRpdGlvbnMgYW5kIHRoZSBmb2xsb3dpbmcgZGlzY2xhaW1lciBpbiB0aGUKZG9jdW1lbnRhdGlvbiBhbmQvb3Igb3RoZXIgbWF0ZXJpYWxzIHByb3ZpZGVkIHdpdGggdGhlIGRpc3RyaWJ1dGlvbi4KMy4gTmVpdGhlciB0aGUgbmFtZSBvZiB0aGUgY29weXJpZ2h0IGhvbGRlciBub3IgdGhlIG5hbWVzIG9mIGl0cwpjb250cmlidXRvcnMgbWF5IGJlIHVzZWQgdG8gZW5kb3JzZSBvciBwcm9tb3RlIHByb2R1Y3RzIGRlcml2ZWQKZnJvbSB0aGlzIHNvZnR3YXJlIHdpdGhvdXQgc3BlY2lmaWMgcHJpb3Igd3JpdHRlbiBwZXJtaXNzaW9uLgoKVEhJUyBTT0ZUV0FSRSBJUyBQUk9WSURFRCBCWSBUSEUgQ09QWVJJR0hUIEhPTERFUlMgQU5EIENPTlRSSUJVVE9SUwoiQVMgSVMiIEFORCBBTlkgRVhQUkVTUyBPUiBJTVBMSUVEIFdBUlJBTlRJRVMsIElOQ0xVRElORywgQlVUIE5PVApMSU1JVEVEIFRPLCBUSEUgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWSBBTkQgRklUTkVTUwpGT1IgQSBQQVJUSUNVTEFSIFBVUlBPU0UgQVJFIERJU0NMQUlNRUQuIElOIE5PIEVWRU5UIFNIQUxMIFRIRQpDT1BZUklHSFQgSE9MREVSIE9SIENPTlRSSUJVVE9SUyBCRSBMSUFCTEUgRk9SIEFOWSBESVJFQ1QsIElORElSRUNULApJTkNJREVOVEFMLCBTUEVDSUFMLCBFWEVNUExBUlksIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyAoSU5DTFVESU5HLApCVVQgTk9UIExJTUlURUQgVE8sIFBST0NVUkVNRU5UIE9GIFNVQlNUSVRVVEUgR09PRFMgT1IgU0VSVklDRVM7CkxPU1MgT0YgVVNFLCBEQVRBLCBPUiBQUk9GSVRTOyBPUiBCVVNJTkVTUyBJTlRFUlJVUFRJT04pIEhPV0VWRVIKQ0FVU0VEIEFORCBPTiBBTlkgVEhFT1JZIE9GIExJQUJJTElUWSwgV0hFVEhFUiBJTiBDT05UUkFDVCwgU1RSSUNUCkxJQUJJTElUWSwgT1IgVE9SVCAoSU5DTFVESU5HIE5FR0xJR0VOQ0UgT1IgT1RIRVJXSVNFKSBBUklTSU5HIElOCkFOWSBXQVkgT1VUIE9GIFRIRSBVU0UgT0YgVEhJUyBTT0ZUV0FSRSwgRVZFTiBJRiBBRFZJU0VEIE9GIFRIRQpQT1NTSUJJTElUWSBPRiBTVUNIIERBTUFHRS4KClRoZSBhYm92ZSBsaWNlbnNlIGlzIHVzZWQgYXMgYSBsaWNlbnNlIHVuZGVyIGNvcHlyaWdodCBvbmx5LiBQbGVhc2UKcmVmZXJlbmNlIHRoZSBPTUEgSVBSIFBvbGljeSBmb3IgcGF0ZW50IGxpY2Vuc2luZyB0ZXJtczoKaHR0cHM6Ly93d3cub21hc3BlY3dvcmtzLm9yZy9hYm91dC9pbnRlbGxlY3R1YWwtcHJvcGVydHktcmlnaHRzLwoKLS0+CjxMV00yTSB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iaHR0cDovL29wZW5tb2JpbGVhbGxpYW5jZS5vcmcvdGVjaC9wcm9maWxlcy9MV00yTS54c2QiPgoJPE9iamVjdCBPYmplY3RUeXBlPSJNT0RlZmluaXRpb24iPgoJCTxOYW1lPkJpbmFyeUFwcERhdGFDb250YWluZXI8L05hbWU+CgkJPERlc2NyaXB0aW9uMT48IVtDREFUQVtUaGlzIEx3TTJNIE9iamVjdHMgcHJvdmlkZXMgdGhlIGFwcGxpY2F0aW9uIHNlcnZpY2UgZGF0YSByZWxhdGVkIHRvIGEgTHdNMk0gU2VydmVyLCBlZy4gV2F0ZXIgbWV0ZXIgZGF0YS4gClRoZXJlIGFyZSBzZXZlcmFsIG1ldGhvZHMgdG8gY3JlYXRlIGluc3RhbmNlIHRvIGluZGljYXRlIHRoZSBtZXNzYWdlIGRpcmVjdGlvbiBiYXNlZCBvbiB0aGUgbmVnb3RpYXRpb24gYmV0d2VlbiBBcHBsaWNhdGlvbiBhbmQgTHdNMk0uIFRoZSBDbGllbnQgYW5kIFNlcnZlciBzaG91bGQgbmVnb3RpYXRlIHRoZSBpbnN0YW5jZShzKSB1c2VkIHRvIGV4Y2hhbmdlIHRoZSBkYXRhLiBGb3IgZXhhbXBsZToKIC0gVXNpbmcgYSBzaW5nbGUgaW5zdGFuY2UgZm9yIGJvdGggZGlyZWN0aW9ucyBjb21tdW5pY2F0aW9uLCBmcm9tIENsaWVudCB0byBTZXJ2ZXIgYW5kIGZyb20gU2VydmVyIHRvIENsaWVudC4KIC0gVXNpbmcgYW4gaW5zdGFuY2UgZm9yIGNvbW11bmljYXRpb24gZnJvbSBDbGllbnQgdG8gU2VydmVyIGFuZCBhbm90aGVyIG9uZSBmb3IgY29tbXVuaWNhdGlvbiBmcm9tIFNlcnZlciB0byBDbGllbnQKIC0gVXNpbmcgc2V2ZXJhbCBpbnN0YW5jZXMKXV0+PC9EZXNjcmlwdGlvbjE+CgkJPE9iamVjdElEPjE5PC9PYmplY3RJRD4KCQk8T2JqZWN0VVJOPnVybjpvbWE6bHdtMm06b21hOjE5PC9PYmplY3RVUk4+CgkJPExXTTJNVmVyc2lvbj4xLjA8L0xXTTJNVmVyc2lvbj4KCQk8T2JqZWN0VmVyc2lvbj4xLjA8L09iamVjdFZlcnNpb24+CgkJPE11bHRpcGxlSW5zdGFuY2VzPk11bHRpcGxlPC9NdWx0aXBsZUluc3RhbmNlcz4KCQk8TWFuZGF0b3J5Pk9wdGlvbmFsPC9NYW5kYXRvcnk+CgkJPFJlc291cmNlcz4KCQkJPEl0ZW0gSUQ9IjAiPjxOYW1lPkRhdGE8L05hbWU+CgkJCQk8T3BlcmF0aW9ucz5SVzwvT3BlcmF0aW9ucz4KCQkJCTxNdWx0aXBsZUluc3RhbmNlcz5NdWx0aXBsZTwvTXVsdGlwbGVJbnN0YW5jZXM+CgkJCQk8TWFuZGF0b3J5Pk1hbmRhdG9yeTwvTWFuZGF0b3J5PgoJCQkJPFR5cGU+T3BhcXVlPC9UeXBlPgoJCQkJPFJhbmdlRW51bWVyYXRpb24gLz4KCQkJCTxVbml0cyAvPgoJCQkJPERlc2NyaXB0aW9uPjwhW0NEQVRBW0luZGljYXRlcyB0aGUgYXBwbGljYXRpb24gZGF0YSBjb250ZW50Ll1dPjwvRGVzY3JpcHRpb24+CgkJCTwvSXRlbT4KCQkJPEl0ZW0gSUQ9IjEiPjxOYW1lPkRhdGEgUHJpb3JpdHk8L05hbWU+CgkJCQk8T3BlcmF0aW9ucz5SVzwvT3BlcmF0aW9ucz4KCQkJCTxNdWx0aXBsZUluc3RhbmNlcz5TaW5nbGU8L011bHRpcGxlSW5zdGFuY2VzPgoJCQkJPE1hbmRhdG9yeT5PcHRpb25hbDwvTWFuZGF0b3J5PgoJCQkJPFR5cGU+SW50ZWdlcjwvVHlwZT4KCQkJCTxSYW5nZUVudW1lcmF0aW9uPjEgYnl0ZXM8L1JhbmdlRW51bWVyYXRpb24+CgkJCQk8VW5pdHMgLz4KCQkJCTxEZXNjcmlwdGlvbj48IVtDREFUQVtJbmRpY2F0ZXMgdGhlIEFwcGxpY2F0aW9uIGRhdGEgcHJpb3JpdHk6CjA6SW1tZWRpYXRlCjE6QmVzdEVmZm9ydAoyOkxhdGVzdAozLTEwMDogUmVzZXJ2ZWQgZm9yIGZ1dHVyZSB1c2UuCjEwMS0yNTQ6IFByb3ByaWV0YXJ5IG1vZGUuXV0+PC9EZXNjcmlwdGlvbj4KCQkJPC9JdGVtPgoJCQk8SXRlbSBJRD0iMiI+PE5hbWU+RGF0YSBDcmVhdGlvbiBUaW1lPC9OYW1lPgoJCQkJPE9wZXJhdGlvbnM+Ulc8L09wZXJhdGlvbnM+CgkJCQk8TXVsdGlwbGVJbnN0YW5jZXM+U2luZ2xlPC9NdWx0aXBsZUluc3RhbmNlcz4KCQkJCTxNYW5kYXRvcnk+T3B0aW9uYWw8L01hbmRhdG9yeT4KCQkJCTxUeXBlPlRpbWU8L1R5cGU+CgkJCQk8UmFuZ2VFbnVtZXJhdGlvbiAvPgoJCQkJPFVuaXRzIC8+CgkJCQk8RGVzY3JpcHRpb24+PCFbQ0RBVEFbSW5kaWNhdGVzIHRoZSBEYXRhIGluc3RhbmNlIGNyZWF0aW9uIHRpbWVzdGFtcC5dXT48L0Rlc2NyaXB0aW9uPgoJCQk8L0l0ZW0+CgkJCTxJdGVtIElEPSIzIj48TmFtZT5EYXRhIERlc2NyaXB0aW9uPC9OYW1lPgoJCQkJPE9wZXJhdGlvbnM+Ulc8L09wZXJhdGlvbnM+CgkJCQk8TXVsdGlwbGVJbnN0YW5jZXM+U2luZ2xlPC9NdWx0aXBsZUluc3RhbmNlcz4KCQkJCTxNYW5kYXRvcnk+T3B0aW9uYWw8L01hbmRhdG9yeT4KCQkJCTxUeXBlPlN0cmluZzwvVHlwZT4KCQkJCTxSYW5nZUVudW1lcmF0aW9uPjMyIGJ5dGVzPC9SYW5nZUVudW1lcmF0aW9uPgoJCQkJPFVuaXRzIC8+CgkJCQk8RGVzY3JpcHRpb24+PCFbQ0RBVEFbSW5kaWNhdGVzIHRoZSBkYXRhIGRlc2NyaXB0aW9uLgplLmcuICJtZXRlciByZWFkaW5nIi5dXT48L0Rlc2NyaXB0aW9uPgoJCQk8L0l0ZW0+CgkJCTxJdGVtIElEPSI0Ij48TmFtZT5EYXRhIEZvcm1hdDwvTmFtZT4KCQkJCTxPcGVyYXRpb25zPlJXPC9PcGVyYXRpb25zPgoJCQkJPE11bHRpcGxlSW5zdGFuY2VzPlNpbmdsZTwvTXVsdGlwbGVJbnN0YW5jZXM+CgkJCQk8TWFuZGF0b3J5Pk9wdGlvbmFsPC9NYW5kYXRvcnk+CgkJCQk8VHlwZT5TdHJpbmc8L1R5cGU+CgkJCQk8UmFuZ2VFbnVtZXJhdGlvbj4zMiBieXRlczwvUmFuZ2VFbnVtZXJhdGlvbj4KCQkJCTxVbml0cyAvPgoJCQkJPERlc2NyaXB0aW9uPjwhW0NEQVRBW0luZGljYXRlcyB0aGUgZm9ybWF0IG9mIHRoZSBBcHBsaWNhdGlvbiBEYXRhLgplLmcuIFlHLU1ldGVyLVdhdGVyLVJlYWRpbmcKVVRGOC1zdHJpbmcKXV0+PC9EZXNjcmlwdGlvbj4KCQkJPC9JdGVtPgoJCQk8SXRlbSBJRD0iNSI+PE5hbWU+QXBwIElEPC9OYW1lPgoJCQkJPE9wZXJhdGlvbnM+Ulc8L09wZXJhdGlvbnM+CgkJCQk8TXVsdGlwbGVJbnN0YW5jZXM+U2luZ2xlPC9NdWx0aXBsZUluc3RhbmNlcz4KCQkJCTxNYW5kYXRvcnk+T3B0aW9uYWw8L01hbmRhdG9yeT4KCQkJCTxUeXBlPkludGVnZXI8L1R5cGU+CgkJCQk8UmFuZ2VFbnVtZXJhdGlvbj4yIGJ5dGVzPC9SYW5nZUVudW1lcmF0aW9uPgoJCQkJPFVuaXRzIC8+CgkJCQk8RGVzY3JpcHRpb24+PCFbQ0RBVEFbSW5kaWNhdGVzIHRoZSBkZXN0aW5hdGlvbiBBcHBsaWNhdGlvbiBJRC5dXT48L0Rlc2NyaXB0aW9uPgoJCQk8L0l0ZW0+PC9SZXNvdXJjZXM+CgkJPERlc2NyaXB0aW9uMj48IVtDREFUQVtdXT48L0Rlc2NyaXB0aW9uMj4KCTwvT2JqZWN0Pgo8L0xXTTJNPgo="},"preview":{"type":"string"},"name":{"type":"string","readOnly":true},"public":{"type":"boolean"},"link":{"type":"string","readOnly":true},"publicLink":{"type":"string","readOnly":true}}},"ReportTemplate":{"type":"object","description":"A JSON value representing the Report Template.","properties":{"id":{"$ref":"#/components/schemas/ReportTemplateId","description":"JSON object with the report template Id. Specify this field to update the report. Referencing non-existing report template Id will cause error. Omit this field to create new report template"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the report template creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the report template can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Report Template is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"name":{"type":"string","description":"Report name","example":"Weekly Report"},"format":{"$ref":"#/components/schemas/TbReportFormat","description":"Report format","enum":["PDF, CSV"]},"type":{"$ref":"#/components/schemas/ReportTemplateType","description":"Report template type","enum":["REPORT, SUB_REPORT"]},"description":{"type":"string","description":"Description"},"version":{"type":"integer","format":"int64"},"configuration":{"description":"a JSON value with report template configuration","oneOf":[{"$ref":"#/components/schemas/CsvReportTemplateConfig"},{"$ref":"#/components/schemas/PdfReportTemplateConfig"}]},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["configuration","format","name","type"]},"ReportTemplateType":{"type":"string","enum":["REPORT","SUB_REPORT"]},"EntityRelationsQuery":{"type":"object","description":"A JSON value representing the entity relations query object.","properties":{"parameters":{"$ref":"#/components/schemas/RelationsSearchParameters","description":"Main search parameters."},"filters":{"type":"array","description":"Main filters.","items":{"$ref":"#/components/schemas/RelationEntityTypeFilter"}}}},"RelationsSearchParameters":{"type":"object","properties":{"rootId":{"type":"string","format":"uuid","description":"Root entity id to start search from.","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"rootType":{"$ref":"#/components/schemas/EntityType","description":"Type of the root entity."},"direction":{"$ref":"#/components/schemas/EntitySearchDirection","description":"Type of the root entity."},"relationTypeGroup":{"$ref":"#/components/schemas/RelationTypeGroup","description":"Type of the relation."},"maxLevel":{"type":"integer","format":"int32","description":"Maximum level of the search depth."},"fetchLastLevelOnly":{"type":"boolean","description":"Fetch entities that match the last level of search. Useful to find Devices that are strictly 'maxLevel' relations away from the root entity."}}},"EntityRelationInfo":{"type":"object","properties":{"from":{"description":"JSON object with [from] Entity Id.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"to":{"description":"JSON object with [to] Entity Id.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"type":{"type":"string","description":"String value of relation type.","example":"Contains","minLength":1},"typeGroup":{"$ref":"#/components/schemas/RelationTypeGroup","description":"Represents the type group of the relation.","example":"COMMON"},"version":{"type":"integer","format":"int64"},"fromName":{"type":"string","description":"Name of the entity for [from] direction.","example":"A4B72CCDFF33","readOnly":true},"toName":{"type":"string","description":"Name of the entity for [to] direction.","example":"A4B72CCDFF35","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the relation.","example":{"description":"Power supply connection"}}},"required":["from","to","type","typeGroup"]},"Queue":{"type":"object","description":"A JSON value representing the queue.","properties":{"id":{"$ref":"#/components/schemas/QueueId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"name":{"type":"string"},"topic":{"type":"string"},"pollInterval":{"type":"integer","format":"int32"},"partitions":{"type":"integer","format":"int32"},"consumerPerPartition":{"type":"boolean"},"packProcessingTimeout":{"type":"integer","format":"int64"},"submitStrategy":{"$ref":"#/components/schemas/SubmitStrategy"},"processingStrategy":{"$ref":"#/components/schemas/ProcessingStrategy"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}}},"DataType":{"type":"string","enum":["BOOLEAN","LONG","DOUBLE","STRING","JSON"]},"ReadTsKvQueryResult":{"type":"object","properties":{"queryId":{"type":"integer","format":"int32"},"data":{"type":"array","items":{"$ref":"#/components/schemas/TsKvEntry"}},"lastEntryTs":{"type":"integer","format":"int64"}}},"TsKvEntry":{"type":"object","properties":{"ts":{"type":"integer","format":"int64"},"value":{},"key":{"type":"string"},"doubleValue":{"type":"number","format":"double"},"longValue":{"type":"integer","format":"int64"},"booleanValue":{"type":"boolean"},"valueAsString":{"type":"string"},"dataType":{"$ref":"#/components/schemas/DataType"},"jsonValue":{"type":"string"},"strValue":{"type":"string"},"version":{"type":"integer","format":"int64"}}},"AggregationParams":{"type":"object","properties":{"aggregation":{"$ref":"#/components/schemas/Aggregation"},"intervalType":{"$ref":"#/components/schemas/IntervalType"},"tzId":{"type":"string"},"interval":{"type":"integer","format":"int64"}}},"BaseReadTsKvQuery":{"type":"object","properties":{"key":{"type":"string"},"startTs":{"type":"integer","format":"int64"},"endTs":{"type":"integer","format":"int64"},"aggParameters":{"$ref":"#/components/schemas/AggregationParams"},"limit":{"type":"integer","format":"int32"},"order":{"type":"string"},"id":{"type":"integer","format":"int32"},"interval":{"type":"integer","format":"int64"},"aggregation":{"$ref":"#/components/schemas/Aggregation"}}},"ChecksumAlgorithm":{"type":"string","enum":["MD5","SHA256","SHA384","SHA512","CRC32","MURMUR3_32","MURMUR3_128"]},"SaveOtaPackageInfoRequest":{"type":"object","description":"A JSON value representing the OTA Package.","properties":{"id":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with the ota package Id. Specify existing ota package Id to update the ota package. Referencing non-existing ota package id will cause error. Omit this field to create new ota package."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the ota package creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the ota package can't be changed.","readOnly":true},"deviceProfileId":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with Device Profile Id. Device Profile Id of the ota package can't be changed."},"type":{"$ref":"#/components/schemas/OtaPackageType","description":"OTA Package type.","example":"FIRMWARE"},"title":{"type":"string","description":"OTA Package title.","example":"fw"},"version":{"type":"string","description":"OTA Package version.","example":1.0},"tag":{"type":"string","description":"OTA Package tag.","example":"fw_1.0","readOnly":true},"url":{"type":"string","description":"OTA Package url.","example":"http://thingsboard.org/fw/1"},"hasData":{"type":"boolean","description":"Indicates OTA Package 'has data'. Field is returned from DB ('true' if data exists or url is set).  If OTA Package 'has data' is 'false' we can not assign the OTA Package to the Device or Device Profile.","example":true,"readOnly":true},"fileName":{"type":"string","description":"OTA Package file name.","example":"fw_1.0","readOnly":true},"contentType":{"type":"string","description":"OTA Package content type.","example":"APPLICATION_OCTET_STREAM","readOnly":true},"checksumAlgorithm":{"$ref":"#/components/schemas/ChecksumAlgorithm","description":"OTA Package checksum algorithm.","example":"CRC32","readOnly":true},"checksum":{"type":"string","description":"OTA Package checksum.","example":"0xd87f7e0c","readOnly":true},"dataSize":{"type":"integer","format":"int64","description":"OTA Package data size.","example":8,"readOnly":true},"usesUrl":{"type":"boolean","description":"Indicates OTA Package uses url. Should be 'true' if uses url or 'false' if will be used data.","example":true,"readOnly":true},"name":{"type":"string","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"OTA Package description.","example":"Description for the OTA Package fw_1.0"}}},"OtaPackageInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with the ota package Id. Specify existing ota package Id to update the ota package. Referencing non-existing ota package id will cause error. Omit this field to create new ota package."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the ota package creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the ota package can't be changed.","readOnly":true},"deviceProfileId":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with Device Profile Id. Device Profile Id of the ota package can't be changed."},"type":{"$ref":"#/components/schemas/OtaPackageType","description":"OTA Package type.","example":"FIRMWARE"},"title":{"type":"string","description":"OTA Package title.","example":"fw"},"version":{"type":"string","description":"OTA Package version.","example":1.0},"tag":{"type":"string","description":"OTA Package tag.","example":"fw_1.0","readOnly":true},"url":{"type":"string","description":"OTA Package url.","example":"http://thingsboard.org/fw/1"},"hasData":{"type":"boolean","description":"Indicates OTA Package 'has data'. Field is returned from DB ('true' if data exists or url is set).  If OTA Package 'has data' is 'false' we can not assign the OTA Package to the Device or Device Profile.","example":true,"readOnly":true},"fileName":{"type":"string","description":"OTA Package file name.","example":"fw_1.0","readOnly":true},"contentType":{"type":"string","description":"OTA Package content type.","example":"APPLICATION_OCTET_STREAM","readOnly":true},"checksumAlgorithm":{"$ref":"#/components/schemas/ChecksumAlgorithm","description":"OTA Package checksum algorithm.","example":"CRC32","readOnly":true},"checksum":{"type":"string","description":"OTA Package checksum.","example":"0xd87f7e0c","readOnly":true},"dataSize":{"type":"integer","format":"int64","description":"OTA Package data size.","example":8,"readOnly":true},"name":{"type":"string","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"OTA Package description.","example":"Description for the OTA Package fw_1.0"}}},"MapperType":{"type":"string","enum":["BASIC","CUSTOM","GITHUB","APPLE"]},"OAuth2BasicMapperConfig":{"type":"object","properties":{"emailAttributeKey":{"type":"string","description":"Email attribute key of OAuth2 principal attributes. Must be specified for BASIC mapper type and cannot be specified for GITHUB type"},"firstNameAttributeKey":{"type":"string","description":"First name attribute key"},"lastNameAttributeKey":{"type":"string","description":"Last name attribute key"},"tenantNameStrategy":{"$ref":"#/components/schemas/TenantNameStrategyType","description":"Tenant naming strategy. For DOMAIN type, domain for tenant name will be taken from the email (substring before '@')"},"tenantNamePattern":{"type":"string","description":"Tenant name pattern for CUSTOM naming strategy. OAuth2 attributes in the pattern can be used by enclosing attribute key in '%{' and '}'","example":"%{email}"},"customerNamePattern":{"type":"string","description":"Customer name pattern. When creating a user on the first OAuth2 log in, if specified, customer name will be used to create or find existing customer in the platform and assign customerId to the user"},"defaultDashboardName":{"type":"string","description":"Name of the tenant's dashboard to set as default dashboard for newly created user"},"alwaysFullScreen":{"type":"boolean","description":"Whether default dashboard should be open in full screen"},"parentCustomerNamePattern":{"type":"string"},"userGroupsNamePattern":{"type":"array","items":{"type":"string"}}},"required":["tenantNameStrategy"]},"OAuth2ClientRegistrationTemplate":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OAuth2ClientRegistrationTemplateId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"providerId":{"type":"string","description":"OAuth2 provider identifier (e.g. its name)"},"mapperConfig":{"$ref":"#/components/schemas/OAuth2MapperConfig","description":"Default config for mapping OAuth2 log in response to platform entities"},"authorizationUri":{"type":"string","description":"Default authorization URI of the OAuth2 provider"},"accessTokenUri":{"type":"string","description":"Default access token URI of the OAuth2 provider"},"scope":{"type":"array","description":"Default OAuth scopes that will be requested from OAuth2 platform","items":{"type":"string"}},"userInfoUri":{"type":"string","description":"Default user info URI of the OAuth2 provider"},"userNameAttributeName":{"type":"string","description":"Default name of the username attribute in OAuth2 provider log in response"},"jwkSetUri":{"type":"string","description":"Default JSON Web Key URI of the OAuth2 provider"},"clientAuthenticationMethod":{"type":"string","description":"Default client authentication method to use: 'BASIC' or 'POST'"},"comment":{"type":"string","description":"Comment for OAuth2 provider"},"loginButtonIcon":{"type":"string","description":"Default log in button icon for OAuth2 provider"},"loginButtonLabel":{"type":"string","description":"Default OAuth2 provider label"},"helpLink":{"type":"string","description":"Help link for OAuth2 provider"},"name":{"type":"string"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}},"required":["providerId"]},"OAuth2ClientRegistrationTemplateId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"OAuth2CustomMapperConfig":{"type":"object","properties":{"url":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"},"sendToken":{"type":"boolean"}}},"OAuth2MapperConfig":{"type":"object","properties":{"allowUserCreation":{"type":"boolean","description":"Whether user should be created if not yet present on the platform after successful authentication"},"activateUser":{"type":"boolean","description":"Whether user credentials should be activated when user is created after successful authentication"},"type":{"$ref":"#/components/schemas/MapperType","description":"Type of OAuth2 mapper. Depending on this param, different mapper config fields must be specified"},"basic":{"$ref":"#/components/schemas/OAuth2BasicMapperConfig","description":"Mapper config for BASIC and GITHUB mapper types"},"custom":{"$ref":"#/components/schemas/OAuth2CustomMapperConfig","description":"Mapper config for CUSTOM mapper type"}},"required":["type"]},"TenantNameStrategyType":{"type":"string","enum":["DOMAIN","EMAIL","CUSTOM"]},"OAuth2Client":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OAuth2ClientId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional info of OAuth2 client. Must include: 'providerName' (string, name of the OAuth2 provider).","example":{"providerName":"Google"}},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id"},"title":{"type":"string","description":"Oauth2 client title","minLength":1},"mapperConfig":{"$ref":"#/components/schemas/OAuth2MapperConfig","description":"Config for mapping OAuth2 log in response to platform entities"},"clientId":{"type":"string","description":"OAuth2 client ID. Cannot be empty","minLength":1},"clientSecret":{"type":"string","description":"OAuth2 client secret. Cannot be empty","minLength":1},"authorizationUri":{"type":"string","description":"Authorization URI of the OAuth2 provider. Cannot be empty","minLength":1},"accessTokenUri":{"type":"string","description":"Access token URI of the OAuth2 provider. Cannot be empty","minLength":1},"scope":{"type":"array","description":"OAuth scopes that will be requested from OAuth2 platform. Cannot be empty","items":{"type":"string"},"minItems":1},"userInfoUri":{"type":"string","description":"User info URI of the OAuth2 provider"},"userNameAttributeName":{"type":"string","description":"Name of the username attribute in OAuth2 provider response. Cannot be empty","minLength":1},"jwkSetUri":{"type":"string","description":"JSON Web Key URI of the OAuth2 provider"},"clientAuthenticationMethod":{"type":"string","description":"Client authentication method to use: 'BASIC' or 'POST'. Cannot be empty","minLength":1},"loginButtonLabel":{"type":"string","description":"OAuth2 provider label. Cannot be empty","minLength":1},"loginButtonIcon":{"type":"string","description":"Log in button icon for OAuth2 provider"},"platforms":{"type":"array","description":"List of platforms for which usage of the OAuth2 client is allowed (empty for all allowed)","items":{"$ref":"#/components/schemas/PlatformType"}},"name":{"type":"string","readOnly":true},"ownerId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["accessTokenUri","additionalInfo","authorizationUri","clientAuthenticationMethod","clientId","clientSecret","loginButtonLabel","mapperConfig","scope","title","userNameAttributeName"]},"PlatformType":{"type":"string","enum":["WEB","ANDROID","IOS"]},"AffectedTenantAdministratorsFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"}]},"AffectedUserFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"}]},"AllUsersFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"}]},"CustomerUsersFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"},{"type":"object","properties":{"customerId":{"type":"string","format":"uuid"}}}],"required":["customerId"]},"MicrosoftTeamsNotificationTargetConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationTargetConfig"},{"type":"object","properties":{"webhookUrl":{"type":"string","minLength":1},"channelName":{"type":"string","minLength":1},"useOldApi":{"type":"boolean"},"id":{},"title":{"type":"string"},"firstName":{"type":"string"},"email":{"type":"string"},"lastName":{"type":"string"}}}],"required":["channelName","webhookUrl"]},"NotificationTarget":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/NotificationTargetId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"name":{"type":"string","minLength":1},"configuration":{"oneOf":[{"$ref":"#/components/schemas/MicrosoftTeamsNotificationTargetConfig"},{"$ref":"#/components/schemas/PlatformUsersNotificationTargetConfig"},{"$ref":"#/components/schemas/SlackNotificationTargetConfig"}]}},"required":["configuration","name"]},"NotificationTargetConfig":{"type":"object","discriminator":{"propertyName":"type","mapping":{"PLATFORM_USERS":"#/components/schemas/PlatformUsersNotificationTargetConfig","SLACK":"#/components/schemas/SlackNotificationTargetConfig","MICROSOFT_TEAMS":"#/components/schemas/MicrosoftTeamsNotificationTargetConfig"}},"properties":{"description":{"type":"string"},"type":{"type":"string"}},"required":["type"]},"OriginatorEntityOwnerUsersFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"}]},"PlatformUsersNotificationTargetConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationTargetConfig"},{"type":"object","properties":{"usersFilter":{"oneOf":[{"$ref":"#/components/schemas/AffectedTenantAdministratorsFilter"},{"$ref":"#/components/schemas/AffectedUserFilter"},{"$ref":"#/components/schemas/AllUsersFilter"},{"$ref":"#/components/schemas/CustomerUsersFilter"},{"$ref":"#/components/schemas/OriginatorEntityOwnerUsersFilter"},{"$ref":"#/components/schemas/SystemAdministratorsFilter"},{"$ref":"#/components/schemas/TenantAdministratorsFilter"},{"$ref":"#/components/schemas/UserGroupListFilter"},{"$ref":"#/components/schemas/UserListFilter"},{"$ref":"#/components/schemas/UserRoleFilter"}]}}}],"required":["usersFilter"]},"SlackConversation":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SlackConversationType"},"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"wholeName":{"type":"string"},"email":{"type":"string"},"title":{"type":"string"}},"required":["id","name","type"]},"SlackConversationType":{"type":"string","enum":["DIRECT","PUBLIC_CHANNEL","PRIVATE_CHANNEL"]},"SlackNotificationTargetConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationTargetConfig"},{"type":"object","properties":{"conversationType":{"$ref":"#/components/schemas/SlackConversationType"},"conversation":{"$ref":"#/components/schemas/SlackConversation"}}}],"required":["conversation"]},"SystemAdministratorsFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"}]},"TenantAdministratorsFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"},{"type":"object","properties":{"tenantsIds":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"tenantProfilesIds":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true}}}]},"UserGroupListFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"},{"type":"object","properties":{"groupsIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["groupsIds"]},"UserListFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"},{"type":"object","properties":{"usersIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["usersIds"]},"UserRoleFilter":{"allOf":[{"$ref":"#/components/schemas/UsersFilter"},{"type":"object","properties":{"rolesIds":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["rolesIds"]},"UsersFilter":{"discriminator":{"propertyName":"type","mapping":{"USER_LIST":"#/components/schemas/UserListFilter","CUSTOMER_USERS":"#/components/schemas/CustomerUsersFilter","TENANT_ADMINISTRATORS":"#/components/schemas/TenantAdministratorsFilter","AFFECTED_TENANT_ADMINISTRATORS":"#/components/schemas/AffectedTenantAdministratorsFilter","SYSTEM_ADMINISTRATORS":"#/components/schemas/SystemAdministratorsFilter","ALL_USERS":"#/components/schemas/AllUsersFilter","ORIGINATOR_ENTITY_OWNER_USERS":"#/components/schemas/OriginatorEntityOwnerUsersFilter","AFFECTED_USER":"#/components/schemas/AffectedUserFilter","USER_GROUP_LIST":"#/components/schemas/UserGroupListFilter","USER_ROLE":"#/components/schemas/UserRoleFilter"}},"properties":{"type":{"type":"string"}},"required":["type"]},"PageDataUser":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/User"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"MobileAppNotificationDeliveryMethodConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationDeliveryMethodConfig"},{"type":"object","properties":{"firebaseServiceAccountCredentialsFileName":{"type":"string"},"firebaseServiceAccountCredentials":{"type":"string"},"useSystemSettings":{"type":"boolean"}}}]},"NotificationDeliveryMethodConfig":{"discriminator":{"propertyName":"method","mapping":{"SLACK":"#/components/schemas/SlackNotificationDeliveryMethodConfig","MOBILE_APP":"#/components/schemas/MobileAppNotificationDeliveryMethodConfig"}},"properties":{"method":{"type":"string"}},"required":["method"]},"NotificationSettings":{"type":"object","properties":{"deliveryMethodsConfigs":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/MobileAppNotificationDeliveryMethodConfig"},{"$ref":"#/components/schemas/SlackNotificationDeliveryMethodConfig"}]}}},"required":["deliveryMethodsConfigs"]},"SlackNotificationDeliveryMethodConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationDeliveryMethodConfig"},{"type":"object","properties":{"botToken":{"type":"string","minLength":1}}}],"required":["botToken"]},"NotificationPref":{"type":"object","properties":{"enabled":{"type":"boolean"},"enabledDeliveryMethods":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["enabledDeliveryMethods"]},"UserNotificationSettings":{"type":"object","properties":{"prefs":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/NotificationPref"}}},"required":["prefs"]},"Action":{"type":"string","enum":["ASSIGNED","UNASSIGNED"]},"AlarmAction":{"type":"string","enum":["CREATED","SEVERITY_CHANGED","ACKNOWLEDGED","CLEARED"]},"AlarmAssignmentNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"alarmTypes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"alarmSeverities":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSeverity"},"uniqueItems":true},"alarmStatuses":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSearchStatus"},"uniqueItems":true},"notifyOn":{"type":"array","items":{"$ref":"#/components/schemas/Action"},"minItems":1,"uniqueItems":true}}}],"required":["notifyOn","triggerType"]},"AlarmAssignmentRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"AlarmCommentNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"alarmTypes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"alarmSeverities":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSeverity"},"uniqueItems":true},"alarmStatuses":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSearchStatus"},"uniqueItems":true},"onlyUserComments":{"type":"boolean"},"notifyOnCommentUpdate":{"type":"boolean"}}}],"required":["triggerType"]},"AlarmCommentRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"AlarmNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"alarmTypes":{"type":"array","items":{"type":"string"},"uniqueItems":true},"alarmSeverities":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSeverity"},"uniqueItems":true},"notifyOn":{"type":"array","items":{"$ref":"#/components/schemas/AlarmAction"},"minItems":1,"uniqueItems":true},"clearRule":{"$ref":"#/components/schemas/ClearRule"}}}],"required":["notifyOn","triggerType"]},"ApiUsageLimitNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"apiFeatures":{"type":"array","items":{"$ref":"#/components/schemas/ApiFeature"},"uniqueItems":true},"notifyOn":{"type":"array","items":{"$ref":"#/components/schemas/ApiUsageStateValue"},"uniqueItems":true}}}],"required":["triggerType"]},"ApiUsageLimitRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"ClearRule":{"type":"object","properties":{"alarmStatuses":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSearchStatus"},"uniqueItems":true}}},"DeviceActivityNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"devices":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"deviceProfiles":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"notifyOn":{"type":"array","items":{"$ref":"#/components/schemas/DeviceEvent"},"minItems":1,"uniqueItems":true}}}],"required":["notifyOn","triggerType"]},"DeviceActivityRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"DeviceEvent":{"type":"string","enum":["ACTIVE","INACTIVE"]},"EdgeCommunicationFailureNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"edges":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true}}}],"required":["triggerType"]},"EdgeCommunicationFailureRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"EdgeConnectionNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"edges":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"notifyOn":{"type":"array","items":{"$ref":"#/components/schemas/EdgeConnectivityEvent"},"uniqueItems":true}}}],"required":["triggerType"]},"EdgeConnectionRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"EdgeConnectivityEvent":{"type":"string","enum":["CONNECTED","DISCONNECTED"]},"EntitiesLimitNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"entityTypes":{"type":"array","items":{"$ref":"#/components/schemas/EntityType"},"uniqueItems":true},"threshold":{"type":"number","format":"float","maximum":1}}}],"required":["triggerType"]},"EntitiesLimitRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"EntityActionNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"entityTypes":{"type":"array","items":{"$ref":"#/components/schemas/EntityType"},"uniqueItems":true},"created":{"type":"boolean"},"updated":{"type":"boolean"},"deleted":{"type":"boolean"}}}],"required":["triggerType"]},"EntityActionRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"EscalatedNotificationRuleRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"escalationTable":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string","format":"uuid"}},"minProperties":1}}}],"description":"Escalated notification rule recipients configuration","required":["escalationTable"]},"IntegrationLifecycleEventNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"integrationTypes":{"type":"array","items":{"$ref":"#/components/schemas/IntegrationType"},"uniqueItems":true},"integrations":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"notifyOn":{"type":"array","items":{"$ref":"#/components/schemas/ComponentLifecycleEvent"},"uniqueItems":true},"onlyOnError":{"type":"boolean"}}}],"required":["triggerType"]},"IntegrationLifecycleEventRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"IntegrationType":{"type":"string","enum":["OCEANCONNECT","SIGFOX","THINGPARK","TPE","CHIRPSTACK","PARTICLE","TMOBILE_IOT_CDP","HTTP","MQTT","PUB_SUB","AWS_IOT","AWS_SQS","AWS_KINESIS","TTN","TTI","AZURE_EVENT_HUB","OPC_UA","CUSTOM","UDP","TCP","KAFKA","AZURE_IOT_HUB","APACHE_PULSAR","RABBITMQ","LORIOT","COAP","TUYA","AZURE_SERVICE_BUS","KPN"]},"NewPlatformVersionNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"}],"required":["triggerType"]},"NewPlatformVersionRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"NotificationRule":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/NotificationRuleId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"name":{"type":"string","minLength":1},"enabled":{"type":"boolean"},"templateId":{"$ref":"#/components/schemas/NotificationTemplateId"},"triggerType":{"$ref":"#/components/schemas/NotificationRuleTriggerType"},"triggerConfig":{"oneOf":[{"$ref":"#/components/schemas/AlarmAssignmentNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/AlarmCommentNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/AlarmNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/ApiUsageLimitNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/DeviceActivityNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EdgeCommunicationFailureNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EdgeConnectionNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EntitiesLimitNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EntityActionNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/IntegrationLifecycleEventNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/NewPlatformVersionNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/RateLimitsNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/ResourcesShortageNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/TaskProcessingFailureNotificationRuleTriggerConfig"}]},"recipientsConfig":{"oneOf":[{"$ref":"#/components/schemas/AlarmAssignmentRecipientsConfig"},{"$ref":"#/components/schemas/AlarmCommentRecipientsConfig"},{"$ref":"#/components/schemas/ApiUsageLimitRecipientsConfig"},{"$ref":"#/components/schemas/DeviceActivityRecipientsConfig"},{"$ref":"#/components/schemas/EdgeCommunicationFailureRecipientsConfig"},{"$ref":"#/components/schemas/EdgeConnectionRecipientsConfig"},{"$ref":"#/components/schemas/EntitiesLimitRecipientsConfig"},{"$ref":"#/components/schemas/EntityActionRecipientsConfig"},{"$ref":"#/components/schemas/EscalatedNotificationRuleRecipientsConfig"},{"$ref":"#/components/schemas/IntegrationLifecycleEventRecipientsConfig"},{"$ref":"#/components/schemas/NewPlatformVersionRecipientsConfig"},{"$ref":"#/components/schemas/RateLimitsRecipientsConfig"},{"$ref":"#/components/schemas/ResourceShortageRecipientsConfig"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventRecipientsConfig"},{"$ref":"#/components/schemas/TaskProcessingFailureRecipientsConfig"}]},"additionalConfig":{"$ref":"#/components/schemas/NotificationRuleConfig"}},"required":["name","recipientsConfig","templateId","triggerConfig","triggerType"]},"NotificationRuleConfig":{"type":"object","properties":{"description":{"type":"string"}}},"NotificationRuleRecipientsConfig":{"type":"object","discriminator":{"propertyName":"triggerType","mapping":{"ENTITY_ACTION":"#/components/schemas/EntityActionRecipientsConfig","ALARM":"#/components/schemas/EscalatedNotificationRuleRecipientsConfig","ALARM_COMMENT":"#/components/schemas/AlarmCommentRecipientsConfig","ALARM_ASSIGNMENT":"#/components/schemas/AlarmAssignmentRecipientsConfig","DEVICE_ACTIVITY":"#/components/schemas/DeviceActivityRecipientsConfig","RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT":"#/components/schemas/RuleEngineComponentLifecycleEventRecipientsConfig","EDGE_CONNECTION":"#/components/schemas/EdgeConnectionRecipientsConfig","EDGE_COMMUNICATION_FAILURE":"#/components/schemas/EdgeCommunicationFailureRecipientsConfig","NEW_PLATFORM_VERSION":"#/components/schemas/NewPlatformVersionRecipientsConfig","ENTITIES_LIMIT":"#/components/schemas/EntitiesLimitRecipientsConfig","API_USAGE_LIMIT":"#/components/schemas/ApiUsageLimitRecipientsConfig","RATE_LIMITS":"#/components/schemas/RateLimitsRecipientsConfig","TASK_PROCESSING_FAILURE":"#/components/schemas/TaskProcessingFailureRecipientsConfig","RESOURCES_SHORTAGE":"#/components/schemas/ResourceShortageRecipientsConfig","INTEGRATION_LIFECYCLE_EVENT":"#/components/schemas/IntegrationLifecycleEventRecipientsConfig"}},"properties":{"triggerType":{"$ref":"#/components/schemas/NotificationRuleTriggerType"}}},"NotificationRuleTriggerConfig":{"type":"object","description":"Configuration for notification rule trigger","discriminator":{"propertyName":"triggerType","mapping":{"ALARM":"#/components/schemas/AlarmNotificationRuleTriggerConfig","DEVICE_ACTIVITY":"#/components/schemas/DeviceActivityNotificationRuleTriggerConfig","ENTITY_ACTION":"#/components/schemas/EntityActionNotificationRuleTriggerConfig","ALARM_COMMENT":"#/components/schemas/AlarmCommentNotificationRuleTriggerConfig","RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationRuleTriggerConfig","ALARM_ASSIGNMENT":"#/components/schemas/AlarmAssignmentNotificationRuleTriggerConfig","NEW_PLATFORM_VERSION":"#/components/schemas/NewPlatformVersionNotificationRuleTriggerConfig","ENTITIES_LIMIT":"#/components/schemas/EntitiesLimitNotificationRuleTriggerConfig","API_USAGE_LIMIT":"#/components/schemas/ApiUsageLimitNotificationRuleTriggerConfig","RATE_LIMITS":"#/components/schemas/RateLimitsNotificationRuleTriggerConfig","EDGE_CONNECTION":"#/components/schemas/EdgeConnectionNotificationRuleTriggerConfig","EDGE_COMMUNICATION_FAILURE":"#/components/schemas/EdgeCommunicationFailureNotificationRuleTriggerConfig","TASK_PROCESSING_FAILURE":"#/components/schemas/TaskProcessingFailureNotificationRuleTriggerConfig","RESOURCES_SHORTAGE":"#/components/schemas/ResourcesShortageNotificationRuleTriggerConfig","INTEGRATION_LIFECYCLE_EVENT":"#/components/schemas/IntegrationLifecycleEventNotificationRuleTriggerConfig"}},"properties":{"triggerType":{"$ref":"#/components/schemas/NotificationRuleTriggerType"}},"required":["triggerType"]},"NotificationRuleTriggerType":{"type":"string","enum":["ENTITY_ACTION","ALARM","ALARM_COMMENT","ALARM_ASSIGNMENT","DEVICE_ACTIVITY","RULE_ENGINE_COMPONENT_LIFECYCLE_EVENT","INTEGRATION_LIFECYCLE_EVENT","EDGE_CONNECTION","EDGE_COMMUNICATION_FAILURE","NEW_PLATFORM_VERSION","ENTITIES_LIMIT","API_USAGE_LIMIT","RATE_LIMITS","TASK_PROCESSING_FAILURE","RESOURCES_SHORTAGE"]},"RateLimitsNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"apis":{"type":"array","items":{"$ref":"#/components/schemas/LimitedApi"},"uniqueItems":true}}}],"required":["triggerType"]},"RateLimitsRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"ResourceShortageRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"ResourcesShortageNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"cpuThreshold":{"type":"number","format":"float","maximum":1},"ramThreshold":{"type":"number","format":"float","maximum":1},"storageThreshold":{"type":"number","format":"float","maximum":1}}}],"required":["triggerType"]},"RuleEngineComponentLifecycleEventNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"},{"type":"object","properties":{"ruleChains":{"type":"array","items":{"type":"string","format":"uuid"},"uniqueItems":true},"ruleChainEvents":{"type":"array","items":{"$ref":"#/components/schemas/ComponentLifecycleEvent"},"uniqueItems":true},"onlyRuleChainLifecycleFailures":{"type":"boolean"},"trackRuleNodeEvents":{"type":"boolean"},"ruleNodeEvents":{"type":"array","items":{"$ref":"#/components/schemas/ComponentLifecycleEvent"},"uniqueItems":true},"onlyRuleNodeLifecycleFailures":{"type":"boolean"}}}],"required":["triggerType"]},"RuleEngineComponentLifecycleEventRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"TaskProcessingFailureNotificationRuleTriggerConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleTriggerConfig"}],"required":["triggerType"]},"TaskProcessingFailureRecipientsConfig":{"allOf":[{"$ref":"#/components/schemas/NotificationRuleRecipientsConfig"},{"type":"object","properties":{"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1}}}],"required":["targets"]},"NotificationRequestPreview":{"type":"object","properties":{"processedTemplates":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/EmailDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/MicrosoftTeamsDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/MobileAppDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/SlackDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/SmsDeliveryMethodNotificationTemplate"},{"$ref":"#/components/schemas/WebDeliveryMethodNotificationTemplate"}]}},"totalRecipientsCount":{"type":"integer","format":"int32"},"recipientsCountByTarget":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}},"recipientsPreview":{"type":"array","items":{"type":"string"}}}},"SignUpRequest":{"type":"object","description":"A JSON value representing the signup request.","properties":{"fields":{"type":"object","additionalProperties":{"type":"string"},"description":"List of sign-up form fields"},"recaptchaResponse":{"type":"string","description":"Response from reCAPTCHA validation"},"pkgName":{"type":"string","description":"For mobile apps only. Mobile app package name"},"platform":{"$ref":"#/components/schemas/PlatformType","description":"For mobile apps only. Mobile app package platform"},"appSecret":{"type":"string","description":"For mobile apps only. Mobile app secret"}}},"SignUpResult":{"type":"string","enum":["SUCCESS","INACTIVE_USER_EXISTS"]},"ResetPasswordRequest":{"type":"object","description":"Reset password request.","properties":{"resetToken":{"type":"string","description":"The reset token to verify","example":"AAB254FF67D.."},"password":{"type":"string","description":"The new password to set","example":"secret"}}},"ResetPasswordEmailRequest":{"type":"object","description":"The JSON object representing the reset password email request.","properties":{"email":{"type":"string","description":"The email of the user","example":"user@example.com"}}},"OAuth2ClientLoginInfo":{"type":"object","properties":{"name":{"type":"string","description":"OAuth2 client name","example":"GitHub"},"icon":{"type":"string","description":"Name of the icon, displayed on OAuth2 log in button","example":"github-logo"},"url":{"type":"string","description":"URI for OAuth2 log in. On HTTP GET request to this URI, it redirects to the OAuth2 provider page","example":"/oauth2/authorization/8352f191-2b4d-11ec-9ed1-cbf57c026ecc"}}},"ActivateUserRequest":{"type":"object","description":"Activate user request.","properties":{"activateToken":{"type":"string","description":"The activate token to verify","example":"AAB254FF67D.."},"password":{"type":"string","description":"The new password to set","example":"secret"}}},"BadgePosition":{"type":"string","enum":["RIGHT","LEFT"]},"QRCodeConfig":{"type":"object","properties":{"showOnHomePage":{"type":"boolean"},"badgeEnabled":{"type":"boolean"},"qrCodeLabelEnabled":{"type":"boolean"},"badgePosition":{"$ref":"#/components/schemas/BadgePosition"},"qrCodeLabel":{"type":"string"}}},"QrCodeSettings":{"type":"object","description":"A JSON value representing the mobile apps configuration","properties":{"id":{"$ref":"#/components/schemas/QrCodeSettingsId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"useSystemSettings":{"type":"boolean","description":"Use settings from system level","example":true},"useDefaultApp":{"type":"boolean","description":"Type of application: true means use default Thingsboard app","example":true},"mobileAppBundleId":{"$ref":"#/components/schemas/MobileAppBundleId","description":"Mobile app bundle."},"qrCodeConfig":{"$ref":"#/components/schemas/QRCodeConfig","description":"QR code config configuration."},"androidEnabled":{"type":"boolean","description":"Indicates if google play link is available","example":true},"iosEnabled":{"type":"boolean","description":"Indicates if apple store link is available","example":true},"googlePlayLink":{"type":"string","readOnly":true},"appStoreLink":{"type":"string","readOnly":true}},"required":["qrCodeConfig"]},"QrCodeSettingsId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"CustomMobilePage":{"allOf":[{"$ref":"#/components/schemas/MobilePage"},{"type":"object","properties":{"path":{"type":"string","description":"Path to custom page","example":"/alarmDetails/868c7083-032d-4f52-b8b4-7859aebb6a4e"},"label":{"type":"string","description":"Page label","example":"Air quality"},"visible":{"type":"boolean","description":"Indicates if page is visible","example":true},"icon":{"type":"string","description":"URL of the page icon","example":"home_icon"}}}],"required":["type","visible"]},"DashboardPage":{"allOf":[{"$ref":"#/components/schemas/MobilePage"},{"type":"object","properties":{"dashboardId":{"type":"string","description":"Dashboard id","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"label":{"type":"string","description":"Page label","example":"Air quality"},"visible":{"type":"boolean","description":"Indicates if page is visible","example":true},"icon":{"type":"string","description":"URL of the page icon","example":"home_icon"}}}],"required":["type","visible"]},"DefaultMobilePage":{"allOf":[{"$ref":"#/components/schemas/MobilePage"},{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DefaultPageId","description":"Identifier for default page","example":"HOME"},"label":{"type":"string","description":"Page label","example":"Air quality"},"visible":{"type":"boolean","description":"Indicates if page is visible","example":true},"icon":{"type":"string","description":"URL of the page icon","example":"home_icon"}}}],"required":["type","visible"]},"DefaultPageId":{"type":"string","enum":["HOME","ALARMS","DEVICES","CUSTOMERS","ASSETS","AUDIT_LOGS","NOTIFICATIONS","DEVICE_LIST","DASHBOARDS","LIVE_LOCATION_TRACKING"]},"MobileAppBundle":{"type":"object","description":"A JSON value representing the Mobile Application Bundle.","properties":{"id":{"$ref":"#/components/schemas/MobileAppBundleId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"title":{"type":"string","description":"Application bundle title. Cannot be empty","minLength":1},"description":{"type":"string","description":"Application bundle description."},"androidAppId":{"$ref":"#/components/schemas/MobileAppId","description":"Android application id"},"iosAppId":{"$ref":"#/components/schemas/MobileAppId","description":"IOS application id"},"layoutConfig":{"$ref":"#/components/schemas/MobileLayoutConfig","description":"Application layout configuration"},"selfRegistrationParams":{"$ref":"#/components/schemas/MobileSelfRegistrationParams","description":"Application self registration configuration"},"oauth2Enabled":{"type":"boolean","description":"Whether OAuth2 settings are enabled or not"},"name":{"type":"string","description":"Mobile app bundle title","example":"My main application","readOnly":true}},"required":["title"]},"MobileLayoutConfig":{"type":"object","properties":{"pages":{"type":"array","items":{"$ref":"#/components/schemas/MobilePage"}}}},"MobilePage":{"type":"object","description":"Configuration for a mobile page","discriminator":{"propertyName":"type","mapping":{"DEFAULT":"#/components/schemas/DefaultMobilePage","DASHBOARD":"#/components/schemas/DashboardPage","WEB_VIEW":"#/components/schemas/WebViewPage","CUSTOM":"#/components/schemas/CustomMobilePage"}},"properties":{"type":{"$ref":"#/components/schemas/MobilePageType"},"visible":{"type":"boolean"}},"required":["type"]},"MobilePageType":{"type":"string","enum":["DEFAULT","DASHBOARD","WEB_VIEW","CUSTOM"]},"MobileRedirectParams":{"type":"object","properties":{"scheme":{"type":"string","description":"Mobile application verification settings. Used for callback to mobile application once user is registered."},"host":{"type":"string","description":"Mobile application verification settings. Used for callback to mobile application once user is registered."}}},"MobileSelfRegistrationParams":{"allOf":[{"$ref":"#/components/schemas/SelfRegistrationParams"},{"type":"object","properties":{"enabled":{"type":"boolean","description":"Indicates if self-registration is allowed via sign-up form"},"title":{"type":"string","description":"The text message to appear on login form"},"captcha":{"description":"Captcha site key for 'I'm not a robot' validation","oneOf":[{"$ref":"#/components/schemas/EnterpriseCaptchaParams"},{"$ref":"#/components/schemas/V2CaptchaParams"},{"$ref":"#/components/schemas/V3CaptchaParams"}]},"permissions":{"type":"array","description":"Group Permissions to assign for the new customer user.","items":{"$ref":"#/components/schemas/GroupPermission"}},"notificationRecipient":{"$ref":"#/components/schemas/NotificationTargetId","description":"Recipient to use for notifications when new user self-registered."},"signUpFields":{"type":"array","description":"List of sign-up form fields","items":{"$ref":"#/components/schemas/SignUpField"}},"customerTitlePrefix":{"type":"string","description":"Prefix to add to created customer"},"showPrivacyPolicy":{"type":"boolean","description":"Show or hide 'Privacy Policy'"},"showTermsOfUse":{"type":"boolean","description":"Show or hide 'Terms of Use'"},"defaultDashboard":{"$ref":"#/components/schemas/DefaultDashboardParams","description":"Default dashboard params"},"homeDashboard":{"$ref":"#/components/schemas/HomeDashboardParams","description":"Home dashboard params"},"customerGroupId":{"$ref":"#/components/schemas/EntityGroupId","description":"Id of the customer group customer wil be added to."},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId","description":"Custom menu id"},"privacyPolicy":{"type":"string","description":"Privacy policy text. Supports HTML."},"termsOfUse":{"type":"string","description":"Terms of User text. Supports HTML."},"redirect":{"$ref":"#/components/schemas/MobileRedirectParams","description":"Mobile redirect params."}}}],"required":["captcha","permissions","redirect","signUpFields","title","type"]},"WebViewPage":{"allOf":[{"$ref":"#/components/schemas/MobilePage"},{"type":"object","properties":{"url":{"type":"string","description":"Url","example":"/url"},"label":{"type":"string","description":"Page label","example":"Air quality"},"visible":{"type":"boolean","description":"Indicates if page is visible","example":true},"icon":{"type":"string","description":"URL of the page icon","example":"home_icon"}}}],"required":["type","visible"]},"MobileApp":{"type":"object","description":"A JSON value representing the Mobile Application.","properties":{"id":{"$ref":"#/components/schemas/MobileAppId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"pkgName":{"type":"string","description":"Application package name. Cannot be empty","minLength":1},"title":{"type":"string","description":"Application title"},"appSecret":{"type":"string","description":"Application secret. The length must be at least 16 characters","minLength":1},"platformType":{"$ref":"#/components/schemas/PlatformType","description":"Application platform type: ANDROID or IOS"},"status":{"$ref":"#/components/schemas/MobileAppStatus","description":"Application status: PUBLISHED, DEPRECATED, SUSPENDED, DRAFT"},"versionInfo":{"$ref":"#/components/schemas/MobileAppVersionInfo","description":"Application version info"},"storeInfo":{"$ref":"#/components/schemas/StoreInfo","description":"Application store information"},"name":{"type":"string","description":"Mobile app package name","example":"my.mobile.app","readOnly":true}},"required":["appSecret","pkgName","platformType","status"]},"MobileAppStatus":{"type":"string","enum":["DRAFT","PUBLISHED","DEPRECATED","SUSPENDED"]},"MobileAppVersionInfo":{"type":"object","properties":{"minVersion":{"type":"string","description":"Minimum supported version"},"minVersionReleaseNotes":{"type":"string","description":"Release notes of minimum supported version"},"latestVersion":{"type":"string","description":"Latest supported version"},"latestVersionReleaseNotes":{"type":"string","description":"Release notes of latest supported version"}}},"StoreInfo":{"type":"object","properties":{"appId":{"type":"string"},"sha256CertFingerprints":{"type":"string"},"storeLink":{"type":"string"}}},"Integration":{"type":"object","description":"A JSON value representing the integration.","properties":{"id":{"$ref":"#/components/schemas/IntegrationId","description":"JSON object with the Integration Id. Specify this field to update the Integration. Referencing non-existing Integration Id will cause error. Omit this field to create new Integration."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the integration creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"name":{"type":"string","description":"Integration Name","example":"Http Integration"},"type":{"$ref":"#/components/schemas/IntegrationType","description":"The type of the integration"},"debugMode":{"type":"boolean","deprecated":true,"description":"Enable/disable debug. ","example":false},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"enabled":{"type":"boolean","description":"Boolean flag to enable/disable the integration"},"allowCreateDevicesOrAssets":{"type":"boolean","description":"Boolean flag to allow/disallow the integration to create devices or assets that send message and do not exist in the system yet"},"version":{"type":"integer","format":"int64"},"defaultConverterId":{"$ref":"#/components/schemas/ConverterId","description":"JSON object with the Uplink Converter Id"},"downlinkConverterId":{"$ref":"#/components/schemas/ConverterId","description":"JSON object with the Downlink Converter Id"},"routingKey":{"type":"string","description":"String value used by HTTP based integrations for the base URL construction and by the remote integrations. Remote integration uses this value along with the 'secret' for kind of security and validation to be able to connect to the platform using Grpc","example":"ca1a01b6-4ca1-3da5-54e4-a07090b65644"},"secret":{"type":"string","description":"String value used by the remote integrations. Remote integration uses this value along with the 'routingKey' for kind of security and validation to be able to connect to the platform using Grpc","example":"nl83m1ktpwpwwmww29sm"},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON object representing integration configuration. Each integration type has specific configuration with the connectivity parameters (like 'host' and 'port' for MQTT type or 'baseUrl' for HTTP based type, etc.) and other important parameters dependent on the integration type"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the integration"},"edgeTemplate":{"type":"boolean","description":"Boolean flag that specifies that is regular or edge template integration"},"remote":{"type":"boolean","description":"Boolean flag to enable/disable the integration to be executed remotely. Remote integration is launched in a separate microservice. Local integration is executed by the platform core"}},"required":["configuration","defaultConverterId","name","routingKey","type"]},"CalculatedFieldDebugEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"},"entityId":{"type":"string","description":"String value representing the entity id in the event body","example":"57b6bafe-d600-423c-9267-fe31e5218986"},"entityType":{"type":"string","description":"String value representing the entity type","enum":["DEVICE"]},"msgId":{"type":"string","description":"String value representing the message id in the rule engine","example":"dcf44612-2ce4-4e5d-b462-ebb9c5628228"},"msgType":{"type":"string","description":"String value representing the message type","example":"POST_TELEMETRY_REQUEST"},"arguments":{"type":"string","description":"String value representing the arguments that were used in the calculation performed","example":{"x":{"ts":1739432016629,"value":20},"y":{"ts":1739429717656,"value":12}}},"result":{"type":"string","description":"String value representing the result of a calculation","example":{"x + y":32}},"isError":{"type":"boolean","description":"Boolean value to filter the errors","enum":["false","true"]}}}],"required":["eventType"]},"DebugConverterEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"},"type":{"type":"string"},"in":{"type":"string"},"out":{"type":"string"},"metadata":{"type":"string"},"isError":{"type":"boolean","description":"Boolean value to filter the errors","enum":["false","true"]}}}],"required":["eventType"]},"DebugIntegrationEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"},"type":{"type":"string"},"message":{"type":"string"},"statusIntegration":{"type":"string"},"isError":{"type":"boolean","description":"Boolean value to filter the errors","enum":["false","true"]}}}],"required":["eventType"]},"ErrorEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"method":{"type":"string","description":"String value representing the method name when the error happened","example":"onClusterEventMsg"},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"}}}],"required":["eventType"]},"EventFilter":{"type":"object","description":"Filter for various event types","discriminator":{"propertyName":"eventType","mapping":{"DEBUG_RULE_NODE":"#/components/schemas/RuleNodeDebugEventFilter","DEBUG_RULE_CHAIN":"#/components/schemas/RuleChainDebugEventFilter","ERROR":"#/components/schemas/ErrorEventFilter","LC_EVENT":"#/components/schemas/LifeCycleEventFilter","STATS":"#/components/schemas/StatisticsEventFilter","DEBUG_CALCULATED_FIELD":"#/components/schemas/CalculatedFieldDebugEventFilter","DEBUG_INTEGRATION":"#/components/schemas/DebugIntegrationEventFilter","DEBUG_CONVERTER":"#/components/schemas/DebugConverterEventFilter","RAW_DATA":"#/components/schemas/RawDataEventFilter"}},"properties":{"notEmpty":{"type":"boolean"},"eventType":{"$ref":"#/components/schemas/EventType","description":"String value representing the event type","example":"STATS"}},"required":["eventType"]},"EventType":{"type":"string","enum":["ERROR","LC_EVENT","STATS","RAW_DATA","DEBUG_RULE_NODE","DEBUG_RULE_CHAIN","DEBUG_CONVERTER","DEBUG_INTEGRATION","DEBUG_CALCULATED_FIELD"]},"LifeCycleEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"event":{"type":"string","description":"String value representing the lifecycle event type","example":"STARTED"},"status":{"type":"string","description":"String value representing status of the lifecycle event","enum":["Success","Failure"]},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"}}}],"required":["eventType"]},"RawDataEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"uuid":{"type":"string","description":"String value representing the uuid","example":"STARTED"},"messageType":{"type":"string","description":"String value representing the message type"},"message":{"type":"string","description":"String value representing the message"}}}],"required":["eventType"]},"RuleChainDebugEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"},"message":{"type":"string","description":"String value representing the message"},"isError":{"type":"boolean","description":"Boolean value to filter the errors","enum":["false","true"]}}}],"required":["eventType"]},"RuleNodeDebugEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"errorStr":{"type":"string","description":"The case insensitive 'contains' filter based on error message","example":"not present in the DB"},"msgDirectionType":{"type":"string","description":"String value representing msg direction type (incoming to entity or outcoming from entity)","enum":["IN","OUT"]},"entityId":{"type":"string","description":"String value representing the entity id in the event body (originator of the message)","example":"de9d54a0-2b7a-11ec-a3cc-23386423d98f"},"entityType":{"type":"string","description":"String value representing the entity type","enum":["DEVICE"]},"msgId":{"type":"string","description":"String value representing the message id in the rule engine","example":"de9d54a0-2b7a-11ec-a3cc-23386423d98f"},"msgType":{"type":"string","description":"String value representing the message type","example":"POST_TELEMETRY_REQUEST"},"relationType":{"type":"string","description":"String value representing the type of message routing","example":"Success"},"dataSearch":{"type":"string","description":"The case insensitive 'contains' filter based on data (key and value) for the message.","example":"humidity"},"metadataSearch":{"type":"string","description":"The case insensitive 'contains' filter based on metadata (key and value) for the message.","example":"deviceName"},"isError":{"type":"boolean","description":"Boolean value to filter the errors","enum":["false","true"]}}}],"required":["eventType"]},"StatisticsEventFilter":{"allOf":[{"$ref":"#/components/schemas/EventFilter"},{"type":"object","properties":{"server":{"type":"string","description":"String value representing the server name, identifier or ip address where the platform is running","example":"ip-172-31-24-152"},"minMessagesProcessed":{"type":"integer","format":"int32","description":"The minimum number of successfully processed messages","example":25},"maxMessagesProcessed":{"type":"integer","format":"int32","description":"The maximum number of successfully processed messages","example":250},"minErrorsOccurred":{"type":"integer","format":"int32","description":"The minimum number of errors occurred during messages processing","example":30},"maxErrorsOccurred":{"type":"integer","format":"int32","description":"The maximum number of errors occurred during messages processing","example":300}}}],"required":["eventType"]},"EventId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"EventInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EventId"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the event creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"type":{"type":"string","description":"Event type","example":"STATS"},"uid":{"type":"string","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"},"entityId":{"description":"JSON object with Entity Id for which event is created.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"body":{"$ref":"#/components/schemas/JsonNode"}}},"PageDataEventInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EventInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"EntityViewSearchQuery":{"type":"object","description":"The entity view search query JSON","properties":{"parameters":{"$ref":"#/components/schemas/RelationsSearchParameters","description":"Main search parameters."},"relationType":{"type":"string","description":"Type of the relation between root entity and device (e.g. 'Contains' or 'Manages')."},"entityViewTypes":{"type":"array","description":"Array of entity view types to filter the related entities (e.g. 'Temperature Sensor', 'Smoke Sensor').","items":{"type":"string"}}}},"AttributesEntityView":{"type":"object","properties":{"cs":{"type":"array","description":"List of client-side attribute keys to expose","example":["currentConfiguration"],"items":{"type":"string"}},"ss":{"type":"array","description":"List of server-side attribute keys to expose","example":["model"],"items":{"type":"string"}},"sh":{"type":"array","description":"List of shared attribute keys to expose","example":["targetConfiguration"],"items":{"type":"string"}}}},"EntityView":{"type":"object","description":"A JSON object representing the entity view.","properties":{"entityId":{"description":"JSON object with the referenced Entity Id (Device or Asset).","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Entity View."},"name":{"type":"string","description":"Entity View name","example":"A4B72CCDFF33"},"type":{"type":"string","description":"Device Profile Name","example":"Temperature Sensor"},"keys":{"$ref":"#/components/schemas/TelemetryEntityView","description":"Set of telemetry and attribute keys to expose via Entity View."},"startTimeMs":{"type":"integer","format":"int64","description":"Represents the start time of the interval that is used to limit access to target device telemetry. Customer will not be able to see entity telemetry that is outside the specified interval;"},"endTimeMs":{"type":"integer","format":"int64","description":"Represents the end time of the interval that is used to limit access to target device telemetry. Customer will not be able to see entity telemetry that is outside the specified interval;"},"version":{"type":"integer","format":"int64"},"id":{"$ref":"#/components/schemas/EntityViewId","description":"JSON object with the Entity View Id. Specify this field to update the Entity View. Referencing non-existing Entity View Id will cause error. Omit this field to create new Entity View."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the Entity View creation, in milliseconds","example":1609459200000,"readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the entity view. May include: 'description' (string).","example":{"description":"Temperature readings view"}}},"required":["entityId","name","type"]},"TelemetryEntityView":{"type":"object","properties":{"timeseries":{"type":"array","description":"List of time-series data keys to expose","example":["temperature","humidity"],"items":{"type":"string"}},"attributes":{"$ref":"#/components/schemas/AttributesEntityView","description":"JSON object with attributes to expose"}},"required":["attributes"]},"NameConflictPolicy":{"type":"string","enum":["FAIL","UNIQUIFY"]},"UniquifyStrategy":{"type":"string","enum":["RANDOM","INCREMENTAL"]},"EntityGroup":{"type":"object","description":"A JSON value representing the entity group.","properties":{"id":{"$ref":"#/components/schemas/EntityGroupId","description":"JSON object with the EntityGroupId Id. Specify this field to update the Entity Group. Referencing non-existing Entity Group Id will cause error. Omit this field to create new Entity Group."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the entity group creation, in milliseconds","example":1609459200000,"readOnly":true},"type":{"$ref":"#/components/schemas/EntityType","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE","AGENT"]},"name":{"type":"string","description":"Name of the entity group","example":"Water meters"},"ownerId":{"description":"JSON object with the owner of the group - Tenant or Customer Id. When omitted or null on creation, defaults to the current user's owner (Tenant for tenant admins, Customer for customer users).","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group).","example":{"description":"Water meters group","isPublic":false}},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON with the configuration for UI components: list of columns, settings, actions, etc "},"version":{"type":"integer","format":"int64"},"groupAll":{"type":"boolean","description":"Indicates special group 'All' that contains all entities and can't be deleted."},"edgeGroupAll":{"type":"boolean","description":"Indicates special edge group 'All' that contains all entities and can't be deleted.","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","writeOnly":true}},"required":["name","type"]},"EntityGroupInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EntityGroupId","description":"JSON object with the EntityGroupId Id. Specify this field to update the Entity Group. Referencing non-existing Entity Group Id will cause error. Omit this field to create new Entity Group."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the entity group creation, in milliseconds","example":1609459200000,"readOnly":true},"type":{"$ref":"#/components/schemas/EntityType","enum":["CUSTOMER","ASSET","DEVICE","USER","ENTITY_VIEW","DASHBOARD","EDGE","AGENT"]},"name":{"type":"string","description":"Name of the entity group","example":"Water meters"},"ownerId":{"description":"JSON object with the owner of the group - Tenant or Customer Id. When omitted or null on creation, defaults to the current user's owner (Tenant for tenant admins, Customer for customer users).","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group).","example":{"description":"Water meters group","isPublic":false}},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON with the configuration for UI components: list of columns, settings, actions, etc "},"version":{"type":"integer","format":"int64"},"ownerIds":{"type":"array","description":"List of the entity group owners.","items":{"$ref":"#/components/schemas/EntityId"},"uniqueItems":true},"groupAll":{"type":"boolean","description":"Indicates special group 'All' that contains all entities and can't be deleted."},"edgeGroupAll":{"type":"boolean","description":"Indicates special edge group 'All' that contains all entities and can't be deleted.","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","writeOnly":true}},"required":["name","ownerIds","type"]},"Dashboard":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DashboardId","description":"JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the dashboard creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the dashboard can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. "},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"title":{"type":"string","description":"Title of the dashboard."},"name":{"type":"string","description":"Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.","readOnly":true},"image":{"type":"string","description":"Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.","readOnly":true},"assignedCustomers":{"type":"array","description":"List of assigned customers with their info.","items":{"$ref":"#/components/schemas/ShortCustomerInfo"},"readOnly":true,"uniqueItems":true},"mobileHide":{"type":"boolean","description":"Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.","readOnly":true},"mobileOrder":{"type":"integer","format":"int32","description":"Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications","readOnly":true},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with main configuration of the dashboard: layouts, widgets, aliases, etc. The JSON structure of the dashboard configuration is quite complex. The easiest way to learn it is to export existing dashboard to JSON."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ResourceExportData"}},"version":{"type":"integer","format":"int64"}}},"ShortCustomerInfo":{"type":"object","properties":{"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with the customer Id."},"title":{"type":"string","description":"Title of the customer."},"public":{"type":"boolean","description":"Indicates special 'Public' customer used to embed dashboards on public websites."}}},"ComparisonTsValue":{"type":"object","properties":{"current":{"$ref":"#/components/schemas/TsValue"},"previous":{"$ref":"#/components/schemas/TsValue"}}},"EntityData":{"type":"object","properties":{"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"readAttrs":{"type":"boolean"},"readTs":{"type":"boolean"},"latest":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TsValue"}}},"timeseries":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/TsValue"}}},"aggLatest":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ComparisonTsValue"}}}},"PageDataEntityData":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntityData"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"TsValue":{"type":"object","properties":{"ts":{"type":"integer","format":"int64"},"value":{"type":"string"},"count":{"type":"integer","format":"int64"}}},"AvailableEntityKeys":{"type":"object","description":"Contains unique time series and attribute key names discovered from entities matching a query. Used primarily for UI hints such as autocomplete suggestions.","properties":{"entityTypes":{"type":"array","description":"Set of entity types found among the matched entities.","example":["DEVICE","ASSET"],"items":{"$ref":"#/components/schemas/EntityType"},"uniqueItems":true},"timeseries":{"type":"array","description":"List of unique time series key names available on the matched entities.","items":{"type":"string","example":"temperature","uniqueItems":true},"uniqueItems":true},"attribute":{"type":"array","description":"List of unique attribute key names available on the matched entities.","items":{"type":"string","example":"serialNumber","uniqueItems":true},"uniqueItems":true}},"required":["attribute","entityTypes","timeseries"]},"EntityCountQuery":{"type":"object","description":"A JSON value representing the entity count query. See API call notes above for more details.","properties":{"entityFilter":{"oneOf":[{"$ref":"#/components/schemas/ApiUsageStateFilter"},{"$ref":"#/components/schemas/AssetSearchQueryFilter"},{"$ref":"#/components/schemas/AssetTypeFilter"},{"$ref":"#/components/schemas/DeviceSearchQueryFilter"},{"$ref":"#/components/schemas/DeviceTypeFilter"},{"$ref":"#/components/schemas/EdgeSearchQueryFilter"},{"$ref":"#/components/schemas/EdgeTypeFilter"},{"$ref":"#/components/schemas/EntitiesByGroupNameFilter"},{"$ref":"#/components/schemas/EntityGroupFilter"},{"$ref":"#/components/schemas/EntityGroupListFilter"},{"$ref":"#/components/schemas/EntityGroupNameFilter"},{"$ref":"#/components/schemas/EntityListFilter"},{"$ref":"#/components/schemas/EntityNameFilter"},{"$ref":"#/components/schemas/EntityTypeFilter"},{"$ref":"#/components/schemas/EntityViewSearchQueryFilter"},{"$ref":"#/components/schemas/EntityViewTypeFilter"},{"$ref":"#/components/schemas/RelationsQueryFilter"},{"$ref":"#/components/schemas/SchedulerEventFilter"},{"$ref":"#/components/schemas/SingleEntityFilter"},{"$ref":"#/components/schemas/StateEntityFilter"},{"$ref":"#/components/schemas/StateEntityOwnerFilter"}]},"keyFilters":{"type":"array","items":{"$ref":"#/components/schemas/KeyFilter"}},"keyFiltersOperation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"keyFiltersOperationOrDefault":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"}}},"ComplexVersionCreateRequest":{"allOf":[{"$ref":"#/components/schemas/VersionCreateRequest"},{"type":"object","properties":{"syncStrategy":{"$ref":"#/components/schemas/SyncStrategy"},"entityTypes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EntityTypeVersionCreateConfig"}}}}],"required":["type"]},"EntityTypeVersionCreateConfig":{"type":"object","properties":{"saveRelations":{"type":"boolean"},"saveAttributes":{"type":"boolean"},"saveCredentials":{"type":"boolean"},"saveCalculatedFields":{"type":"boolean"},"savePermissions":{"type":"boolean"},"saveGroupEntities":{"type":"boolean"},"syncStrategy":{"$ref":"#/components/schemas/SyncStrategy"},"entityIds":{"type":"array","items":{"type":"string","format":"uuid"}},"allEntities":{"type":"boolean"}}},"SingleEntityVersionCreateRequest":{"allOf":[{"$ref":"#/components/schemas/VersionCreateRequest"},{"type":"object","properties":{"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"config":{"$ref":"#/components/schemas/VersionCreateConfig"}}}],"required":["type"]},"SyncStrategy":{"type":"string","enum":["MERGE","OVERWRITE"]},"VersionCreateConfig":{"type":"object","properties":{"saveRelations":{"type":"boolean"},"saveAttributes":{"type":"boolean"},"saveCredentials":{"type":"boolean"},"saveCalculatedFields":{"type":"boolean"},"savePermissions":{"type":"boolean"},"saveGroupEntities":{"type":"boolean"}}},"VersionCreateRequest":{"type":"object","description":"Request for creating a version","discriminator":{"propertyName":"type","mapping":{"SINGLE_ENTITY":"#/components/schemas/SingleEntityVersionCreateRequest","COMPLEX":"#/components/schemas/ComplexVersionCreateRequest"}},"properties":{"versionName":{"type":"string"},"branch":{"type":"string"},"type":{"$ref":"#/components/schemas/VersionCreateRequestType","description":"Type of the version to create"}},"required":["type"]},"VersionCreateRequestType":{"type":"string","enum":["SINGLE_ENTITY","COMPLEX"]},"EntityTypeVersionLoadConfig":{"type":"object","properties":{"loadRelations":{"type":"boolean"},"loadAttributes":{"type":"boolean"},"loadCredentials":{"type":"boolean"},"loadCalculatedFields":{"type":"boolean"},"loadPermissions":{"type":"boolean"},"loadGroupEntities":{"type":"boolean"},"autoGenerateIntegrationKey":{"type":"boolean"},"removeOtherEntities":{"type":"boolean"},"findExistingEntityByName":{"type":"boolean"}}},"EntityTypeVersionLoadRequest":{"allOf":[{"$ref":"#/components/schemas/VersionLoadRequest"},{"type":"object","properties":{"entityTypes":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/EntityTypeVersionLoadConfig"}},"rollbackOnError":{"type":"boolean"}}}],"required":["type"]},"SingleEntityVersionLoadRequest":{"allOf":[{"$ref":"#/components/schemas/VersionLoadRequest"},{"type":"object","properties":{"internalEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"externalEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"config":{"$ref":"#/components/schemas/VersionLoadConfig"}}}],"required":["type"]},"VersionLoadConfig":{"type":"object","properties":{"loadRelations":{"type":"boolean"},"loadAttributes":{"type":"boolean"},"loadCredentials":{"type":"boolean"},"loadCalculatedFields":{"type":"boolean"},"loadPermissions":{"type":"boolean"},"loadGroupEntities":{"type":"boolean"},"autoGenerateIntegrationKey":{"type":"boolean"}}},"VersionLoadRequest":{"type":"object","description":"Request for loading a version","discriminator":{"propertyName":"type","mapping":{"SINGLE_ENTITY":"#/components/schemas/SingleEntityVersionLoadRequest","ENTITY_TYPE":"#/components/schemas/EntityTypeVersionLoadRequest"}},"properties":{"versionId":{"type":"string"},"type":{"$ref":"#/components/schemas/VersionLoadRequestType","description":"Type of the version to load"}},"required":["type"]},"VersionLoadRequestType":{"type":"string","enum":["SINGLE_ENTITY","ENTITY_TYPE"]},"EdqsSyncRequest":{"type":"object","properties":{"objectTypes":{"type":"array","items":{"$ref":"#/components/schemas/ObjectType"},"uniqueItems":true}}},"ObjectType":{"type":"string","enum":["TENANT","TENANT_PROFILE","CUSTOMER","QUEUE","RPC","RULE_CHAIN","OTA_PACKAGE","RESOURCE","ROLE","ENTITY_GROUP","DEVICE_GROUP_OTA_PACKAGE","GROUP_PERMISSION","BLOB_ENTITY","SCHEDULER_EVENT","EVENT","RULE_NODE","CONVERTER","INTEGRATION","USER","EDGE","WIDGETS_BUNDLE","WIDGET_TYPE","DASHBOARD","REPORT_TEMPLATE","REPORT","DEVICE_PROFILE","DEVICE","DEVICE_CREDENTIALS","ASSET_PROFILE","ASSET","ENTITY_VIEW","ALARM","ENTITY_ALARM","OAUTH2_CLIENT","OAUTH2_DOMAIN","OAUTH2_MOBILE","USER_SETTINGS","NOTIFICATION_TARGET","NOTIFICATION_TEMPLATE","NOTIFICATION_RULE","WHITE_LABELING","CUSTOM_TRANSLATION","ALARM_COMMENT","API_USAGE_STATE","QUEUE_STATS","AUDIT_LOG","RELATION","ATTRIBUTE_KV","LATEST_TS_KV"]},"ToCoreEdqsRequest":{"type":"object","properties":{"syncRequest":{"$ref":"#/components/schemas/EdqsSyncRequest"},"apiEnabled":{"type":"boolean"}}},"EdgeSearchQuery":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/RelationsSearchParameters","description":"Main search parameters."},"relationType":{"type":"string","description":"Type of the relation between root entity and edge (e.g. 'Contains' or 'Manages')."},"edgeTypes":{"type":"array","description":"Array of edge types to filter the related entities (e.g. 'Silos', 'Stores').","items":{"type":"string"}}}},"Edge":{"type":"object","description":"A JSON value representing the edge.","properties":{"id":{"$ref":"#/components/schemas/EdgeId","description":"JSON object with the Edge Id. Specify this field to update the Edge. Referencing non-existing Edge Id will cause error. Omit this field to create new Edge."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the edge creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Always set to the tenant of the current user on save; cannot be changed after creation.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id."},"rootRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"JSON object with Root Rule Chain Id. Use 'setEdgeRootRuleChain' to change the Root Rule Chain Id.","readOnly":true},"name":{"type":"string","description":"Unique Edge Name in scope of Tenant","example":"Silo_A_Edge"},"type":{"type":"string","description":"Edge type","example":"Silos"},"label":{"type":"string","description":"Label that may be used in widgets","example":"Silo Edge on far field"},"routingKey":{"type":"string","description":"Edge routing key ('username') to authorize on cloud"},"secret":{"type":"string","description":"Edge secret ('password') to authorize on cloud"},"edgeLicenseKey":{"type":"string","description":"Edge license key obtained from license portal","example":"AgcnI24Z06XC&m6Sxsdgf"},"cloudEndpoint":{"type":"string","description":"Edge uses this cloud URL to activate and periodically check it's license","example":"https://thingsboard.cloud"},"edgeLicenseType":{"$ref":"#/components/schemas/EdgeLicenseType"},"version":{"type":"integer","format":"int64"},"ownerId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the edge. May include: 'description' (string).","example":{"description":"Edge at location A"}}},"required":["cloudEndpoint","name","routingKey","secret","type"]},"EdgeLicenseType":{"type":"string","enum":["LICENSE","ADD_ON"]},"SchedulerEventInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SchedulerEventId","description":"JSON object with the scheduler event Id. Specify this field to update the scheduler event. Referencing non-existing scheduler event Id will cause error. Omit this field to create new scheduler event"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the scheduler event creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Scheduler Event is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"originatorId":{"description":"JSON object with Originator Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"name":{"type":"string","description":"scheduler event name","example":"Weekly Dashboard Report"},"type":{"type":"string","description":"scheduler event type","example":"generateReport"},"schedule":{"$ref":"#/components/schemas/JsonNode","description":"a JSON value with schedule time configuration"},"enabled":{"type":"boolean","description":"Enable/disable scheduler","example":true},"version":{"type":"integer","format":"int64"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the scheduler event"}}},"BulkImportColumnType":{"type":"string","enum":["NAME","TYPE","LABEL","SHARED_ATTRIBUTE","SERVER_ATTRIBUTE","TIMESERIES","ACCESS_TOKEN","X509","MQTT_CLIENT_ID","MQTT_USER_NAME","MQTT_PASSWORD","LWM2M_CLIENT_ENDPOINT","LWM2M_CLIENT_SECURITY_CONFIG_MODE","LWM2M_CLIENT_IDENTITY","LWM2M_CLIENT_KEY","LWM2M_CLIENT_CERT","LWM2M_BOOTSTRAP_SERVER_SECURITY_MODE","LWM2M_BOOTSTRAP_SERVER_PUBLIC_KEY_OR_ID","LWM2M_BOOTSTRAP_SERVER_SECRET_KEY","LWM2M_SERVER_SECURITY_MODE","LWM2M_SERVER_CLIENT_PUBLIC_KEY_OR_ID","LWM2M_SERVER_CLIENT_SECRET_KEY","SNMP_HOST","SNMP_PORT","SNMP_VERSION","SNMP_COMMUNITY_STRING","IS_GATEWAY","OVERWRITE_ACTIVITY_TIME","DESCRIPTION","EDGE_LICENSE_KEY","CLOUD_ENDPOINT","ROUTING_KEY","SECRET"]},"BulkImportRequest":{"type":"object","properties":{"file":{"type":"string"},"mapping":{"$ref":"#/components/schemas/Mapping"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"entityGroupId":{"type":"string"}}},"ColumnMapping":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/BulkImportColumnType"},"key":{"type":"string"}}},"Mapping":{"type":"object","properties":{"columns":{"type":"array","items":{"$ref":"#/components/schemas/ColumnMapping"}},"delimiter":{"type":"string"},"update":{"type":"boolean"},"header":{"type":"boolean"}}},"BulkImportResultEdge":{"type":"object","properties":{"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"errors":{"type":"integer","format":"int32"},"errorsList":{"type":"array","items":{"type":"string"}}}},"Domain":{"type":"object","description":"A JSON value representing the Domain.","properties":{"id":{"$ref":"#/components/schemas/DomainId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id"},"name":{"type":"string","description":"Domain name. Cannot be empty","minLength":1},"oauth2Enabled":{"type":"boolean","description":"Whether OAuth2 settings are enabled or not"},"propagateToEdge":{"type":"boolean","description":"Whether OAuth2 settings are enabled on Edge or not"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["name"]},"DeviceSearchQuery":{"type":"object","description":"The device search query JSON","properties":{"parameters":{"$ref":"#/components/schemas/RelationsSearchParameters","description":"Main search parameters."},"relationType":{"type":"string","description":"Type of the relation between root entity and device (e.g. 'Contains' or 'Manages')."},"deviceTypes":{"type":"array","description":"Array of device types to filter the related entities (e.g. 'Temperature Sensor', 'Smoke Sensor').","items":{"type":"string"}}}},"AllowCreateNewDevicesDeviceProfileProvisionConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileProvisionConfiguration"}]},"CheckPreProvisionedDevicesDeviceProfileProvisionConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileProvisionConfiguration"}]},"ClientAttributesQueryingSnmpCommunicationConfig":{"allOf":[{"$ref":"#/components/schemas/SnmpCommunicationConfig"},{"type":"object","properties":{"mappings":{"type":"array","items":{"$ref":"#/components/schemas/SnmpMapping"}},"queryingFrequencyMs":{"type":"integer","format":"int64"}}}],"required":["spec"]},"CoapDeviceProfileTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileTransportConfiguration"},{"type":"object","properties":{"coapDeviceTypeConfiguration":{"oneOf":[{"$ref":"#/components/schemas/DefaultCoapDeviceTypeConfiguration"},{"$ref":"#/components/schemas/EfentoCoapDeviceTypeConfiguration"}]},"clientSettings":{"$ref":"#/components/schemas/PowerSavingConfiguration"}}}]},"CoapDeviceTypeConfiguration":{"description":"CoAP device type configuration","discriminator":{"propertyName":"coapDeviceType","mapping":{"DEFAULT":"#/components/schemas/DefaultCoapDeviceTypeConfiguration","EFENTO":"#/components/schemas/EfentoCoapDeviceTypeConfiguration"}},"properties":{"coapDeviceType":{"type":"string"}},"required":["coapDeviceType"]},"DefaultCoapDeviceTypeConfiguration":{"allOf":[{"$ref":"#/components/schemas/CoapDeviceTypeConfiguration"},{"type":"object","properties":{"transportPayloadTypeConfiguration":{"oneOf":[{"$ref":"#/components/schemas/JsonTransportPayloadConfiguration"},{"$ref":"#/components/schemas/ProtoTransportPayloadConfiguration"}]}}}]},"DefaultDeviceProfileConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileConfiguration"}],"description":"Default device profile configuration"},"DefaultDeviceProfileTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileTransportConfiguration"}]},"DeviceProfile":{"type":"object","description":"A JSON value representing the device profile.","properties":{"id":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with the device profile Id. Specify this field to update the device profile. Referencing non-existing device profile Id will cause error. Omit this field to create new device profile."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id that owns the profile.","readOnly":true},"name":{"type":"string","description":"Unique Device Profile Name in scope of Tenant.","example":"Moisture Sensor"},"description":{"type":"string","description":"Device Profile description. "},"image":{"type":"string","description":"Either URL or Base64 data of the icon. Used in the mobile application to visualize set of device profiles in the grid view. "},"type":{"$ref":"#/components/schemas/DeviceProfileType","description":"Type of the profile. Always 'DEFAULT' for now. Reserved for future use."},"transportType":{"$ref":"#/components/schemas/DeviceTransportType","description":"Type of the transport used to connect the device. Default transport supports HTTP, CoAP and MQTT."},"provisionType":{"$ref":"#/components/schemas/DeviceProfileProvisionType","description":"Provisioning strategy."},"defaultRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"Reference to the rule chain. If present, the specified rule chain will be used to process all messages related to device, including telemetry, attribute updates, etc. Otherwise, the root rule chain will be used to process those messages."},"defaultDashboardId":{"$ref":"#/components/schemas/DashboardId","description":"Reference to the dashboard. Used in the mobile application to open the default dashboard when user navigates to device details."},"defaultQueueName":{"type":"string","description":"Rule engine queue name. If present, the specified queue will be used to store all unprocessed messages related to device, including telemetry, attribute updates, etc. Otherwise, the 'Main' queue will be used to store those messages."},"provisionDeviceKey":{"type":"string","description":"Unique provisioning key used by 'Device Provisioning' feature."},"firmwareId":{"$ref":"#/components/schemas/OtaPackageId","description":"Reference to the firmware OTA package. If present, the specified package will be used as default device firmware. "},"softwareId":{"$ref":"#/components/schemas/OtaPackageId","description":"Reference to the software OTA package. If present, the specified package will be used as default device software. "},"defaultEdgeRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"Reference to the edge rule chain. If present, the specified edge rule chain will be used on the edge to process all messages related to device, including telemetry, attribute updates, etc. Otherwise, the edge root rule chain will be used to process those messages."},"version":{"type":"integer","format":"int64"},"default":{"type":"boolean","description":"Used to mark the default profile. Default profile is used when the device profile is not specified during device creation."},"profileData":{"$ref":"#/components/schemas/DeviceProfileData","description":"Complex JSON object that includes addition device profile configuration (transport, alarm rules, etc)."}}},"DeviceProfileConfiguration":{"description":"Device profile configuration","discriminator":{"propertyName":"type","mapping":{"DEFAULT":"#/components/schemas/DefaultDeviceProfileConfiguration"}},"properties":{"type":{"type":"string"}},"required":["type"]},"DeviceProfileData":{"type":"object","properties":{"configuration":{"description":"JSON object of device profile configuration","oneOf":[{"$ref":"#/components/schemas/DefaultDeviceProfileConfiguration"}]},"transportConfiguration":{"description":"JSON object of device profile transport configuration","oneOf":[{"$ref":"#/components/schemas/CoapDeviceProfileTransportConfiguration"},{"$ref":"#/components/schemas/DefaultDeviceProfileTransportConfiguration"},{"$ref":"#/components/schemas/Lwm2mDeviceProfileTransportConfiguration"},{"$ref":"#/components/schemas/MqttDeviceProfileTransportConfiguration"},{"$ref":"#/components/schemas/SnmpDeviceProfileTransportConfiguration"}]},"provisionConfiguration":{"description":"JSON object of provisioning strategy type per device profile","oneOf":[{"$ref":"#/components/schemas/AllowCreateNewDevicesDeviceProfileProvisionConfiguration"},{"$ref":"#/components/schemas/CheckPreProvisionedDevicesDeviceProfileProvisionConfiguration"},{"$ref":"#/components/schemas/DisabledDeviceProfileProvisionConfiguration"},{"$ref":"#/components/schemas/X509CertificateChainProvisionConfiguration"}]}}},"DeviceProfileProvisionConfiguration":{"type":"object","description":"Device profile provision configuration","discriminator":{"propertyName":"type","mapping":{"DISABLED":"#/components/schemas/DisabledDeviceProfileProvisionConfiguration","ALLOW_CREATE_NEW_DEVICES":"#/components/schemas/AllowCreateNewDevicesDeviceProfileProvisionConfiguration","CHECK_PRE_PROVISIONED_DEVICES":"#/components/schemas/CheckPreProvisionedDevicesDeviceProfileProvisionConfiguration","X509_CERTIFICATE_CHAIN":"#/components/schemas/X509CertificateChainProvisionConfiguration"}},"properties":{"provisionDeviceSecret":{"type":"string","description":"Provision device secret","example":"secret123"},"type":{"type":"string"}},"required":["type"]},"DeviceProfileProvisionType":{"type":"string","enum":["DISABLED","ALLOW_CREATE_NEW_DEVICES","CHECK_PRE_PROVISIONED_DEVICES","X509_CERTIFICATE_CHAIN"]},"DeviceProfileTransportConfiguration":{"description":"Configuration for device profile transport","discriminator":{"propertyName":"type","mapping":{"DEFAULT":"#/components/schemas/DefaultDeviceProfileTransportConfiguration","MQTT":"#/components/schemas/MqttDeviceProfileTransportConfiguration","LWM2M":"#/components/schemas/Lwm2mDeviceProfileTransportConfiguration","COAP":"#/components/schemas/CoapDeviceProfileTransportConfiguration","SNMP":"#/components/schemas/SnmpDeviceProfileTransportConfiguration"}},"properties":{"type":{"type":"string"}},"required":["type"]},"DeviceTransportType":{"type":"string","enum":["DEFAULT","MQTT","COAP","LWM2M","SNMP"]},"DisabledDeviceProfileProvisionConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileProvisionConfiguration"}]},"EfentoCoapDeviceTypeConfiguration":{"allOf":[{"$ref":"#/components/schemas/CoapDeviceTypeConfiguration"}]},"JsonTransportPayloadConfiguration":{"allOf":[{"$ref":"#/components/schemas/TransportPayloadTypeConfiguration"}]},"LwM2MBootstrapServerCredential":{"discriminator":{"propertyName":"securityMode","mapping":{"NO_SEC":"#/components/schemas/NoSecLwM2MBootstrapServerCredential","PSK":"#/components/schemas/PSKLwM2MBootstrapServerCredential","RPK":"#/components/schemas/RPKLwM2MBootstrapServerCredential","X509":"#/components/schemas/X509LwM2MBootstrapServerCredential"}},"properties":{"securityMode":{"type":"string"}},"required":["securityMode"]},"LwM2mVersion":{"type":"object","properties":{"supported":{"type":"boolean"}}},"Lwm2mDeviceProfileTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileTransportConfiguration"},{"type":"object","properties":{"observeAttr":{"$ref":"#/components/schemas/TelemetryMappingConfiguration","description":"Configuration for mapping LwM2M resources to telemetry and attributes"},"bootstrapServerUpdateEnable":{"type":"boolean","description":"Flag indicating whether LwM2M bootstrap server update is enabled"},"bootstrap":{"type":"array","items":{"$ref":"#/components/schemas/LwM2MBootstrapServerCredential"}},"clientLwM2mSettings":{"$ref":"#/components/schemas/OtherConfiguration","description":"Other LwM2M client settings"}}}]},"MqttDeviceProfileTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileTransportConfiguration"},{"type":"object","properties":{"deviceTelemetryTopic":{"type":"string"},"deviceAttributesTopic":{"type":"string"},"deviceAttributesSubscribeTopic":{"type":"string"},"transportPayloadTypeConfiguration":{"oneOf":[{"$ref":"#/components/schemas/JsonTransportPayloadConfiguration"},{"$ref":"#/components/schemas/ProtoTransportPayloadConfiguration"}]},"sparkplug":{"type":"boolean"},"sparkplugAttributesMetricNames":{"type":"array","items":{"type":"string"},"uniqueItems":true},"sendAckOnValidationException":{"type":"boolean"}}}]},"NoSecLwM2MBootstrapServerCredential":{"allOf":[{"$ref":"#/components/schemas/LwM2MBootstrapServerCredential"},{"type":"object","properties":{"shortServerId":{"type":"integer","format":"int32","description":"Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false' and MUST be null when Bootstrap-Server is 'true'. The values 0 and 65535 MUST NOT be used for identifying the LwM2M Server.","example":1,"readOnly":true},"bootstrapServerIs":{"type":"boolean","description":"Is Bootstrap Server or Lwm2m Server. The LwM2M Client MAY be configured to use one or more LwM2M Server Account(s). The LwM2M Client MUST have at most one LwM2M Bootstrap-Server Account. (*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.","example":true,"readOnly":true},"host":{"type":"string","description":"Host for 'No Security' mode","example":"0.0.0.0","readOnly":true},"port":{"type":"integer","format":"int32","description":"Port for  Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server","example":"'5685' or '5687'","readOnly":true},"clientHoldOffTime":{"type":"integer","format":"int32","description":"Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)","example":1,"readOnly":true},"serverPublicKey":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded","example":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n+44sgk3c8g0LotfMpLlZJPhPwJ6ipXV+O1r7IZUjBs3LNA==","readOnly":true},"serverCertificate":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): X509. Format: base64 encoded","example":"MMIICODCCAd6gAwIBAgIUI88U1zowOdrxDK/dOV+36gJxI2MwCgYIKoZIzj0EAwIwejELMAkGA1UEBhMCVUs\nxEjAQBgNVBAgTCUt5aXYgY2l0eTENMAsGA1UEBxMES3lpdjEUMBIGA1UEChMLVGhpbmdzYm9hcmQxFzAVBgNVBAsMDkRFVkVMT1BFUl9URVNUMRkwFwYDVQQDDBBpbnRlcm1lZGlhdGVfY2EwMB4XDTIyMDEwOTEzMDMwMFoXDTI3MDEwODEzMDMwMFowFDESMBAGA1UEAxM\nJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUO3vBo/JTv0eooY7XHiKAIVDoWKFqtrU7C6q8AIKqpLcqhCdW+haFeBOH3PjY6EwaWkY04Bir4oanU0s7tz2uKOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADAdBgNVHQ4EFgQUEjc3Q4a0TxzP/3x3EV4fHxYUg0YwHwYDVR0jBBgwFoAUuSquGycMU6Q0SYNcbtSkSD3TfH0wLwYDVR0RBCgwJoIVbG9jYWxob3N0LmxvY2FsZG9tYWlugglsb2NhbGhvc3SCAiAtMAoGCCqGSM49BAMCA0gAMEUCIQD7dbZObyUaoDiNbX+9fUNp\nAWrD7N7XuJUwZ9FcN75R3gIgb2RNjDkHoyUyF1YajwkBk+7XmIXNClmizNJigj908mw=","readOnly":true},"bootstrapServerAccountTimeout":{"type":"integer","format":"int32","description":"Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)","example":0,"readOnly":true},"lifetime":{"type":"integer","format":"int32","description":"Specify the lifetime of the registration in seconds.","example":300,"readOnly":true},"defaultMinPeriod":{"type":"integer","format":"int32","description":"The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. If this Resource doesn’t exist, the default value is 0.","example":1,"readOnly":true},"notifIfDisabled":{"type":"boolean","description":"If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. The default value is true.","example":true,"readOnly":true},"binding":{"type":"string","description":"This Resource defines the transport binding configured for the LwM2M Client. If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.","example":"U","readOnly":true}}}]},"ObjectAttributes":{"type":"object","properties":{"dim":{"type":"integer","format":"int64"},"ssid":{"type":"integer","format":"int64"},"uri":{"type":"string"},"ver":{"$ref":"#/components/schemas/Version"},"lwm2m":{"$ref":"#/components/schemas/LwM2mVersion"},"pmin":{"type":"integer","format":"int64"},"pmax":{"type":"integer","format":"int64"},"gt":{"type":"number","format":"double"},"lt":{"type":"number","format":"double"},"st":{"type":"number","format":"double"},"epmin":{"type":"integer","format":"int64"},"epmax":{"type":"integer","format":"int64"}}},"OtherConfiguration":{"type":"object","properties":{"useObject19ForOtaInfo":{"type":"boolean"},"fwUpdateStrategy":{"type":"integer","format":"int32"},"swUpdateStrategy":{"type":"integer","format":"int32"},"clientOnlyObserveAfterConnect":{"type":"integer","format":"int32"},"powerMode":{"$ref":"#/components/schemas/PowerMode"},"psmActivityTimer":{"type":"integer","format":"int64"},"edrxCycle":{"type":"integer","format":"int64"},"pagingTransmissionWindow":{"type":"integer","format":"int64"},"fwUpdateResource":{"type":"string"},"swUpdateResource":{"type":"string"},"defaultObjectIDVer":{"type":"string"}}},"PSKLwM2MBootstrapServerCredential":{"allOf":[{"$ref":"#/components/schemas/LwM2MBootstrapServerCredential"},{"type":"object","properties":{"shortServerId":{"type":"integer","format":"int32","description":"Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false' and MUST be null when Bootstrap-Server is 'true'. The values 0 and 65535 MUST NOT be used for identifying the LwM2M Server.","example":1,"readOnly":true},"bootstrapServerIs":{"type":"boolean","description":"Is Bootstrap Server or Lwm2m Server. The LwM2M Client MAY be configured to use one or more LwM2M Server Account(s). The LwM2M Client MUST have at most one LwM2M Bootstrap-Server Account. (*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.","example":true,"readOnly":true},"host":{"type":"string","description":"Host for 'No Security' mode","example":"0.0.0.0","readOnly":true},"port":{"type":"integer","format":"int32","description":"Port for  Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server","example":"'5685' or '5687'","readOnly":true},"clientHoldOffTime":{"type":"integer","format":"int32","description":"Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)","example":1,"readOnly":true},"serverPublicKey":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded","example":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n+44sgk3c8g0LotfMpLlZJPhPwJ6ipXV+O1r7IZUjBs3LNA==","readOnly":true},"serverCertificate":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): X509. Format: base64 encoded","example":"MMIICODCCAd6gAwIBAgIUI88U1zowOdrxDK/dOV+36gJxI2MwCgYIKoZIzj0EAwIwejELMAkGA1UEBhMCVUs\nxEjAQBgNVBAgTCUt5aXYgY2l0eTENMAsGA1UEBxMES3lpdjEUMBIGA1UEChMLVGhpbmdzYm9hcmQxFzAVBgNVBAsMDkRFVkVMT1BFUl9URVNUMRkwFwYDVQQDDBBpbnRlcm1lZGlhdGVfY2EwMB4XDTIyMDEwOTEzMDMwMFoXDTI3MDEwODEzMDMwMFowFDESMBAGA1UEAxM\nJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUO3vBo/JTv0eooY7XHiKAIVDoWKFqtrU7C6q8AIKqpLcqhCdW+haFeBOH3PjY6EwaWkY04Bir4oanU0s7tz2uKOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADAdBgNVHQ4EFgQUEjc3Q4a0TxzP/3x3EV4fHxYUg0YwHwYDVR0jBBgwFoAUuSquGycMU6Q0SYNcbtSkSD3TfH0wLwYDVR0RBCgwJoIVbG9jYWxob3N0LmxvY2FsZG9tYWlugglsb2NhbGhvc3SCAiAtMAoGCCqGSM49BAMCA0gAMEUCIQD7dbZObyUaoDiNbX+9fUNp\nAWrD7N7XuJUwZ9FcN75R3gIgb2RNjDkHoyUyF1YajwkBk+7XmIXNClmizNJigj908mw=","readOnly":true},"bootstrapServerAccountTimeout":{"type":"integer","format":"int32","description":"Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)","example":0,"readOnly":true},"lifetime":{"type":"integer","format":"int32","description":"Specify the lifetime of the registration in seconds.","example":300,"readOnly":true},"defaultMinPeriod":{"type":"integer","format":"int32","description":"The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. If this Resource doesn’t exist, the default value is 0.","example":1,"readOnly":true},"notifIfDisabled":{"type":"boolean","description":"If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. The default value is true.","example":true,"readOnly":true},"binding":{"type":"string","description":"This Resource defines the transport binding configured for the LwM2M Client. If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.","example":"U","readOnly":true}}}]},"PowerSavingConfiguration":{"type":"object","properties":{"powerMode":{"$ref":"#/components/schemas/PowerMode"},"psmActivityTimer":{"type":"integer","format":"int64"},"edrxCycle":{"type":"integer","format":"int64"},"pagingTransmissionWindow":{"type":"integer","format":"int64"}}},"ProtoTransportPayloadConfiguration":{"allOf":[{"$ref":"#/components/schemas/TransportPayloadTypeConfiguration"},{"type":"object","properties":{"deviceTelemetryProtoSchema":{"type":"string"},"deviceAttributesProtoSchema":{"type":"string"},"deviceRpcRequestProtoSchema":{"type":"string"},"deviceRpcResponseProtoSchema":{"type":"string"},"enableCompatibilityWithJsonPayloadFormat":{"type":"boolean"},"useJsonPayloadFormatForDefaultDownlinkTopics":{"type":"boolean"}}}]},"RPKLwM2MBootstrapServerCredential":{"allOf":[{"$ref":"#/components/schemas/LwM2MBootstrapServerCredential"},{"type":"object","properties":{"shortServerId":{"type":"integer","format":"int32","description":"Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false' and MUST be null when Bootstrap-Server is 'true'. The values 0 and 65535 MUST NOT be used for identifying the LwM2M Server.","example":1,"readOnly":true},"bootstrapServerIs":{"type":"boolean","description":"Is Bootstrap Server or Lwm2m Server. The LwM2M Client MAY be configured to use one or more LwM2M Server Account(s). The LwM2M Client MUST have at most one LwM2M Bootstrap-Server Account. (*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.","example":true,"readOnly":true},"host":{"type":"string","description":"Host for 'No Security' mode","example":"0.0.0.0","readOnly":true},"port":{"type":"integer","format":"int32","description":"Port for  Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server","example":"'5685' or '5687'","readOnly":true},"clientHoldOffTime":{"type":"integer","format":"int32","description":"Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)","example":1,"readOnly":true},"serverPublicKey":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded","example":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n+44sgk3c8g0LotfMpLlZJPhPwJ6ipXV+O1r7IZUjBs3LNA==","readOnly":true},"serverCertificate":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): X509. Format: base64 encoded","example":"MMIICODCCAd6gAwIBAgIUI88U1zowOdrxDK/dOV+36gJxI2MwCgYIKoZIzj0EAwIwejELMAkGA1UEBhMCVUs\nxEjAQBgNVBAgTCUt5aXYgY2l0eTENMAsGA1UEBxMES3lpdjEUMBIGA1UEChMLVGhpbmdzYm9hcmQxFzAVBgNVBAsMDkRFVkVMT1BFUl9URVNUMRkwFwYDVQQDDBBpbnRlcm1lZGlhdGVfY2EwMB4XDTIyMDEwOTEzMDMwMFoXDTI3MDEwODEzMDMwMFowFDESMBAGA1UEAxM\nJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUO3vBo/JTv0eooY7XHiKAIVDoWKFqtrU7C6q8AIKqpLcqhCdW+haFeBOH3PjY6EwaWkY04Bir4oanU0s7tz2uKOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADAdBgNVHQ4EFgQUEjc3Q4a0TxzP/3x3EV4fHxYUg0YwHwYDVR0jBBgwFoAUuSquGycMU6Q0SYNcbtSkSD3TfH0wLwYDVR0RBCgwJoIVbG9jYWxob3N0LmxvY2FsZG9tYWlugglsb2NhbGhvc3SCAiAtMAoGCCqGSM49BAMCA0gAMEUCIQD7dbZObyUaoDiNbX+9fUNp\nAWrD7N7XuJUwZ9FcN75R3gIgb2RNjDkHoyUyF1YajwkBk+7XmIXNClmizNJigj908mw=","readOnly":true},"bootstrapServerAccountTimeout":{"type":"integer","format":"int32","description":"Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)","example":0,"readOnly":true},"lifetime":{"type":"integer","format":"int32","description":"Specify the lifetime of the registration in seconds.","example":300,"readOnly":true},"defaultMinPeriod":{"type":"integer","format":"int32","description":"The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. If this Resource doesn’t exist, the default value is 0.","example":1,"readOnly":true},"notifIfDisabled":{"type":"boolean","description":"If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. The default value is true.","example":true,"readOnly":true},"binding":{"type":"string","description":"This Resource defines the transport binding configured for the LwM2M Client. If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.","example":"U","readOnly":true}}}]},"SharedAttributesSettingSnmpCommunicationConfig":{"allOf":[{"$ref":"#/components/schemas/SnmpCommunicationConfig"},{"type":"object","properties":{"mappings":{"type":"array","items":{"$ref":"#/components/schemas/SnmpMapping"}}}}],"required":["spec"]},"SnmpCommunicationConfig":{"type":"object","description":"SNMP communication configuration","discriminator":{"propertyName":"spec","mapping":{"TELEMETRY_QUERYING":"#/components/schemas/TelemetryQueryingSnmpCommunicationConfig","CLIENT_ATTRIBUTES_QUERYING":"#/components/schemas/ClientAttributesQueryingSnmpCommunicationConfig","SHARED_ATTRIBUTES_SETTING":"#/components/schemas/SharedAttributesSettingSnmpCommunicationConfig","TO_DEVICE_RPC_REQUEST":"#/components/schemas/ToDeviceRpcRequestSnmpCommunicationConfig","TO_SERVER_RPC_REQUEST":"#/components/schemas/ToServerRpcRequestSnmpCommunicationConfig"}},"properties":{"spec":{"$ref":"#/components/schemas/SnmpCommunicationSpec","description":"Specification of the SNMP communication"}},"required":["spec"]},"SnmpCommunicationSpec":{"type":"string","enum":["TELEMETRY_QUERYING","CLIENT_ATTRIBUTES_QUERYING","SHARED_ATTRIBUTES_SETTING","TO_DEVICE_RPC_REQUEST","TO_SERVER_RPC_REQUEST"]},"SnmpDeviceProfileTransportConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileTransportConfiguration"},{"type":"object","properties":{"timeoutMs":{"type":"integer","format":"int32"},"retries":{"type":"integer","format":"int32"},"communicationConfigs":{"type":"array","items":{"$ref":"#/components/schemas/SnmpCommunicationConfig"}}}}]},"SnmpMapping":{"type":"object","properties":{"oid":{"type":"string"},"key":{"type":"string"},"dataType":{"$ref":"#/components/schemas/DataType"}}},"TelemetryMappingConfiguration":{"type":"object","properties":{"keyName":{"type":"object","additionalProperties":{"type":"string"},"description":"Map of LwM2M resource paths to telemetry key names"},"observe":{"type":"array","description":"Set of resources to observe","items":{"type":"string"},"uniqueItems":true},"attribute":{"type":"array","description":"Set of attribute keys","items":{"type":"string"},"uniqueItems":true},"telemetry":{"type":"array","description":"Set of telemetry keys","items":{"type":"string"},"uniqueItems":true},"attributeLwm2m":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ObjectAttributes"},"description":"Map of resource paths to specific LwM2M object attributes"},"initAttrTelAsObsStrategy":{"type":"boolean"},"observeStrategy":{"$ref":"#/components/schemas/TelemetryObserveStrategy","description":"Observation strategy for telemetry"}}},"TelemetryObserveStrategy":{"type":"string","description":"Observation strategy for telemetry. SINGLE (0): one resource equals one single observe request. COMPOSITE_ALL (1): all resources in one composite observe request. COMPOSITE_BY_OBJECT (2): grouped composite observe requests by object.","enum":["SINGLE","COMPOSITE_ALL","COMPOSITE_BY_OBJECT"]},"TelemetryQueryingSnmpCommunicationConfig":{"allOf":[{"$ref":"#/components/schemas/SnmpCommunicationConfig"},{"type":"object","properties":{"mappings":{"type":"array","items":{"$ref":"#/components/schemas/SnmpMapping"}},"queryingFrequencyMs":{"type":"integer","format":"int64"}}}],"required":["spec"]},"ToDeviceRpcRequestSnmpCommunicationConfig":{"allOf":[{"$ref":"#/components/schemas/SnmpCommunicationConfig"},{"type":"object","properties":{"mappings":{"type":"array","items":{"$ref":"#/components/schemas/SnmpMapping"}}}}],"required":["spec"]},"ToServerRpcRequestSnmpCommunicationConfig":{"allOf":[{"$ref":"#/components/schemas/SnmpCommunicationConfig"},{"type":"object","properties":{"mappings":{"type":"array","items":{"$ref":"#/components/schemas/SnmpMapping"}}}}],"required":["spec"]},"TransportPayloadTypeConfiguration":{"description":"Configuration for transport payload type","discriminator":{"propertyName":"transportPayloadType","mapping":{"JSON":"#/components/schemas/JsonTransportPayloadConfiguration","PROTOBUF":"#/components/schemas/ProtoTransportPayloadConfiguration"}},"properties":{"transportPayloadType":{"type":"string"}},"required":["transportPayloadType"]},"Version":{},"X509CertificateChainProvisionConfiguration":{"allOf":[{"$ref":"#/components/schemas/DeviceProfileProvisionConfiguration"},{"type":"object","properties":{"certificateRegExPattern":{"type":"string"},"allowCreateNewDevicesByX509Certificate":{"type":"boolean"}}}]},"X509LwM2MBootstrapServerCredential":{"allOf":[{"$ref":"#/components/schemas/LwM2MBootstrapServerCredential"},{"type":"object","properties":{"shortServerId":{"type":"integer","format":"int32","description":"Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false' and MUST be null when Bootstrap-Server is 'true'. The values 0 and 65535 MUST NOT be used for identifying the LwM2M Server.","example":1,"readOnly":true},"bootstrapServerIs":{"type":"boolean","description":"Is Bootstrap Server or Lwm2m Server. The LwM2M Client MAY be configured to use one or more LwM2M Server Account(s). The LwM2M Client MUST have at most one LwM2M Bootstrap-Server Account. (*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.","example":true,"readOnly":true},"host":{"type":"string","description":"Host for 'No Security' mode","example":"0.0.0.0","readOnly":true},"port":{"type":"integer","format":"int32","description":"Port for  Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server","example":"'5685' or '5687'","readOnly":true},"clientHoldOffTime":{"type":"integer","format":"int32","description":"Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)","example":1,"readOnly":true},"serverPublicKey":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded","example":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n+44sgk3c8g0LotfMpLlZJPhPwJ6ipXV+O1r7IZUjBs3LNA==","readOnly":true},"serverCertificate":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): X509. Format: base64 encoded","example":"MMIICODCCAd6gAwIBAgIUI88U1zowOdrxDK/dOV+36gJxI2MwCgYIKoZIzj0EAwIwejELMAkGA1UEBhMCVUs\nxEjAQBgNVBAgTCUt5aXYgY2l0eTENMAsGA1UEBxMES3lpdjEUMBIGA1UEChMLVGhpbmdzYm9hcmQxFzAVBgNVBAsMDkRFVkVMT1BFUl9URVNUMRkwFwYDVQQDDBBpbnRlcm1lZGlhdGVfY2EwMB4XDTIyMDEwOTEzMDMwMFoXDTI3MDEwODEzMDMwMFowFDESMBAGA1UEAxM\nJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUO3vBo/JTv0eooY7XHiKAIVDoWKFqtrU7C6q8AIKqpLcqhCdW+haFeBOH3PjY6EwaWkY04Bir4oanU0s7tz2uKOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADAdBgNVHQ4EFgQUEjc3Q4a0TxzP/3x3EV4fHxYUg0YwHwYDVR0jBBgwFoAUuSquGycMU6Q0SYNcbtSkSD3TfH0wLwYDVR0RBCgwJoIVbG9jYWxob3N0LmxvY2FsZG9tYWlugglsb2NhbGhvc3SCAiAtMAoGCCqGSM49BAMCA0gAMEUCIQD7dbZObyUaoDiNbX+9fUNp\nAWrD7N7XuJUwZ9FcN75R3gIgb2RNjDkHoyUyF1YajwkBk+7XmIXNClmizNJigj908mw=","readOnly":true},"bootstrapServerAccountTimeout":{"type":"integer","format":"int32","description":"Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)","example":0,"readOnly":true},"lifetime":{"type":"integer","format":"int32","description":"Specify the lifetime of the registration in seconds.","example":300,"readOnly":true},"defaultMinPeriod":{"type":"integer","format":"int32","description":"The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. If this Resource doesn’t exist, the default value is 0.","example":1,"readOnly":true},"notifIfDisabled":{"type":"boolean","description":"If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. The default value is true.","example":true,"readOnly":true},"binding":{"type":"string","description":"This Resource defines the transport binding configured for the LwM2M Client. If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.","example":"U","readOnly":true}}}]},"BulkImportResultDevice":{"type":"object","properties":{"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"errors":{"type":"integer","format":"int32"},"errorsList":{"type":"array","items":{"type":"string"}}}},"SaveDeviceWithCredentialsRequest":{"type":"object","description":"The JSON object with device and credentials. See method description above for example.","properties":{"device":{"$ref":"#/components/schemas/Device","description":"The JSON with device entity."},"credentials":{"$ref":"#/components/schemas/DeviceCredentials","description":"The JSON with credentials entity."}},"required":["credentials","device"]},"Customer":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with the customer Id. Specify this field to update the customer. Referencing non-existing customer Id will cause error. Omit this field to create new customer."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the customer creation, in milliseconds","example":1609459200000,"readOnly":true},"country":{"type":"string","description":"Country","example":"US"},"state":{"type":"string","description":"State","example":"NY"},"city":{"type":"string","description":"City","example":"New York"},"address":{"type":"string","description":"Address Line 1","example":42},"address2":{"type":"string","description":"Address Line 2"},"zip":{"type":"string","description":"Zip code","example":10004},"phone":{"type":"string","description":"Phone number","example":"+1(415)777-7777"},"email":{"type":"string","description":"Email","example":"example@company.com"},"title":{"type":"string","description":"Title of the customer","example":"Company A"},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"parentCustomerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with parent Customer Id"},"version":{"type":"integer","format":"int64"},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId"},"name":{"type":"string","description":"Name of the customer. Read-only, duplicated from title for backward compatibility","example":"Company A","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with parent Customer Id","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer).","example":{"description":"Regional customer","homeDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","homeDashboardHideToolbar":false,"isPublic":false}}},"required":["title"]},"ClaimRequest":{"type":"object","description":"Claiming request which can optionally contain secret key","properties":{"secretKey":{"type":"string"}}},"ClaimResponse":{"type":"string","enum":["SUCCESS","FAILURE","CLAIMED"]},"ClaimResult":{"type":"object","properties":{"device":{"$ref":"#/components/schemas/Device"},"response":{"$ref":"#/components/schemas/ClaimResponse"}}},"CustomMenuInfo":{"type":"object","description":"A JSON value representing the custom menu basic info fields","properties":{"id":{"$ref":"#/components/schemas/CustomMenuId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id that owns the menu.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id that owns the menu.","readOnly":true},"name":{"type":"string","description":"Custom menu name","example":"Customer A custom menu"},"scope":{"$ref":"#/components/schemas/CMScope","description":"Custom menu scope. Possible values: SYSTEM, TENANT, CUSTOMER","example":"TENANT"},"assigneeType":{"$ref":"#/components/schemas/CMAssigneeType","description":"Custom menu assignee type. Possible values are: All (all users of specified scope), CUSTOMERS (specified customers), USERS (specified list of users), NO_ASSIGN (no assignees), USER_GROUPS (user groups)","example":"ALL"},"userGroupNames":{"type":"array","description":"User group names menu is applied to","example":"[Customer Administrators, Customer Users]]","items":{"type":"string"}}},"required":["assigneeType","name","scope"]},"Converter":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ConverterId","description":"JSON object with the Converter Id. Specify this field to update the Converter. Referencing non-existing Converter Id will cause error. Omit this field to create new Converter."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the converter creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"name":{"type":"string","description":"Unique Converter Name in scope of Tenant","example":"Http Converter"},"type":{"$ref":"#/components/schemas/ConverterType","description":"The type of the converter to process incoming or outgoing messages"},"integrationType":{"$ref":"#/components/schemas/IntegrationType","description":"The type of the integration to which the converter is dedicated"},"debugMode":{"type":"boolean","deprecated":true,"description":"Enable/disable debug. ","example":false},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON object representing converter configuration. It should contain one of two possible fields: 'decoder' or 'encoder'. The former is used when the converter has UPLINK type, the latter is used - when DOWNLINK type. It can contain both 'decoder' and 'encoder' fields, when the correct one is specified for the appropriate converter type, another one can be set to 'null'"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the converter"},"edgeTemplate":{"type":"boolean","description":"Boolean flag that specifies that is regular or edge template converter"},"converterVersion":{"type":"integer","format":"int32"},"version":{"type":"integer","format":"int64"}},"required":["name","type"]},"ConverterType":{"type":"string","enum":["UPLINK","DOWNLINK"]},"SubscriptionRenewalReminder":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"email":{"type":"string"},"renewalTs":{"type":"integer","format":"int64"},"planName":{"type":"string"},"amountDue":{"type":"integer","format":"int64"},"currency":{"type":"string"}}},"ChangePasswordRequest":{"type":"object","description":"Change Password Request","properties":{"currentPassword":{"type":"string","description":"The old password","example":"OldPassword"},"newPassword":{"type":"string","description":"The new password","example":"NewPassword"}}},"AssetSearchQuery":{"type":"object","properties":{"parameters":{"$ref":"#/components/schemas/RelationsSearchParameters","description":"Main search parameters."},"relationType":{"type":"string","description":"Type of the relation between root entity and asset (e.g. 'Contains' or 'Manages')."},"assetTypes":{"type":"array","description":"Array of asset types to filter the related entities (e.g. 'Building', 'Vehicle').","items":{"type":"string"}}}},"Asset":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AssetId","description":"JSON object with the asset Id. Specify this field to update the asset. Referencing non-existing asset Id will cause error. Omit this field to create new asset."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the asset creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Asset."},"name":{"type":"string","description":"Unique Asset Name in scope of Tenant","example":"Empire State Building"},"type":{"type":"string","description":"Asset type","example":"Building"},"label":{"type":"string","description":"Label that may be used in widgets","example":"NY Building"},"assetProfileId":{"$ref":"#/components/schemas/AssetProfileId","description":"JSON object with Asset Profile Id."},"version":{"type":"integer","format":"int64"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the asset. May include: 'description' (string).","example":{"description":"Building A asset"}}},"required":["name"]},"AssetProfile":{"type":"object","description":"A JSON value representing the asset profile.","properties":{"id":{"$ref":"#/components/schemas/AssetProfileId","description":"JSON object with the asset profile Id. Specify this field to update the asset profile. Referencing non-existing asset profile Id will cause error. Omit this field to create new asset profile."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id that owns the profile.","readOnly":true},"name":{"type":"string","description":"Unique Asset Profile Name in scope of Tenant.","example":"Building"},"description":{"type":"string","description":"Asset Profile description. "},"image":{"type":"string","description":"Either URL or Base64 data of the icon. Used in the mobile application to visualize set of asset profiles in the grid view. "},"defaultRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"Reference to the rule chain. If present, the specified rule chain will be used to process all messages related to asset, including asset updates, telemetry, attribute updates, etc. Otherwise, the root rule chain will be used to process those messages."},"defaultDashboardId":{"$ref":"#/components/schemas/DashboardId","description":"Reference to the dashboard. Used in the mobile application to open the default dashboard when user navigates to asset details."},"defaultQueueName":{"type":"string","description":"Rule engine queue name. If present, the specified queue will be used to store all unprocessed messages related to asset, including asset updates, telemetry, attribute updates, etc. Otherwise, the 'Main' queue will be used to store those messages."},"defaultEdgeRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"Reference to the edge rule chain. If present, the specified edge rule chain will be used on the edge to process all messages related to asset, including asset updates, telemetry, attribute updates, etc. Otherwise, the edge root rule chain will be used to process those messages."},"version":{"type":"integer","format":"int64"},"default":{"type":"boolean","description":"Used to mark the default profile. Default profile is used when the asset profile is not specified during asset creation."}}},"BulkImportResultAsset":{"type":"object","properties":{"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"errors":{"type":"integer","format":"int32"},"errorsList":{"type":"array","items":{"type":"string"}}}},"ApiKey":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ApiKeyId","description":"JSON object with the API Key Id. Specify this field to update the API Key. Referencing non-existing API Key Id will cause error. Omit this field to create new API Key."},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the API key cannot be changed.","readOnly":true},"userId":{"$ref":"#/components/schemas/UserId","description":"JSON object with User Id. User Id of the API key cannot be changed."},"expirationTime":{"type":"integer","format":"int64","description":"Expiration time of the API key."},"description":{"type":"string","description":"API Key description.","example":"API Key description","minLength":1},"enabled":{"type":"boolean","description":"Enabled/disabled API key.","example":true},"value":{"type":"string","description":"API key value"},"expired":{"type":"boolean","description":"Indicates if the API key is expired based on current time. Returns false if expirationTime is 0 (no expiry).","example":false,"readOnly":true}},"required":["description","value"]},"AlarmDataPageLink":{"type":"object","properties":{"startTs":{"type":"integer","format":"int64"},"endTs":{"type":"integer","format":"int64"},"timeWindow":{"type":"integer","format":"int64"},"typeList":{"type":"array","items":{"type":"string"}},"statusList":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSearchStatus"}},"severityList":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSeverity"}},"searchPropagatedAlarms":{"type":"boolean"},"assigneeId":{"$ref":"#/components/schemas/UserId"},"pageSize":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"textSearch":{"type":"string"},"sortOrder":{"$ref":"#/components/schemas/EntityDataSortOrder"},"dynamic":{"type":"boolean"}}},"AlarmDataQuery":{"type":"object","description":"A JSON value representing the alarm data query. See API call notes above for more details.","properties":{"entityFilter":{"oneOf":[{"$ref":"#/components/schemas/ApiUsageStateFilter"},{"$ref":"#/components/schemas/AssetSearchQueryFilter"},{"$ref":"#/components/schemas/AssetTypeFilter"},{"$ref":"#/components/schemas/DeviceSearchQueryFilter"},{"$ref":"#/components/schemas/DeviceTypeFilter"},{"$ref":"#/components/schemas/EdgeSearchQueryFilter"},{"$ref":"#/components/schemas/EdgeTypeFilter"},{"$ref":"#/components/schemas/EntitiesByGroupNameFilter"},{"$ref":"#/components/schemas/EntityGroupFilter"},{"$ref":"#/components/schemas/EntityGroupListFilter"},{"$ref":"#/components/schemas/EntityGroupNameFilter"},{"$ref":"#/components/schemas/EntityListFilter"},{"$ref":"#/components/schemas/EntityNameFilter"},{"$ref":"#/components/schemas/EntityTypeFilter"},{"$ref":"#/components/schemas/EntityViewSearchQueryFilter"},{"$ref":"#/components/schemas/EntityViewTypeFilter"},{"$ref":"#/components/schemas/RelationsQueryFilter"},{"$ref":"#/components/schemas/SchedulerEventFilter"},{"$ref":"#/components/schemas/SingleEntityFilter"},{"$ref":"#/components/schemas/StateEntityFilter"},{"$ref":"#/components/schemas/StateEntityOwnerFilter"}]},"keyFilters":{"type":"array","items":{"$ref":"#/components/schemas/KeyFilter"}},"keyFiltersOperation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"pageLink":{"$ref":"#/components/schemas/AlarmDataPageLink"},"entityFields":{"type":"array","items":{"$ref":"#/components/schemas/EntityKey"}},"latestValues":{"type":"array","items":{"$ref":"#/components/schemas/EntityKey"}},"alarmFields":{"type":"array","items":{"$ref":"#/components/schemas/EntityKey"}},"keyFiltersOperationOrDefault":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"}}},"AlarmAssignee":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UserId"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":"string"}}},"AlarmData":{"type":"object","properties":{"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"latest":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/TsValue"}}},"id":{"$ref":"#/components/schemas/AlarmId","description":"JSON object with the alarm Id. Specify this field to update the alarm. Referencing non-existing alarm Id will cause error. Omit this field to create new alarm."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm creation, in milliseconds","example":1634058704567,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Derived from the originator entity owner and cannot be set independently; any value supplied in the request body must match the originator's customer or the request is rejected.","readOnly":true},"type":{"type":"string","description":"representing type of the Alarm","example":"High Temperature Alarm"},"originator":{"description":"JSON object with alarm originator id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"severity":{"$ref":"#/components/schemas/AlarmSeverity","description":"Alarm severity","example":"CRITICAL"},"acknowledged":{"type":"boolean","description":"Acknowledged","example":true},"cleared":{"type":"boolean","description":"Cleared","example":false},"assigneeId":{"$ref":"#/components/schemas/UserId","description":"Alarm assignee user id"},"startTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm start time, in milliseconds","example":1634058704565},"endTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm end time(last time update), in milliseconds","example":1634111163522},"ackTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm acknowledgement, in milliseconds","example":1634115221948},"clearTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm clearing, in milliseconds","example":1634114528465},"assignTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm assignment, in milliseconds","example":1634115928465},"details":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with alarm details"},"propagate":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to parent entities of alarm originator","example":true},"propagateToOwner":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originator","example":true},"propagateToOwnerHierarchy":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) and all parent owners in the customer hierarchy","example":true},"propagateToTenant":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the tenant entity","example":true},"propagateRelationTypes":{"type":"array","description":"JSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.","items":{"type":"string"}},"originatorName":{"type":"string","description":"Alarm originator name","example":"Thermostat"},"originatorLabel":{"type":"string","description":"Alarm originator label","example":"Thermostat label"},"originatorDisplayName":{"type":"string","description":"Originator display name","example":"Thermostat"},"assignee":{"$ref":"#/components/schemas/AlarmAssignee","description":"Alarm assignee"},"name":{"type":"string","description":"representing type of the Alarm","example":"High Temperature Alarm","readOnly":true},"status":{"$ref":"#/components/schemas/AlarmStatus","description":"status of the Alarm","example":"ACTIVE_UNACK","readOnly":true}},"required":["acknowledged","cleared","name","originator","severity","status","type"]},"PageDataAlarmData":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AlarmData"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AlarmCountQuery":{"type":"object","description":"A JSON value representing the alarm count query.","properties":{"startTs":{"type":"integer","format":"int64"},"endTs":{"type":"integer","format":"int64"},"timeWindow":{"type":"integer","format":"int64"},"typeList":{"type":"array","items":{"type":"string"}},"statusList":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSearchStatus"}},"severityList":{"type":"array","items":{"$ref":"#/components/schemas/AlarmSeverity"}},"searchPropagatedAlarms":{"type":"boolean"},"assigneeId":{"$ref":"#/components/schemas/UserId"},"entityFilter":{"oneOf":[{"$ref":"#/components/schemas/ApiUsageStateFilter"},{"$ref":"#/components/schemas/AssetSearchQueryFilter"},{"$ref":"#/components/schemas/AssetTypeFilter"},{"$ref":"#/components/schemas/DeviceSearchQueryFilter"},{"$ref":"#/components/schemas/DeviceTypeFilter"},{"$ref":"#/components/schemas/EdgeSearchQueryFilter"},{"$ref":"#/components/schemas/EdgeTypeFilter"},{"$ref":"#/components/schemas/EntitiesByGroupNameFilter"},{"$ref":"#/components/schemas/EntityGroupFilter"},{"$ref":"#/components/schemas/EntityGroupListFilter"},{"$ref":"#/components/schemas/EntityGroupNameFilter"},{"$ref":"#/components/schemas/EntityListFilter"},{"$ref":"#/components/schemas/EntityNameFilter"},{"$ref":"#/components/schemas/EntityTypeFilter"},{"$ref":"#/components/schemas/EntityViewSearchQueryFilter"},{"$ref":"#/components/schemas/EntityViewTypeFilter"},{"$ref":"#/components/schemas/RelationsQueryFilter"},{"$ref":"#/components/schemas/SchedulerEventFilter"},{"$ref":"#/components/schemas/SingleEntityFilter"},{"$ref":"#/components/schemas/StateEntityFilter"},{"$ref":"#/components/schemas/StateEntityOwnerFilter"}]},"keyFilters":{"type":"array","items":{"$ref":"#/components/schemas/KeyFilter"}},"keyFiltersOperation":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"},"keyFiltersOperationOrDefault":{"$ref":"#/components/schemas/AlarmRuleComplexOperation"}}},"Alarm":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Derived from the originator entity owner and cannot be set independently; any value supplied in the request body must match the originator's customer or the request is rejected.","readOnly":true},"type":{"type":"string","description":"representing type of the Alarm","example":"High Temperature Alarm"},"originator":{"description":"JSON object with alarm originator id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"severity":{"$ref":"#/components/schemas/AlarmSeverity","description":"Alarm severity","example":"CRITICAL"},"acknowledged":{"type":"boolean","description":"Acknowledged","example":true},"cleared":{"type":"boolean","description":"Cleared","example":false},"assigneeId":{"$ref":"#/components/schemas/UserId","description":"Alarm assignee user id"},"startTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm start time, in milliseconds","example":1634058704565},"endTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm end time(last time update), in milliseconds","example":1634111163522},"ackTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm acknowledgement, in milliseconds","example":1634115221948},"clearTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm clearing, in milliseconds","example":1634114528465},"assignTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm assignment, in milliseconds","example":1634115928465},"details":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with alarm details"},"propagate":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to parent entities of alarm originator","example":true},"propagateToOwner":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originator","example":true},"propagateToOwnerHierarchy":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) and all parent owners in the customer hierarchy","example":true},"propagateToTenant":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the tenant entity","example":true},"propagateRelationTypes":{"type":"array","description":"JSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.","items":{"type":"string"}},"id":{"$ref":"#/components/schemas/AlarmId","description":"JSON object with the alarm Id. Specify this field to update the alarm. Referencing non-existing alarm Id will cause error. Omit this field to create new alarm."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm creation, in milliseconds","example":1634058704567,"readOnly":true},"name":{"type":"string","description":"representing type of the Alarm","example":"High Temperature Alarm","readOnly":true},"status":{"$ref":"#/components/schemas/AlarmStatus","description":"status of the Alarm","example":"ACTIVE_UNACK","readOnly":true}},"required":["acknowledged","cleared","name","originator","severity","status","type"]},"AlarmComment":{"type":"object","properties":{"alarmId":{"$ref":"#/components/schemas/AlarmId","description":"JSON object with Alarm id.","readOnly":true},"userId":{"$ref":"#/components/schemas/UserId","description":"JSON object with User id.","readOnly":true},"type":{"$ref":"#/components/schemas/AlarmCommentType","description":"Defines origination of comment. System type means comment was created by TB. OTHER type means comment was created by user.","example":"SYSTEM/OTHER"},"comment":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with text of comment."},"id":{"$ref":"#/components/schemas/AlarmCommentId","description":"JSON object with the alarm comment Id. Specify this field to update the alarm comment. Referencing non-existing alarm Id will cause error. Omit this field to create new alarm."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm comment creation, in milliseconds","example":1634058704567,"readOnly":true},"name":{"type":"string","description":"representing comment text","example":"Please take a look","readOnly":true}}},"AlarmCommentId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"AlarmCommentType":{"type":"string","enum":["SYSTEM","OTHER"]},"AlarmInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AlarmId","description":"JSON object with the alarm Id. Specify this field to update the alarm. Referencing non-existing alarm Id will cause error. Omit this field to create new alarm."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm creation, in milliseconds","example":1634058704567,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Derived from the originator entity owner and cannot be set independently; any value supplied in the request body must match the originator's customer or the request is rejected.","readOnly":true},"type":{"type":"string","description":"representing type of the Alarm","example":"High Temperature Alarm"},"originator":{"description":"JSON object with alarm originator id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"severity":{"$ref":"#/components/schemas/AlarmSeverity","description":"Alarm severity","example":"CRITICAL"},"acknowledged":{"type":"boolean","description":"Acknowledged","example":true},"cleared":{"type":"boolean","description":"Cleared","example":false},"assigneeId":{"$ref":"#/components/schemas/UserId","description":"Alarm assignee user id"},"startTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm start time, in milliseconds","example":1634058704565},"endTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm end time(last time update), in milliseconds","example":1634111163522},"ackTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm acknowledgement, in milliseconds","example":1634115221948},"clearTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm clearing, in milliseconds","example":1634114528465},"assignTs":{"type":"integer","format":"int64","description":"Timestamp of the alarm assignment, in milliseconds","example":1634115928465},"details":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with alarm details"},"propagate":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to parent entities of alarm originator","example":true},"propagateToOwner":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) of alarm originator","example":true},"propagateToOwnerHierarchy":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the owner (tenant or customer) and all parent owners in the customer hierarchy","example":true},"propagateToTenant":{"type":"boolean","description":"Propagation flag to specify if alarm should be propagated to the tenant entity","example":true},"propagateRelationTypes":{"type":"array","description":"JSON array of relation types that should be used for propagation. By default, 'propagateRelationTypes' array is empty which means that the alarm will be propagated based on any relation type to parent entities. This parameter should be used only in case when 'propagate' parameter is set to true, otherwise, 'propagateRelationTypes' array will be ignored.","items":{"type":"string"}},"originatorName":{"type":"string","description":"Alarm originator name","example":"Thermostat"},"originatorLabel":{"type":"string","description":"Alarm originator label","example":"Thermostat label"},"originatorDisplayName":{"type":"string","description":"Originator display name","example":"Thermostat"},"assignee":{"$ref":"#/components/schemas/AlarmAssignee","description":"Alarm assignee"},"name":{"type":"string","description":"representing type of the Alarm","example":"High Temperature Alarm","readOnly":true},"status":{"$ref":"#/components/schemas/AlarmStatus","description":"status of the Alarm","example":"ACTIVE_UNACK","readOnly":true}},"required":["acknowledged","cleared","name","originator","severity","status","type"]},"AlarmRuleDefinition":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CalculatedFieldId","description":"JSON object with the Alarm Rule Id. Referencing non-existing Alarm Rule Id will cause error."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm rule creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"name":{"type":"string","description":"User defined name of the alarm rule."},"debugMode":{"type":"boolean","deprecated":true,"writeOnly":true},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"configurationVersion":{"type":"integer","format":"int32","description":"Version of alarm rule configuration.","example":0},"configuration":{"$ref":"#/components/schemas/AlarmCalculatedFieldConfiguration"},"version":{"type":"integer","format":"int64"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the alarm rule. May include: 'description' (string).","example":{"description":"High temperature alarm rule"}}},"required":["configuration"]},"SolutionStep":{"type":"string","enum":["INITIAL_CONFIGURATION","DASHBOARDS_CONFIGURATION"]},"SolutionChatMessage":{"type":"object","properties":{"message":{"type":"string"},"resources":{"type":"array","items":{"type":"string","format":"uuid"}}}},"AiModel":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object representing the ID of the tenant associated with this AI model","example":"e3c4b7d2-5678-4a9b-0c1d-2e3f4a5b6c7d","readOnly":true},"version":{"type":"integer","format":"int64","default":1,"description":"Version of the AI model record; increments automatically whenever the record is changed","example":7,"readOnly":true},"name":{"type":"string","description":"Display name for this AI model configuration; not the technical model identifier","example":"Fast and cost-efficient model","minLength":1},"customerAccessEnabled":{"type":"boolean","default":false,"description":"Whether customer users with the 'INVOKE' permission for AI models can send chat requests to the model, such as users with the default 'Customer Administrator' role, which grants all operations. Tenant administrators with the 'INVOKE' permission can use the model regardless of this flag"},"configuration":{"description":"Configuration of the AI model","oneOf":[{"$ref":"#/components/schemas/AmazonBedrockChatModelConfig"},{"$ref":"#/components/schemas/AnthropicChatModelConfig"},{"$ref":"#/components/schemas/AzureOpenAiChatModelConfig"},{"$ref":"#/components/schemas/GitHubModelsChatModelConfig"},{"$ref":"#/components/schemas/GoogleAiGeminiChatModelConfig"},{"$ref":"#/components/schemas/GoogleVertexAiGeminiChatModelConfig"},{"$ref":"#/components/schemas/MistralAiChatModelConfig"},{"$ref":"#/components/schemas/OllamaChatModelConfig"},{"$ref":"#/components/schemas/OpenAiChatModelConfig"}]},"id":{"$ref":"#/components/schemas/AiModelId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true}},"required":["name"]},"AiModelConfig":{"type":"object","description":"Root configuration for AI models","discriminator":{"propertyName":"provider","mapping":{"OPENAI":"#/components/schemas/OpenAiChatModelConfig","AZURE_OPENAI":"#/components/schemas/AzureOpenAiChatModelConfig","GOOGLE_AI_GEMINI":"#/components/schemas/GoogleAiGeminiChatModelConfig","GOOGLE_VERTEX_AI_GEMINI":"#/components/schemas/GoogleVertexAiGeminiChatModelConfig","MISTRAL_AI":"#/components/schemas/MistralAiChatModelConfig","ANTHROPIC":"#/components/schemas/AnthropicChatModelConfig","AMAZON_BEDROCK":"#/components/schemas/AmazonBedrockChatModelConfig","GITHUB_MODELS":"#/components/schemas/GitHubModelsChatModelConfig","OLLAMA":"#/components/schemas/OllamaChatModelConfig"}},"properties":{"provider":{"$ref":"#/components/schemas/AiProvider","description":"AI Provider"}},"required":["provider"]},"TbChatPrompt":{"type":"object","properties":{"systemMessage":{"type":"string","description":"A system-level instruction that frames the user's input, setting the persona, tone, and constraints for the generated response","example":"You are a helpful assistant. Only output valid JSON."},"userMessage":{"$ref":"#/components/schemas/TbUserMessage","description":"The actual user prompt that will be answered by the AI model"}},"required":["userMessage"]},"TbContent":{"discriminator":{"propertyName":"contentType","mapping":{"TEXT":"#/components/schemas/TbTextContent"}},"properties":{"contentType":{"type":"string"}},"required":["contentType"]},"TbTextContent":{"type":"object","allOf":[{"$ref":"#/components/schemas/TbContent"},{"type":"object","properties":{"text":{"type":"string","description":"The text content","example":"What is the weather like in Kyiv today?","minLength":1}}}],"description":"Text-based content part of a user's prompt","required":["text"]},"TbUserMessage":{"type":"object","properties":{"contents":{"type":"array","description":"A list of content parts that make up the complete user prompt","items":{"$ref":"#/components/schemas/TbContent"},"minItems":1}},"required":["contents"]},"Failure":{"allOf":[{"$ref":"#/components/schemas/TbChatResponse"},{"type":"object","properties":{"errorDetails":{"type":"string","description":"A string containing details about the failure"},"status":{"type":"string","example":"FAILURE"}}}]},"Success":{"allOf":[{"$ref":"#/components/schemas/TbChatResponse"},{"type":"object","properties":{"generatedContent":{"type":"string","description":"The text content generated by the model"},"status":{"type":"string","example":"SUCCESS"}}}]},"TbChatResponse":{"type":"object","description":"Response from chat API","discriminator":{"propertyName":"status","mapping":{"SUCCESS":"#/components/schemas/Success","FAILURE":"#/components/schemas/Failure"}},"properties":{"status":{"type":"string","description":"Indicates whether the request was successful or not","example":"SUCCESS"}},"required":["status"]},"AiChatModelConfigObject":{"type":"object","properties":{"modelType":{"$ref":"#/components/schemas/AiModelType","readOnly":true},"provider":{"$ref":"#/components/schemas/AiProvider","description":"AI Provider"}},"required":["provider"]},"TbChatRequest":{"type":"object","properties":{"systemMessage":{"type":"string","description":"A system-level instruction that frames the user's input, setting the persona, tone, and constraints for the generated response","example":"You are a helpful assistant. Only output valid JSON."},"userMessage":{"$ref":"#/components/schemas/TbUserMessage","description":"The actual user prompt that will be answered by the AI model"},"chatModelConfig":{"description":"Configuration of the AI chat model that should execute the request","oneOf":[{"$ref":"#/components/schemas/AmazonBedrockChatModelConfig"},{"$ref":"#/components/schemas/AnthropicChatModelConfig"},{"$ref":"#/components/schemas/AzureOpenAiChatModelConfig"},{"$ref":"#/components/schemas/GitHubModelsChatModelConfig"},{"$ref":"#/components/schemas/GoogleAiGeminiChatModelConfig"},{"$ref":"#/components/schemas/GoogleVertexAiGeminiChatModelConfig"},{"$ref":"#/components/schemas/MistralAiChatModelConfig"},{"$ref":"#/components/schemas/OllamaChatModelConfig"},{"$ref":"#/components/schemas/OpenAiChatModelConfig"}]}},"required":["chatModelConfig","userMessage"]},"ServerSentEventString":{},"Agent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentId","description":"JSON object with the Agent Id. Specify this field to update the Agent. Referencing non-existing Agent Id will cause error. Omit this field to create new Agent."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the agent creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Use 'assignAgentToTenant' to change the Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id.","readOnly":true},"name":{"type":"string","description":"Unique Agent Name in scope of Tenant","example":"Silo_A_Agent"},"description":{"type":"string","description":"Agent description"},"routingKey":{"type":"string","description":"Agent routing key used for authentication","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"secret":{"type":"string","description":"Agent secret used for authentication"},"agentProfileId":{"$ref":"#/components/schemas/AgentProfileId","description":"JSON object with Agent Profile Id. Nullable."},"version":{"type":"integer","format":"int64"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}},"required":["name","routingKey","secret"]},"AgentUpgradeRequest":{"type":"object","properties":{"imageRef":{"type":"string","description":"Target agent image reference — a digest-pinned reference in production, or a tag."}},"required":["imageRef"]},"AgentAppEvent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentAppEventId","description":"JSON object with the Agent App Event Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the event creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"applicationId":{"$ref":"#/components/schemas/AgentApplicationId"},"agentId":{"$ref":"#/components/schemas/AgentId"},"applicationName":{"type":"string"},"actionType":{"$ref":"#/components/schemas/AgentAppEventActionType"},"startStatus":{"$ref":"#/components/schemas/ProcessingStartStatus"},"processingStatus":{"$ref":"#/components/schemas/AgentProcessingStatus"},"currentStepId":{"type":"string","format":"uuid"},"currentActivity":{"type":"string"},"errorMessage":{"type":"string"},"updatedTime":{"type":"integer","format":"int64"},"stepStates":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/BackupVolumesStepState"},{"$ref":"#/components/schemas/ComposeDownStepState"},{"$ref":"#/components/schemas/ComposeStepState"},{"$ref":"#/components/schemas/RollBackStepState"},{"$ref":"#/components/schemas/RunJobStepState"}]}},"bulkActionId":{"type":"string","format":"uuid"},"resolvedArguments":{"type":"object","additionalProperties":{"type":"string"}},"winnerContainerId":{"type":"string"},"finalizeDeadlineTs":{"type":"integer","format":"int64"},"contextMetadata":{"type":"object","additionalProperties":{"type":"string"}}}},"AgentAppEventActionType":{"type":"string","enum":["INSTALL","UPDATE","DELETE","RESTART","ROLLBACK","UPGRADE","AGENT_UPGRADE"]},"AgentAppStepState":{"type":"object","discriminator":{"propertyName":"type"},"properties":{"type":{"$ref":"#/components/schemas/AgentAppStepType"}}},"AgentAppStepType":{"type":"string","enum":["COMPOSE_TEMPLATE","COMPOSE","COMPOSE_START","COMPOSE_DOWN","ROLLBACK","BACKUP_VOLUME","BACKUP_VOLUME_REMOVE","COMPOSE_RESTART","RUN_JOB","AGENT_PREPARE","AGENT_FINALIZE"]},"AgentProcessingStatus":{"type":"string","enum":["PENDING","QUEUED","PROCESSING","FINISHED","ERROR","START_FAILED"]},"BackupVolumesStepState":{"allOf":[{"$ref":"#/components/schemas/AgentAppStepState"},{"type":"object","properties":{"backupVolumes":{"$ref":"#/components/schemas/StepFieldListString"}}}]},"ComposeDownStepState":{"allOf":[{"$ref":"#/components/schemas/AgentAppStepState"},{"type":"object","properties":{"removeVolumes":{"$ref":"#/components/schemas/StepFieldBoolean"},"serviceImageRegexPatterns":{"$ref":"#/components/schemas/StepFieldListString"}}}]},"ComposeStepState":{"allOf":[{"$ref":"#/components/schemas/AgentAppStepState"},{"type":"object","properties":{"pullImages":{"$ref":"#/components/schemas/StepFieldBoolean"},"serviceImageRegexPatterns":{"$ref":"#/components/schemas/StepFieldListString"}}}]},"ProcessingStartStatus":{"type":"string","enum":["DELIVERY_FAIL","PENDING","DELIVERED"]},"RollBackStepState":{"allOf":[{"$ref":"#/components/schemas/AgentAppStepState"},{"type":"object","properties":{"failedEventId":{"$ref":"#/components/schemas/StepFieldAgentAppEventId"}}}]},"RunJobStepState":{"allOf":[{"$ref":"#/components/schemas/AgentAppStepState"},{"type":"object","properties":{"image":{"$ref":"#/components/schemas/StepFieldString"},"entrypoint":{"$ref":"#/components/schemas/StepFieldListString"},"cmd":{"$ref":"#/components/schemas/StepFieldListString"},"env":{"$ref":"#/components/schemas/StepFieldListString"},"binds":{"$ref":"#/components/schemas/StepFieldListString"},"networks":{"$ref":"#/components/schemas/StepFieldListString"},"pullImages":{"$ref":"#/components/schemas/StepFieldBoolean"},"retries":{"$ref":"#/components/schemas/StepFieldInteger"},"networkFromServiceImageRegexPattern":{"$ref":"#/components/schemas/StepFieldString"}}}]},"StepFieldAgentAppEventId":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/AgentAppEventId"},"userChoice":{"type":"boolean"}}},"StepFieldBoolean":{"type":"object","properties":{"value":{"type":"boolean"},"userChoice":{"type":"boolean"}}},"StepFieldInteger":{"type":"object","properties":{"value":{"type":"integer","format":"int32"},"userChoice":{"type":"boolean"}}},"StepFieldListString":{"type":"object","properties":{"value":{"type":"array","items":{"type":"string"}},"userChoice":{"type":"boolean"}}},"StepFieldString":{"type":"object","properties":{"value":{"type":"string"},"userChoice":{"type":"boolean"}}},"AgentProfile":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentProfileId","description":"JSON object with the Agent Profile Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"name":{"type":"string","description":"Unique profile name within tenant"},"description":{"type":"string","description":"Profile description"},"provisionKey":{"type":"string","description":"Provision key for future auto-provisioning"},"provisionSecret":{"type":"string","description":"Provision secret for future auto-provisioning"},"provisionType":{"$ref":"#/components/schemas/AgentProvisionType","description":"Provisioning strategy. DISABLED by default."},"version":{"type":"integer","format":"int64"},"default":{"type":"boolean","description":"Used to mark the default profile that will be assigned to agents when no profile is specified."}},"required":["name"]},"AgentProvisionType":{"type":"string","enum":["DISABLED","NO_AUTO_INSTALL","AUTO_INSTALL_PER_APP_TYPE","AUTO_INSTALL_PER_APP_PROFILE"]},"BulkOperationRequest":{"type":"object","properties":{"actionType":{"$ref":"#/components/schemas/AgentAppEventActionType"},"stepInputs":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/BackupVolumesStepState"},{"$ref":"#/components/schemas/ComposeDownStepState"},{"$ref":"#/components/schemas/ComposeStepState"},{"$ref":"#/components/schemas/RollBackStepState"},{"$ref":"#/components/schemas/RunJobStepState"}]}}}},"AgentBulkAction":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentBulkActionId","description":"JSON object with the Agent Bulk Action Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the bulk action creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"agentProfileId":{"type":"string","format":"uuid"},"applicationProfileId":{"type":"string","format":"uuid"},"actionType":{"$ref":"#/components/schemas/AgentAppEventActionType"},"status":{"$ref":"#/components/schemas/AgentBulkActionStatus"},"errorMsg":{"type":"string"},"processingStartedTime":{"type":"integer","format":"int64"},"total":{"type":"integer","format":"int32"},"submitted":{"type":"integer","format":"int32"},"skipCounts":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"AgentBulkActionStatus":{"type":"string","enum":["QUEUED","IN_PROGRESS","STARTED","START_FAILED"]},"BulkOperationPreview":{"type":"object","properties":{"total":{"type":"integer","format":"int32","description":"Total number of apps targeted by the bulk operation"},"eligible":{"type":"integer","format":"int32","description":"Number of apps that would be submitted (total minus skipped)"},"skippedCountsByReason":{"type":"object","additionalProperties":{"type":"integer","format":"int32"},"description":"Skip count per reason for the targeted apps"},"skippedSample":{"type":"array","description":"Sample of skipped apps, capped per reason. Use the run history to inspect the full list.","items":{"$ref":"#/components/schemas/SkippedApp"}}}},"SkipReason":{"type":"string","enum":["VERSION_MISMATCH","ACTIVE_EVENT","RATE_LIMIT_EXCEEDED","ERROR"]},"SkippedApp":{"type":"object","properties":{"agentId":{"$ref":"#/components/schemas/AgentId","description":"Agent Id owning the application"},"agentName":{"type":"string","description":"Agent name"},"applicationId":{"$ref":"#/components/schemas/AgentApplicationId","description":"Application Id"},"applicationName":{"type":"string","description":"Application name"},"reason":{"$ref":"#/components/schemas/SkipReason","description":"Reason for skipping"},"msg":{"type":"string","description":"Optional message in case of a failure"}}},"AgentAppEventRequest":{"type":"object","description":"Request payload for creating an agent application event (install, update, upgrade, restart, delete, etc.).","properties":{"actionType":{"$ref":"#/components/schemas/AgentAppEventActionType","description":"Action to perform against the agent application."},"application":{"$ref":"#/components/schemas/AgentApplication","description":"Agent application payload supplied by the caller. Used to carry name/config changes for UPDATE and the target state for INSTALL/UPGRADE."},"stepInputs":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/BackupVolumesStepState"},{"$ref":"#/components/schemas/ComposeDownStepState"},{"$ref":"#/components/schemas/ComposeStepState"},{"$ref":"#/components/schemas/RollBackStepState"},{"$ref":"#/components/schemas/RunJobStepState"}]},"description":"Per-step input overrides keyed by step id (e.g. pullImages flag, backup volume selection)."},"relatedEntityId":{"description":"INSTALL-action optional related entity (Edge or Gateway Device) to link to the application in the same operation. When set, the application is created and the relation is assigned atomically. Ignored for non-INSTALL actions.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"bulkActionId":{"type":"string","format":"uuid","description":"Optional bulk-action correlation id. When the same value is used across multiple application events, duplicates are deduplicated server-side."},"skipProfileRefetch":{"type":"boolean","description":"UPDATE-action flag for profile-managed apps. When true, the compose is not re-resolved from the (possibly upgraded) profile — only the credentials carried by `application.config` are applied. Ignored for non-UPDATE actions and for non-profile-managed apps."}}},"AgentAppProfile":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentAppProfileId","description":"JSON object with the Agent Application Profile Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"name":{"type":"string","description":"Unique profile name within tenant"},"description":{"type":"string","description":"Profile description"},"appType":{"$ref":"#/components/schemas/AgentApplicationType","description":"Application type: EDGE, GATEWAY, or GENERIC"},"templateVersion":{"type":"string","description":"Template version this profile is based on"},"config":{"description":"Shared config (compose definition)","oneOf":[{"$ref":"#/components/schemas/DockerComposeConfig"}]},"version":{"type":"integer","format":"int64"}},"required":["appType","name","templateVersion"]},"AgentAppInstallResponse":{"type":"object","description":"Response payload for the install-agent-application endpoint. Carries both the created application and the INSTALL event so the caller can open a progress dialog without a second round-trip.","properties":{"application":{"$ref":"#/components/schemas/AgentApplication","description":"The newly created agent application."},"event":{"$ref":"#/components/schemas/AgentAppEvent","description":"The INSTALL event created alongside the application."}}},"AdminSettings":{"type":"object","description":"A JSON value representing the Mail Settings.","properties":{"id":{"$ref":"#/components/schemas/AdminSettingsId","description":"The Id of the Administration Settings, auto-generated, UUID"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the settings creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"key":{"type":"string","description":"The Administration Settings key, (e.g. 'general' or 'mail')","example":"mail"},"jsonValue":{"$ref":"#/components/schemas/JsonNode","description":"JSON representation of the Administration Settings value"}}},"AwsSnsSmsProviderConfiguration":{"allOf":[{"$ref":"#/components/schemas/SmsProviderConfiguration"},{"type":"object","properties":{"accessKeyId":{"type":"string","description":"The AWS SNS Access Key ID."},"secretAccessKey":{"type":"string","description":"The AWS SNS Access Key."},"region":{"type":"string","description":"The AWS region."}}}]},"SmppBindType":{"type":"string","enum":["TX","RX","TRX"]},"SmppSmsProviderConfiguration":{"allOf":[{"$ref":"#/components/schemas/SmsProviderConfiguration"},{"type":"object","properties":{"protocolVersion":{"type":"string","description":"SMPP version","enum":["3.3, 3.4"]},"host":{"type":"string","description":"SMPP host"},"port":{"type":"integer","format":"int32","description":"SMPP port"},"systemId":{"type":"string","description":"System ID"},"password":{"type":"string","description":"Password"},"systemType":{"type":"string","description":"System type"},"bindType":{"$ref":"#/components/schemas/SmppBindType","description":"TX - Transmitter, RX - Receiver, TRX - Transciever. By default TX is used"},"serviceType":{"type":"string","description":"Service type"},"sourceAddress":{"type":"string","description":"Source address"},"sourceTon":{"type":"string","format":"byte","description":"Source TON (Type of Number). Needed is source address is set. 5 by default.\n0 - Unknown\n1 - International\n2 - National\n3 - Network Specific\n4 - Subscriber Number\n5 - Alphanumeric\n6 - Abbreviated"},"sourceNpi":{"type":"string","format":"byte","description":"Source NPI (Numbering Plan Identification). Needed is source address is set. 0 by default.\n0 - Unknown\n1 - ISDN/telephone numbering plan (E163/E164)\n3 - Data numbering plan (X.121)\n4 - Telex numbering plan (F.69)\n6 - Land Mobile (E.212) =6\n8 - National numbering plan\n9 - Private numbering plan\n10 - ERMES numbering plan (ETSI DE/PS 3 01-3)\n13 - Internet (IP)\n18 - WAP Client Id (to be defined by WAP Forum)"},"destinationTon":{"type":"string","format":"byte","description":"Destination TON (Type of Number). 5 by default.\n0 - Unknown\n1 - International\n2 - National\n3 - Network Specific\n4 - Subscriber Number\n5 - Alphanumeric\n6 - Abbreviated"},"destinationNpi":{"type":"string","format":"byte","description":"Destination NPI (Numbering Plan Identification). 0 by default.\n0 - Unknown\n1 - ISDN/telephone numbering plan (E163/E164)\n3 - Data numbering plan (X.121)\n4 - Telex numbering plan (F.69)\n6 - Land Mobile (E.212) =6\n8 - National numbering plan\n9 - Private numbering plan\n10 - ERMES numbering plan (ETSI DE/PS 3 01-3)\n13 - Internet (IP)\n18 - WAP Client Id (to be defined by WAP Forum)"},"addressRange":{"type":"string","description":"Address range"},"codingScheme":{"type":"string","format":"byte","description":"0 - SMSC Default Alphabet (ASCII for short and long code and to GSM for toll-free, used as default)\n1 - IA5 (ASCII for short and long code, Latin 9 for toll-free (ISO-8859-9))\n2 - Octet Unspecified (8-bit binary)\n3 - Latin 1 (ISO-8859-1)\n4 - Octet Unspecified (8-bit binary)\n5 - JIS (X 0208-1990)\n6 - Cyrillic (ISO-8859-5)\n7 - Latin/Hebrew (ISO-8859-8)\n8 - UCS2/UTF-16 (ISO/IEC-10646)\n9 - Pictogram Encoding\n10 - Music Codes (ISO-2022-JP)\n13 - Extended Kanji JIS (X 0212-1990)\n14 - Korean Graphic Character Set (KS C 5601/KS X 1001)","maximum":14,"minimum":0}}}],"required":["host","password","port","protocolVersion","systemId"]},"SmsProviderConfiguration":{"description":"Base configuration for SMS providers","discriminator":{"propertyName":"type","mapping":{"AWS_SNS":"#/components/schemas/AwsSnsSmsProviderConfiguration","TWILIO":"#/components/schemas/TwilioSmsProviderConfiguration","SMPP":"#/components/schemas/SmppSmsProviderConfiguration"}},"properties":{"type":{"type":"string"}},"required":["type"]},"TestSmsRequest":{"type":"object","description":"A JSON value representing the Test SMS request.","properties":{"providerConfiguration":{"description":"The SMS provider configuration","oneOf":[{"$ref":"#/components/schemas/AwsSnsSmsProviderConfiguration"},{"$ref":"#/components/schemas/SmppSmsProviderConfiguration"},{"$ref":"#/components/schemas/TwilioSmsProviderConfiguration"}]},"numberTo":{"type":"string","description":"The phone number or other identifier to specify as a recipient of the SMS."},"message":{"type":"string","description":"The test message"}}},"TwilioSmsProviderConfiguration":{"allOf":[{"$ref":"#/components/schemas/SmsProviderConfiguration"},{"type":"object","properties":{"accountSid":{"type":"string","description":"Twilio account Sid."},"accountToken":{"type":"string","description":"Twilio account Token."},"numberFrom":{"type":"string","description":"The number/id of a sender."}}}]},"SecuritySettings":{"type":"object","description":"A JSON value representing the Security Settings.","properties":{"passwordPolicy":{"$ref":"#/components/schemas/UserPasswordPolicy","description":"The user password policy object."},"maxFailedLoginAttempts":{"type":"integer","format":"int32","description":"Maximum number of failed login attempts allowed before user account is locked."},"userLockoutNotificationEmail":{"type":"string","description":"Email to use for notifications about locked users."},"mobileSecretKeyLength":{"type":"integer","format":"int32","description":"Mobile secret key length"},"userActivationTokenTtl":{"type":"integer","format":"int32","description":"TTL in hours for user activation link","maximum":24,"minimum":1},"passwordResetTokenTtl":{"type":"integer","format":"int32","description":"TTL in hours for password reset link","maximum":24,"minimum":1}},"required":["passwordResetTokenTtl","userActivationTokenTtl"]},"UserPasswordPolicy":{"type":"object","properties":{"minimumLength":{"type":"integer","format":"int32","description":"Minimum number of symbols in the password."},"maximumLength":{"type":"integer","format":"int32","description":"Maximum number of symbols in the password."},"minimumUppercaseLetters":{"type":"integer","format":"int32","description":"Minimum number of uppercase letters in the password."},"minimumLowercaseLetters":{"type":"integer","format":"int32","description":"Minimum number of lowercase letters in the password."},"minimumDigits":{"type":"integer","format":"int32","description":"Minimum number of digits in the password."},"minimumSpecialCharacters":{"type":"integer","format":"int32","description":"Minimum number of special in the password."},"allowWhitespaces":{"type":"boolean","description":"Allow whitespaces"},"forceUserToResetPasswordIfNotValid":{"type":"boolean","description":"Force user to update password if existing one does not pass validation"},"passwordExpirationPeriodDays":{"type":"integer","format":"int32","description":"Password expiration period (days). Force expiration of the password."},"passwordReuseFrequencyDays":{"type":"integer","format":"int32","description":"Password reuse frequency (days). Disallow to use the same password for the defined number of days"}}},"RepositoryAuthMethod":{"type":"string","enum":["USERNAME_PASSWORD","PRIVATE_KEY"]},"RepositorySettings":{"type":"object","description":"A JSON value representing the Repository Settings.","properties":{"repositoryUri":{"type":"string"},"authMethod":{"$ref":"#/components/schemas/RepositoryAuthMethod"},"username":{"type":"string"},"password":{"type":"string"},"privateKeyFileName":{"type":"string"},"privateKey":{"type":"string"},"privateKeyPassword":{"type":"string"},"defaultBranch":{"type":"string"},"readOnly":{"type":"boolean"},"showMergeCommits":{"type":"boolean"},"localOnly":{"type":"boolean"}}},"JwtSettings":{"type":"object","description":"A JSON value representing the JWT Settings.","properties":{"tokenExpirationTime":{"type":"integer","format":"int32","description":"The JWT will expire after seconds.","example":9000},"refreshTokenExpTime":{"type":"integer","format":"int32","description":"The JWT can be refreshed during seconds.","example":604800},"tokenIssuer":{"type":"string","description":"The JWT issuer.","example":"thingsboard.io"},"tokenSigningKey":{"type":"string","description":"The JWT key is used to sing token. Base64 encoded.","example":"dkVTUzU2M2VMWUNwVVltTUhQU2o5SUM0Tkc3M0k2Ykdwcm85QTl6R0RaQ252OFlmVDk2OEptZXBNcndGeExFZg=="}}},"AutoCommitSettings":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/AutoVersionCreateConfig"}},"AutoVersionCreateConfig":{"type":"object","properties":{"saveRelations":{"type":"boolean"},"saveAttributes":{"type":"boolean"},"saveCredentials":{"type":"boolean"},"saveCalculatedFields":{"type":"boolean"},"savePermissions":{"type":"boolean"},"saveGroupEntities":{"type":"boolean"},"branch":{"type":"string"}}},"BackupCodeTwoFaProviderConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaProviderConfig"},{"type":"object","properties":{"codesQuantity":{"type":"integer","format":"int32","minimum":1}}}]},"EmailTwoFaProviderConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaProviderConfig"},{"type":"object","properties":{"verificationCodeLifetime":{"type":"integer","format":"int32","minimum":1}}}]},"PlatformTwoFaSettings":{"type":"object","description":"Settings value","properties":{"useSystemTwoFactorAuthSettings":{"type":"boolean"},"providers":{"type":"array","items":{"$ref":"#/components/schemas/TwoFaProviderConfig"}},"minVerificationCodeSendPeriod":{"type":"integer","format":"int32","minimum":5},"verificationCodeCheckRateLimit":{"type":"string","pattern":"[1-9]\\d*:[1-9]\\d*"},"maxVerificationFailuresBeforeUserLockout":{"type":"integer","format":"int32","minimum":0},"totalAllowedTimeForVerification":{"type":"integer","format":"int32","minimum":60},"enforceTwoFa":{"type":"boolean"},"enforcedUsersFilter":{"$ref":"#/components/schemas/SystemLevelUsersFilter"}},"required":["minVerificationCodeSendPeriod","providers","totalAllowedTimeForVerification"]},"SmsTwoFaProviderConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaProviderConfig"},{"type":"object","properties":{"verificationCodeLifetime":{"type":"integer","format":"int32","minimum":1},"smsVerificationMessageTemplate":{"type":"string","minLength":1,"pattern":".*\\$\\{code}.*"}}}],"required":["smsVerificationMessageTemplate"]},"SystemLevelUsersFilter":{},"TotpTwoFaProviderConfig":{"allOf":[{"$ref":"#/components/schemas/TwoFaProviderConfig"},{"type":"object","properties":{"issuerName":{"type":"string","minLength":1}}}],"required":["issuerName"]},"TwoFaProviderConfig":{"description":"Two-factor authentication provider configuration","discriminator":{"propertyName":"providerType","mapping":{"TOTP":"#/components/schemas/TotpTwoFaProviderConfig","SMS":"#/components/schemas/SmsTwoFaProviderConfig","EMAIL":"#/components/schemas/EmailTwoFaProviderConfig","BACKUP_CODE":"#/components/schemas/BackupCodeTwoFaProviderConfig"}},"properties":{"providerType":{"type":"string"}},"required":["providerType"]},"PageDataWidgetsBundle":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/WidgetsBundle"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"WidgetType":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/WidgetTypeId","description":"JSON object with the Widget Type Id. Specify this field to update the Widget Type. Referencing non-existing Widget Type Id will cause error. Omit this field to create new Widget Type."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the Widget Type creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"fqn":{"type":"string","description":"Unique FQN that is used in dashboards as a reference widget type","readOnly":true},"name":{"type":"string","description":"Widget name used in search and UI","readOnly":true},"deprecated":{"type":"boolean","description":"Whether widget type is deprecated.","example":true},"scada":{"type":"boolean","description":"Whether widget type is SCADA symbol.","example":true},"version":{"type":"integer","format":"int64"},"descriptor":{"$ref":"#/components/schemas/JsonNode","description":"Complex JSON object that describes the widget type","readOnly":true}}},"PageDataWidgetTypeInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/WidgetTypeInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"WidgetBundleInfo":{"type":"object","properties":{"id":{"description":"JSON object with the entity Id. ","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"name":{"type":"string","description":"Entity Name"}}},"WidgetTypeInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/WidgetTypeId","description":"JSON object with the Widget Type Id. Specify this field to update the Widget Type. Referencing non-existing Widget Type Id will cause error. Omit this field to create new Widget Type."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the Widget Type creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"fqn":{"type":"string","description":"Unique FQN that is used in dashboards as a reference widget type","readOnly":true},"name":{"type":"string","description":"Widget name used in search and UI","readOnly":true},"deprecated":{"type":"boolean","description":"Whether widget type is deprecated.","example":true},"scada":{"type":"boolean","description":"Whether widget type is SCADA symbol.","example":true},"version":{"type":"integer","format":"int64"},"image":{"type":"string","description":"Base64 encoded widget thumbnail","readOnly":true},"description":{"type":"string","description":"Description of the widget type","readOnly":true},"tags":{"type":"array","description":"Tags of the widget type","items":{"type":"string"},"readOnly":true},"widgetType":{"type":"string","description":"Type of the widget (timeseries, latest, control, alarm or static)","readOnly":true},"bundles":{"type":"array","description":"Bundles","items":{"$ref":"#/components/schemas/WidgetBundleInfo"},"readOnly":true}}},"PageDataReport":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Report"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"ReportInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ReportId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"templateId":{"$ref":"#/components/schemas/ReportTemplateId"},"format":{"$ref":"#/components/schemas/TbReportFormat"},"name":{"type":"string","minLength":1},"userId":{"$ref":"#/components/schemas/UserId"},"publicKey":{"type":"string"},"templateInfo":{"$ref":"#/components/schemas/EntityInfo"},"customerTitle":{"type":"string"},"userName":{"type":"string"},"public":{"type":"boolean"},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["format","name","tenantId","userId"]},"PageDataReportInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/ReportInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAlarmInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AlarmInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataUserEmailInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/UserEmailInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"UserEmailInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UserId","description":"User id"},"email":{"type":"string","description":"User email","example":"john@gmail.com"},"firstName":{"type":"string","description":"User first name","example":"John"},"lastName":{"type":"string","description":"User last name","example":"Brown"}}},"PageDataUserInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/UserInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"UserInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/UserId","description":"JSON object with the User Id. Specify this field to update the device. Referencing non-existing User Id will cause error. Omit this field to create new customer."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the user creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with the Tenant Id."},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with the Customer Id."},"email":{"type":"string","description":"Email of the user","example":"user@example.com"},"authority":{"$ref":"#/components/schemas/Authority","description":"Authority","example":"SYS_ADMIN, TENANT_ADMIN or CUSTOMER_USER"},"firstName":{"type":"string","description":"First name of the user","example":"John"},"lastName":{"type":"string","description":"Last name of the user","example":"Doe"},"phone":{"type":"string","description":"Phone number of the user","example":38012345123},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId"},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"name":{"type":"string","description":"Duplicates the email of the user, readonly","example":"user@example.com","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider).","example":{"defaultDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","defaultDashboardFullscreen":false,"homeDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","homeDashboardHideToolbar":true,"lang":"en_US"}}},"required":["authority","email"]},"UserActivationLink":{"type":"object","properties":{"value":{"type":"string"},"ttlMs":{"type":"integer","format":"int64"}}},"LastVisitedDashboardInfo":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"JSON object with Dashboard id.","readOnly":true},"title":{"type":"string","description":"Title of the dashboard."},"starred":{"type":"boolean","description":"Starred flag"},"lastVisited":{"type":"integer","format":"int64","description":"Last visit timestamp"}}},"StarredDashboardInfo":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"JSON object with Dashboard id.","readOnly":true},"title":{"type":"string","description":"Title of the dashboard."},"starredAt":{"type":"integer","format":"int64","description":"Starred timestamp"}}},"UserDashboardsInfo":{"type":"object","properties":{"last":{"type":"array","description":"List of last visited dashboards.","items":{"$ref":"#/components/schemas/LastVisitedDashboardInfo"},"readOnly":true},"starred":{"type":"array","description":"List of starred dashboards.","items":{"$ref":"#/components/schemas/StarredDashboardInfo"},"readOnly":true}}},"PageDataEntityView":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntityView"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataEdge":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Edge"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataDevice":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Device"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"DashboardInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DashboardId","description":"JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the dashboard creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the dashboard can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. "},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"title":{"type":"string","description":"Title of the dashboard."},"name":{"type":"string","description":"Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.","readOnly":true},"image":{"type":"string","description":"Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.","readOnly":true},"assignedCustomers":{"type":"array","description":"List of assigned customers with their info.","items":{"$ref":"#/components/schemas/ShortCustomerInfo"},"readOnly":true,"uniqueItems":true},"mobileHide":{"type":"boolean","description":"Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.","readOnly":true},"mobileOrder":{"type":"integer","format":"int32","description":"Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications","readOnly":true},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with main configuration of the dashboard: layouts, widgets, aliases, etc. The JSON structure of the dashboard configuration is quite complex. The easiest way to learn it is to export existing dashboard to JSON."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ResourceExportData"}},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true}}},"PageDataDashboardInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/DashboardInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataCustomer":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Customer"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAsset":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Asset"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"UsageInfo":{"type":"object","properties":{"devices":{"type":"integer","format":"int64"},"maxDevices":{"type":"integer","format":"int64"},"assets":{"type":"integer","format":"int64"},"maxAssets":{"type":"integer","format":"int64"},"customers":{"type":"integer","format":"int64"},"maxCustomers":{"type":"integer","format":"int64"},"users":{"type":"integer","format":"int64"},"maxUsers":{"type":"integer","format":"int64"},"dashboards":{"type":"integer","format":"int64"},"maxDashboards":{"type":"integer","format":"int64"},"edges":{"type":"integer","format":"int64"},"maxEdges":{"type":"integer","format":"int64"},"transportMessages":{"type":"integer","format":"int64"},"maxTransportMessages":{"type":"integer","format":"int64"},"jsExecutions":{"type":"integer","format":"int64"},"tbelExecutions":{"type":"integer","format":"int64"},"maxJsExecutions":{"type":"integer","format":"int64"},"maxTbelExecutions":{"type":"integer","format":"int64"},"emails":{"type":"integer","format":"int64"},"maxEmails":{"type":"integer","format":"int64"},"sms":{"type":"integer","format":"int64"},"maxSms":{"type":"integer","format":"int64"},"smsEnabled":{"type":"boolean"},"alarms":{"type":"integer","format":"int64"},"maxAlarms":{"type":"integer","format":"int64"},"reports":{"type":"integer","format":"int64"},"maxReports":{"type":"integer","format":"int64"},"aiCredits":{"type":"integer","format":"int64"},"maxAiCredits":{"type":"integer","format":"int64"}}},"TrendzViewConfig":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"runtimeFilters":{"type":"array","items":{}}}},"PageDataTrendzViewConfigLite":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/TrendzViewConfigLite"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"TrendzViewConfigLite":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"Entity":{"type":"object","properties":{"used":{"type":"boolean"},"activeCount":{"type":"integer","format":"int64"},"totalCount":{"type":"integer","format":"int64"}}},"SimpleEntity":{"type":"object","properties":{"used":{"type":"boolean"},"totalCount":{"type":"integer","format":"int64"}}},"TrendzUsage":{"type":"object","properties":{"used":{"type":"boolean"},"anomalyUsage":{"$ref":"#/components/schemas/Entity"},"predictionUsage":{"$ref":"#/components/schemas/Entity"},"calculationUsage":{"$ref":"#/components/schemas/Entity"},"viewUsage":{"$ref":"#/components/schemas/SimpleEntity"},"metricUsage":{"$ref":"#/components/schemas/SimpleEntity"},"chatUsage":{"$ref":"#/components/schemas/SimpleEntity"}}},"TrendzSummary":{"type":"object","properties":{"metricSummaryItems":{"type":"array","items":{}},"anomalyModelSummaryItems":{"type":"array","items":{}},"calculationFieldSummaryItems":{"type":"array","items":{}},"predictionModelSummaryItems":{"type":"array","items":{}},"viewSummaryItems":{"type":"array","items":{}},"aiSummaryItems":{"type":"array","items":{}}}},"TrendzHealthcheckResult":{"type":"object","properties":{"version":{"type":"string"},"type":{"$ref":"#/components/schemas/TrendzSynchronizationResultType"},"status":{"$ref":"#/components/schemas/TrendzSynchronizationStatus"},"message":{"type":"string"}}},"TranslationInfo":{"type":"object","properties":{"localeCode":{"type":"string","description":"Locale code formed by combining the ISO 639-1 language code and the ISO 3166-1 region code. For example, \"en_US\""},"language":{"type":"string","description":"Locale code language display name. For example, \"Polish (Polski)\""},"country":{"type":"string","description":"Locale code country display name. For example, \"Poland\""},"progress":{"type":"integer","format":"int32","description":"Number representing translation percentage progress. For example, 40 that means 40% of all keys are translated."},"customized":{"type":"boolean","description":"Boolean representing if current language has customization."}}},"PageDataTenant":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Tenant"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataTenantProfile":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/TenantProfile"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataEntityInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataTenantInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/TenantInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"TenantInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/TenantId","description":"JSON object with the tenant Id. Specify this field to update the tenant. Referencing non-existing tenant Id will cause error. Omit this field to create new tenant."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the tenant creation, in milliseconds","example":1609459200000,"readOnly":true},"country":{"type":"string","description":"Country","example":"US"},"state":{"type":"string","description":"State","example":"NY"},"city":{"type":"string","description":"City","example":"New York"},"address":{"type":"string","description":"Address Line 1","example":42},"address2":{"type":"string","description":"Address Line 2"},"zip":{"type":"string","description":"Zip code","example":10004},"phone":{"type":"string","description":"Phone number","example":"+1(415)777-7777"},"email":{"type":"string","description":"Email","example":"example@company.com"},"title":{"type":"string","description":"Title of the tenant","example":"Company A"},"region":{"type":"string","description":"Geo region of the tenant","example":"North America"},"tenantProfileId":{"$ref":"#/components/schemas/TenantProfileId","description":"JSON object with Tenant Profile Id"},"version":{"type":"integer","format":"int64"},"active":{"type":"boolean"},"lastInactiveTs":{"type":"integer","format":"int64"},"currentPeriodStartTs":{"type":"integer","format":"int64"},"edgeLicenseVersion":{"type":"integer","format":"int32"},"tenantProfileName":{"type":"string","description":"Tenant Profile name","example":"Default"},"name":{"type":"string","description":"Name of the tenant. Read-only, duplicated from title for backward compatibility","example":"Company A","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the tenant. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar).","example":{"description":"Main tenant","homeDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","homeDashboardHideToolbar":true}},"addonData":{"$ref":"#/components/schemas/TenantAddonData"}},"required":["title"]},"CouponDuration":{"type":"string","enum":["FOREVER","ONCE","REPEATING"]},"Discount":{"type":"object","properties":{"couponCode":{"type":"string"},"couponValid":{"type":"boolean"},"amountOff":{"type":"integer","format":"int64"},"percentOff":{"type":"number","format":"double"},"couponId":{"$ref":"#/components/schemas/CouponId"},"duration":{"$ref":"#/components/schemas/CouponDuration"},"durationInMonths":{"type":"integer","format":"int64"},"endDate":{"type":"integer","format":"int64"},"package":{"type":"boolean"}}},"SubscriptionDetails":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SubscriptionId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"externalId":{"type":"string"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"billingCustomerId":{"$ref":"#/components/schemas/BillingCustomerId"},"subscriptionPlanId":{"$ref":"#/components/schemas/SubscriptionPlanId"},"currentPeriodStartTs":{"type":"integer","format":"int64"},"currentPeriodEndTs":{"type":"integer","format":"int64"},"active":{"type":"boolean"},"trial":{"type":"boolean"},"trialEndTs":{"type":"integer","format":"int64"},"status":{"type":"string"},"lastPaid":{"type":"boolean"},"upcomingInvoiceDate":{"type":"integer","format":"int64"},"upcomingInvoiceAmountDue":{"type":"integer","format":"int64"},"couponId":{"$ref":"#/components/schemas/CouponId"},"discountEndDate":{"type":"integer","format":"int64"},"subscriptionPlanName":{"type":"string"},"planHasAddons":{"type":"boolean"},"planUiType":{"type":"string"},"planIsFree":{"type":"boolean"},"planIsActive":{"type":"boolean"},"edgeCountIncluded":{"type":"integer","format":"int64"},"items":{"$ref":"#/components/schemas/SubscriptionItems"},"discount":{"$ref":"#/components/schemas/Discount"},"name":{"type":"string","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}}},"SubscriptionItems":{"type":"object","properties":{"extraDevicePackCount":{"type":"integer","format":"int64"},"extraCustomerPackCount":{"type":"integer","format":"int64"},"extraIntegrationPackCount":{"type":"integer","format":"int64"},"extraCalculatedFieldCount":{"type":"integer","format":"int64"},"extraAgentPackCount":{"type":"integer","format":"int64"},"trafficPackCount":{"type":"integer","format":"int64"},"computePackCount":{"type":"integer","format":"int64"},"storagePackCount":{"type":"integer","format":"int64"},"alarmPackCount":{"type":"integer","format":"int64"},"emailPackCount":{"type":"integer","format":"int64"},"smsPackCount":{"type":"integer","format":"int64"},"aiCreditsPackCount":{"type":"integer","format":"int64"},"edgeEnabled":{"type":"boolean"},"extraEdgeCount":{"type":"integer","format":"int64"},"trendzEnabled":{"type":"boolean"},"whiteLabelingAddonEnabled":{"type":"boolean"}}},"SubscriptionUsage":{"type":"object","properties":{"devices":{"type":"integer","format":"int64"},"assets":{"type":"integer","format":"int64"},"customers":{"type":"integer","format":"int64"},"users":{"type":"integer","format":"int64"},"dashboards":{"type":"integer","format":"int64"},"ruleChains":{"type":"integer","format":"int64"},"integrations":{"type":"integer","format":"int64"},"converters":{"type":"integer","format":"int64"},"schedulerEvents":{"type":"integer","format":"int64"},"edges":{"type":"integer","format":"int64"},"agents":{"type":"integer","format":"int64"},"transportMessages":{"type":"integer","format":"int64"},"transportDataPoints":{"type":"integer","format":"int64"},"reExecutions":{"type":"integer","format":"int64"},"jsExecutions":{"type":"integer","format":"int64"},"dpStorageDays":{"type":"integer","format":"int64"},"emails":{"type":"integer","format":"int64"},"sms":{"type":"integer","format":"int64"},"alarms":{"type":"integer","format":"int64"},"reports":{"type":"integer","format":"int64"},"aiCredits":{"type":"integer","format":"int64"}}},"PageDataAgent":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Agent"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AgentInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentId","description":"JSON object with the Agent Id. Specify this field to update the Agent. Referencing non-existing Agent Id will cause error. Omit this field to create new Agent."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the agent creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Use 'assignAgentToTenant' to change the Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id.","readOnly":true},"name":{"type":"string","description":"Unique Agent Name in scope of Tenant","example":"Silo_A_Agent"},"description":{"type":"string","description":"Agent description"},"routingKey":{"type":"string","description":"Agent routing key used for authentication","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"secret":{"type":"string","description":"Agent secret used for authentication"},"agentProfileId":{"$ref":"#/components/schemas/AgentProfileId","description":"JSON object with Agent Profile Id. Nullable."},"version":{"type":"integer","format":"int64"},"customerTitle":{"type":"string","description":"Title of the Customer that owns the agent.","readOnly":true},"customerIsPublic":{"type":"boolean","description":"Indicates special 'Public' Customer that is auto-generated to use the agents on public dashboards.","readOnly":true},"agentProfileName":{"type":"string","description":"Name of the Agent Profile the agent belongs to.","readOnly":true},"ownerName":{"type":"string","description":"Owner name — tenant title if the agent is owned by a tenant, or customer title otherwise.","readOnly":true},"groups":{"type":"array","description":"Entity groups that contain this agent (excluding the implicit 'All' group).","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"active":{"type":"boolean","description":"Whether the agent currently has an active connection (derived from server-scope 'active' attribute).","readOnly":true},"agentVersion":{"type":"string","description":"Agent software version reported on the last connect (derived from server-scope 'agentVersion' attribute).","readOnly":true},"upgradeTargetImageRef":{"type":"string","description":"Image reference this agent should be upgraded to, or null when no upgrade applies. Resolved from the published version graph.","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}},"required":["name","routingKey","secret"]},"PageDataAgentInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAgentProfile":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentProfile"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AgentProfileInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentProfileId","description":"JSON object with the Agent Profile Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"name":{"type":"string","description":"Unique profile name within tenant"},"description":{"type":"string","description":"Profile description"},"provisionKey":{"type":"string","description":"Provision key for future auto-provisioning"},"provisionSecret":{"type":"string","description":"Provision secret for future auto-provisioning"},"provisionType":{"$ref":"#/components/schemas/AgentProvisionType","description":"Provisioning strategy. DISABLED by default."},"version":{"type":"integer","format":"int64"},"default":{"type":"boolean","description":"Used to mark the default profile that will be assigned to agents when no profile is specified."}},"required":["name"]},"PageDataAgentProfileInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentProfileInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAgentAppProfile":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentAppProfile"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"SystemVersionInfo":{"type":"object","description":"Version and edition of the platform build","properties":{"version":{"type":"string","description":"Platform version, or 'unknown' when the build information is not available","example":"4.4.1"},"artifact":{"type":"string","description":"Build artifact; absent when the build information is not available","example":"application"},"name":{"type":"string","description":"Build name; absent when the build information is not available","example":"ThingsBoard Server Application"},"type":{"type":"string","description":"Platform edition","example":"PE"}},"required":["type","version"]},"SelfRegistrationParams":{"type":"object","discriminator":{"propertyName":"type","mapping":{"WEB":"#/components/schemas/WebSelfRegistrationParams","MOBILE":"#/components/schemas/MobileSelfRegistrationParams"}},"properties":{"type":{"$ref":"#/components/schemas/SelfRegistrationType"},"enabled":{"type":"boolean"},"title":{"type":"string"},"captcha":{"oneOf":[{"$ref":"#/components/schemas/EnterpriseCaptchaParams"},{"$ref":"#/components/schemas/V2CaptchaParams"},{"$ref":"#/components/schemas/V3CaptchaParams"}]},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/GroupPermission"}},"notificationRecipient":{"$ref":"#/components/schemas/NotificationTargetId"},"signUpFields":{"type":"array","items":{"$ref":"#/components/schemas/SignUpField"}},"customerTitlePrefix":{"type":"string"},"showPrivacyPolicy":{"type":"boolean"},"showTermsOfUse":{"type":"boolean"},"defaultDashboard":{"$ref":"#/components/schemas/DefaultDashboardParams"},"homeDashboard":{"$ref":"#/components/schemas/HomeDashboardParams"},"customerGroupId":{"$ref":"#/components/schemas/EntityGroupId"},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId"}},"required":["type"]},"PageDataSecretInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/SecretInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataSchedulerEventWithCustomerInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/SchedulerEventWithCustomerInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"SchedulerEventWithCustomerInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SchedulerEventId","description":"JSON object with the scheduler event Id. Specify this field to update the scheduler event. Referencing non-existing scheduler event Id will cause error. Omit this field to create new scheduler event"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the scheduler event creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Scheduler Event is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"originatorId":{"description":"JSON object with Originator Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"name":{"type":"string","description":"scheduler event name","example":"Weekly Dashboard Report"},"type":{"type":"string","description":"scheduler event type","example":"generateReport"},"schedule":{"$ref":"#/components/schemas/JsonNode","description":"a JSON value with schedule time configuration"},"enabled":{"type":"boolean","description":"Enable/disable scheduler","example":true},"version":{"type":"integer","format":"int64"},"customerTitle":{"type":"string","description":"Title of the customer","example":"Company A"},"customerIsPublic":{"type":"boolean","description":"Parameter that specifies if customer is public","readOnly":true},"timestamps":{"type":"array","items":{"type":"integer","format":"int64"}},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the scheduler event"}}},"PageDataScheduledReportInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/ScheduledReportInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"ScheduledReportInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/SchedulerEventId","description":"JSON object with the scheduler event Id. Specify this field to update the scheduler event. Referencing non-existing scheduler event Id will cause error. Omit this field to create new scheduler event"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the scheduler event creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Scheduler Event is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"originatorId":{"description":"JSON object with Originator Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"name":{"type":"string","description":"scheduler event name","example":"Weekly Dashboard Report"},"type":{"type":"string","description":"scheduler event type","example":"generateReport"},"schedule":{"$ref":"#/components/schemas/JsonNode","description":"a JSON value with schedule time configuration"},"enabled":{"type":"boolean","description":"Enable/disable scheduler","example":true},"version":{"type":"integer","format":"int64"},"templateInfo":{"$ref":"#/components/schemas/EntityInfo","description":"Report template info","readOnly":true},"customerTitle":{"type":"string","description":"Customer title","readOnly":true},"userName":{"type":"string","description":"Report user name","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the scheduler event"}}},"PageDataRuleChain":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/RuleChain"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"RuleChainOutputLabelsUsage":{"type":"object","properties":{"ruleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"Rule Chain Id","readOnly":true},"ruleNodeId":{"$ref":"#/components/schemas/RuleNodeId","description":"Rule Node Id","readOnly":true},"ruleChainName":{"type":"string","description":"Rule Chain Name","readOnly":true},"ruleNodeName":{"type":"string","description":"Rule Node Name","readOnly":true},"labels":{"type":"array","description":"Output labels","items":{"type":"string"},"readOnly":true,"uniqueItems":true}},"required":["labels","ruleChainId","ruleChainName","ruleNodeId","ruleNodeName"]},"Rpc":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/RpcId","description":"JSON object with the rpc Id. Referencing non-existing rpc Id will cause error."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the rpc creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"deviceId":{"$ref":"#/components/schemas/DeviceId","description":"JSON object with Device Id.","readOnly":true},"expirationTime":{"type":"integer","format":"int64","description":"Expiration time of the request.","readOnly":true},"request":{"$ref":"#/components/schemas/JsonNode","description":"The request body that will be used to send message to device.","readOnly":true},"response":{"$ref":"#/components/schemas/JsonNode","description":"The response from the device.","readOnly":true},"status":{"$ref":"#/components/schemas/RpcStatus","description":"The current status of the RPC call.","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional info used in the rule engine to process the updates to the RPC state.","readOnly":true}}},"RpcStatus":{"type":"string","enum":["QUEUED","SENT","DELIVERED","SUCCESSFUL","TIMEOUT","EXPIRED","FAILED","DELETED"]},"PageDataRpc":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Rpc"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataRole":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Role"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataTbResourceInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/TbResourceInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"LwM2mInstance":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"LwM2M Instance id.","example":0},"resources":{"type":"array","description":"LwM2M Resource observe.","items":{"$ref":"#/components/schemas/LwM2mResourceObserve"}}}},"LwM2mObject":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"LwM2M Object id.","example":19},"keyId":{"type":"string","description":"LwM2M Object key id.","example":"19_1.0"},"name":{"type":"string","description":"LwM2M Object name.","example":"BinaryAppDataContainer"},"multiple":{"type":"boolean","description":"LwM2M Object multiple.","example":true},"mandatory":{"type":"boolean","description":"LwM2M Object mandatory.","example":false},"instances":{"type":"array","description":"LwM2M Object instances.","items":{"$ref":"#/components/schemas/LwM2mInstance"}}}},"LwM2mResourceObserve":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"LwM2M Resource Observe id.","example":0},"name":{"type":"string","description":"LwM2M Resource Observe name.","example":"Data"},"observe":{"type":"boolean","description":"LwM2M Resource Observe observe.","example":false},"attribute":{"type":"boolean","description":"LwM2M Resource Observe attribute.","example":false},"telemetry":{"type":"boolean","description":"LwM2M Resource Observe telemetry.","example":false},"keyName":{"type":"string","description":"LwM2M Resource Observe key name.","example":"data"}}},"ReportTemplateInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ReportTemplateId","description":"JSON object with the report template Id. Specify this field to update the report. Referencing non-existing report template Id will cause error. Omit this field to create new report template"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the report template creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the report template can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional: when omitted the Report Template is owned by the tenant. When the request is made by a Customer user, the value is forced to the user's own Customer Id."},"name":{"type":"string","description":"Report name","example":"Weekly Report"},"format":{"$ref":"#/components/schemas/TbReportFormat","description":"Report format","enum":["PDF, CSV"]},"type":{"$ref":"#/components/schemas/ReportTemplateType","description":"Report template type","enum":["REPORT, SUB_REPORT"]},"description":{"type":"string","description":"Description"},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["format","name","type"]},"PageDataReportTemplateInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/ReportTemplateInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataQueue":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Queue"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataQueueStats":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/QueueStats"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"QueueStats":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/QueueStatsId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"queueName":{"type":"string"},"serviceId":{"type":"string"}}},"TsData":{"type":"object","properties":{"ts":{"type":"integer","format":"int64","description":"Timestamp last updated timeseries, in milliseconds","example":1609459200000,"readOnly":true},"value":{"description":"Object representing value of timeseries key","example":20,"readOnly":true}}},"AttributeData":{"type":"object","properties":{"lastUpdateTs":{"type":"integer","format":"int64","description":"Timestamp last updated attribute, in milliseconds","example":1609459200000,"readOnly":true},"key":{"type":"string","description":"String representing attribute key","example":"active","readOnly":true},"value":{"description":"Object representing value of attribute key","example":false,"readOnly":true}}},"AllowedPermissionsInfo":{"type":"object","properties":{"operationsByResource":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Operation"},"uniqueItems":true},"description":"Static map (vocabulary) of allowed operations by resource type"},"allowedForGroupRoleOperations":{"type":"array","description":"Static set (vocabulary) of allowed operations for group roles","items":{"$ref":"#/components/schemas/Operation"},"uniqueItems":true},"allowedForGroupOwnerOnlyOperations":{"type":"array","description":"Static set (vocabulary) of allowed operations for group owner","items":{"$ref":"#/components/schemas/Operation"},"uniqueItems":true},"allowedForGroupOwnerOnlyGroupOperations":{"type":"array","description":"Static set (vocabulary) of allowed group operations for group owner","items":{"$ref":"#/components/schemas/Operation"},"uniqueItems":true},"allowedResources":{"type":"array","description":"Static set (vocabulary) of all possibly allowed resources. Static and depends only on the authority of the user","items":{"$ref":"#/components/schemas/Resource"},"uniqueItems":true},"userPermissions":{"$ref":"#/components/schemas/MergedUserPermissions","description":"JSON object with merged permission for all generic and group roles assigned to all user groups the user belongs to"},"userOwnerId":{"description":"Owner Id of the user (Tenant or Customer)","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]}}},"MergedGroupPermissionInfo":{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"operations":{"type":"array","items":{"$ref":"#/components/schemas/Operation"},"uniqueItems":true}}},"MergedGroupTypePermissionInfo":{"type":"object","properties":{"entityGroupIds":{"type":"array","description":"List of Entity Groups in case of group roles are assigned to the user (user group)","items":{"$ref":"#/components/schemas/EntityGroupId"}},"hasGenericRead":{"type":"boolean","description":"Indicates if generic permission assigned to the user group."}}},"MergedUserPermissions":{"type":"object","properties":{"genericPermissions":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Operation"},"uniqueItems":true},"description":"Map of permissions defined using generic roles ('Customer Administrator', etc)"},"groupPermissions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MergedGroupPermissionInfo"},"description":"Map of permissions defined using group roles ('Read' or 'Write' access to specific entity group, etc)"},"readGroupPermissions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MergedGroupTypePermissionInfo"},"description":"Map of read permissions per entity type. Used on the UI to enable/disable certain components."},"readEntityPermissions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MergedGroupTypePermissionInfo"},"description":"Map of read permissions per resource. Used on the UI to enable/disable certain components."},"readAttrPermissions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MergedGroupTypePermissionInfo"},"description":"Map of read entity attributes permissions per resource. Used on the UI to enable/disable certain tabs."},"readTsPermissions":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MergedGroupTypePermissionInfo"},"description":"Map of read entity time-series permissions per resource. Used on the UI to enable/disable certain tabs."}}},"Operation":{"type":"string","enum":["ALL","CREATE","READ","WRITE","DELETE","RPC_CALL","READ_CREDENTIALS","WRITE_CREDENTIALS","READ_ATTRIBUTES","WRITE_ATTRIBUTES","READ_TELEMETRY","WRITE_TELEMETRY","ADD_TO_GROUP","REMOVE_FROM_GROUP","CHANGE_OWNER","IMPERSONATE","CLAIM_DEVICES","SHARE_GROUP","ASSIGN_TO_TENANT","READ_CALCULATED_FIELD","WRITE_CALCULATED_FIELD","INVOKE"]},"Resource":{"type":"string","enum":["ALL","PROFILE","ADMIN_SETTINGS","ALARM","DEVICE","ASSET","CUSTOMER","DASHBOARD","ENTITY_VIEW","EDGE","TENANT","RULE_CHAIN","USER","WIDGETS_BUNDLE","WIDGET_TYPE","OAUTH2_CLIENT","DOMAIN","MOBILE_APP","MOBILE_APP_BUNDLE","OAUTH2_CONFIGURATION_TEMPLATE","TENANT_PROFILE","DEVICE_PROFILE","ASSET_PROFILE","CONVERTER","INTEGRATION","SCHEDULER_EVENT","BLOB_ENTITY","CUSTOMER_GROUP","DEVICE_GROUP","ASSET_GROUP","USER_GROUP","ENTITY_VIEW_GROUP","EDGE_GROUP","DASHBOARD_GROUP","AGENT_GROUP","ROLE","GROUP_PERMISSION","WHITE_LABELING","AUDIT_LOG","API_USAGE_STATE","BILLING","TB_RESOURCE","OTA_PACKAGE","QUEUE","QUEUE_STATS","VERSION_CONTROL","NOTIFICATION","MOBILE_APP_SETTINGS","CUSTOM_MENU","JOB","SECRET","REPORT_TEMPLATE","REPORT","AI_MODEL","AGENT","AGENT_APP_PROFILE","AGENT_PROFILE","AI","API_KEY"]},"ContactBasedObject":{"type":"object","properties":{"id":{},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"country":{"type":"string"},"state":{"type":"string"},"city":{"type":"string"},"address":{"type":"string"},"address2":{"type":"string"},"zip":{"type":"string"},"phone":{"type":"string"},"email":{"type":"string"},"name":{"type":"string"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode"}}},"PageDataContactBasedObject":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/ContactBasedObject"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataOtaPackageInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/OtaPackageInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"OtaPackage":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with the ota package Id. Specify existing ota package Id to update the ota package. Referencing non-existing ota package id will cause error. Omit this field to create new ota package."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the ota package creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the ota package can't be changed.","readOnly":true},"deviceProfileId":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with Device Profile Id. Device Profile Id of the ota package can't be changed."},"type":{"$ref":"#/components/schemas/OtaPackageType","description":"OTA Package type.","example":"FIRMWARE"},"title":{"type":"string","description":"OTA Package title.","example":"fw"},"version":{"type":"string","description":"OTA Package version.","example":1.0},"tag":{"type":"string","description":"OTA Package tag.","example":"fw_1.0","readOnly":true},"url":{"type":"string","description":"OTA Package url.","example":"http://thingsboard.org/fw/1"},"hasData":{"type":"boolean","description":"Indicates OTA Package 'has data'. Field is returned from DB ('true' if data exists or url is set).  If OTA Package 'has data' is 'false' we can not assign the OTA Package to the Device or Device Profile.","example":true,"readOnly":true},"fileName":{"type":"string","description":"OTA Package file name.","example":"fw_1.0","readOnly":true},"contentType":{"type":"string","description":"OTA Package content type.","example":"APPLICATION_OCTET_STREAM","readOnly":true},"checksumAlgorithm":{"$ref":"#/components/schemas/ChecksumAlgorithm","description":"OTA Package checksum algorithm.","example":"CRC32","readOnly":true},"checksum":{"type":"string","description":"OTA Package checksum.","example":"0xd87f7e0c","readOnly":true},"dataSize":{"type":"integer","format":"int64","description":"OTA Package data size.","example":8,"readOnly":true},"data":{"type":"string","format":"byte"},"name":{"type":"string","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"OTA Package description.","example":"Description for the OTA Package fw_1.0"}}},"OAuth2ClientInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/OAuth2ClientId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"title":{"type":"string","description":"Oauth2 client registration title (e.g. My google)"},"providerName":{"type":"string","description":"Oauth2 client provider name (e.g. Google)"},"platforms":{"type":"array","description":"List of platforms for which usage of the OAuth2 client is allowed (empty for all allowed)","items":{"$ref":"#/components/schemas/PlatformType"}},"name":{"type":"string","readOnly":true}}},"PageDataOAuth2ClientInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/OAuth2ClientInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"Notification":{"type":"object","properties":{"requestId":{"$ref":"#/components/schemas/NotificationRequestId"},"recipientId":{"$ref":"#/components/schemas/UserId"},"type":{"$ref":"#/components/schemas/NotificationType"},"deliveryMethod":{"$ref":"#/components/schemas/NotificationDeliveryMethod"},"subject":{"type":"string"},"text":{"type":"string"},"additionalConfig":{"$ref":"#/components/schemas/JsonNode"},"info":{"oneOf":[{"$ref":"#/components/schemas/AddonAccessErrorNotificationInfo"},{"$ref":"#/components/schemas/AddonAccessRequestNotificationInfo"},{"$ref":"#/components/schemas/AlarmAssignmentNotificationInfo"},{"$ref":"#/components/schemas/AlarmCommentNotificationInfo"},{"$ref":"#/components/schemas/AlarmNotificationInfo"},{"$ref":"#/components/schemas/ApiUsageLimitNotificationInfo"},{"$ref":"#/components/schemas/DeviceActivityNotificationInfo"},{"$ref":"#/components/schemas/EdgeCommunicationFailureNotificationInfo"},{"$ref":"#/components/schemas/EdgeConnectionNotificationInfo"},{"$ref":"#/components/schemas/EntitiesLimitIncreaseRequestNotificationInfo"},{"$ref":"#/components/schemas/EntitiesLimitNotificationInfo"},{"$ref":"#/components/schemas/EntityActionNotificationInfo"},{"$ref":"#/components/schemas/GeneralNotificationInfo"},{"$ref":"#/components/schemas/IntegrationLifecycleEventNotificationInfo"},{"$ref":"#/components/schemas/NewPlatformVersionNotificationInfo"},{"$ref":"#/components/schemas/PlanUpgradeRequestNotificationInfo"},{"$ref":"#/components/schemas/RateLimitsNotificationInfo"},{"$ref":"#/components/schemas/ReportGeneratedNotificationInfo"},{"$ref":"#/components/schemas/ResourcesShortageNotificationInfo"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationInfo"},{"$ref":"#/components/schemas/RuleEngineOriginatedNotificationInfo"},{"$ref":"#/components/schemas/TaskProcessingFailureNotificationInfo"},{"$ref":"#/components/schemas/UserActivatedNotificationInfo"},{"$ref":"#/components/schemas/UserRegisteredNotificationInfo"}]},"status":{"$ref":"#/components/schemas/NotificationStatus"},"id":{"$ref":"#/components/schemas/NotificationId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true}}},"NotificationDeliveryMethod":{"type":"string","enum":["WEB","EMAIL","SMS","SLACK","MICROSOFT_TEAMS","MOBILE_APP"]},"NotificationStatus":{"type":"string","enum":["SENT","READ"]},"PageDataNotification":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Notification"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataNotificationTemplate":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/NotificationTemplate"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataNotificationTarget":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/NotificationTarget"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"NotificationRuleInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/NotificationRuleId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"name":{"type":"string","minLength":1},"enabled":{"type":"boolean"},"templateId":{"$ref":"#/components/schemas/NotificationTemplateId"},"triggerType":{"$ref":"#/components/schemas/NotificationRuleTriggerType"},"triggerConfig":{"oneOf":[{"$ref":"#/components/schemas/AlarmAssignmentNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/AlarmCommentNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/AlarmNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/ApiUsageLimitNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/DeviceActivityNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EdgeCommunicationFailureNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EdgeConnectionNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EntitiesLimitNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/EntityActionNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/IntegrationLifecycleEventNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/NewPlatformVersionNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/RateLimitsNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/ResourcesShortageNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationRuleTriggerConfig"},{"$ref":"#/components/schemas/TaskProcessingFailureNotificationRuleTriggerConfig"}]},"recipientsConfig":{"oneOf":[{"$ref":"#/components/schemas/AlarmAssignmentRecipientsConfig"},{"$ref":"#/components/schemas/AlarmCommentRecipientsConfig"},{"$ref":"#/components/schemas/ApiUsageLimitRecipientsConfig"},{"$ref":"#/components/schemas/DeviceActivityRecipientsConfig"},{"$ref":"#/components/schemas/EdgeCommunicationFailureRecipientsConfig"},{"$ref":"#/components/schemas/EdgeConnectionRecipientsConfig"},{"$ref":"#/components/schemas/EntitiesLimitRecipientsConfig"},{"$ref":"#/components/schemas/EntityActionRecipientsConfig"},{"$ref":"#/components/schemas/EscalatedNotificationRuleRecipientsConfig"},{"$ref":"#/components/schemas/IntegrationLifecycleEventRecipientsConfig"},{"$ref":"#/components/schemas/NewPlatformVersionRecipientsConfig"},{"$ref":"#/components/schemas/RateLimitsRecipientsConfig"},{"$ref":"#/components/schemas/ResourceShortageRecipientsConfig"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventRecipientsConfig"},{"$ref":"#/components/schemas/TaskProcessingFailureRecipientsConfig"}]},"additionalConfig":{"$ref":"#/components/schemas/NotificationRuleConfig"},"templateName":{"type":"string"},"deliveryMethods":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDeliveryMethod"}}},"required":["name","recipientsConfig","templateId","triggerConfig","triggerType"]},"PageDataNotificationRuleInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/NotificationRuleInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"NotificationRequestInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/NotificationRequestId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"targets":{"type":"array","items":{"type":"string","format":"uuid"},"minItems":1},"templateId":{"$ref":"#/components/schemas/NotificationTemplateId"},"template":{"$ref":"#/components/schemas/NotificationTemplate"},"info":{"oneOf":[{"$ref":"#/components/schemas/AddonAccessErrorNotificationInfo"},{"$ref":"#/components/schemas/AddonAccessRequestNotificationInfo"},{"$ref":"#/components/schemas/AlarmAssignmentNotificationInfo"},{"$ref":"#/components/schemas/AlarmCommentNotificationInfo"},{"$ref":"#/components/schemas/AlarmNotificationInfo"},{"$ref":"#/components/schemas/ApiUsageLimitNotificationInfo"},{"$ref":"#/components/schemas/DeviceActivityNotificationInfo"},{"$ref":"#/components/schemas/EdgeCommunicationFailureNotificationInfo"},{"$ref":"#/components/schemas/EdgeConnectionNotificationInfo"},{"$ref":"#/components/schemas/EntitiesLimitIncreaseRequestNotificationInfo"},{"$ref":"#/components/schemas/EntitiesLimitNotificationInfo"},{"$ref":"#/components/schemas/EntityActionNotificationInfo"},{"$ref":"#/components/schemas/GeneralNotificationInfo"},{"$ref":"#/components/schemas/IntegrationLifecycleEventNotificationInfo"},{"$ref":"#/components/schemas/NewPlatformVersionNotificationInfo"},{"$ref":"#/components/schemas/PlanUpgradeRequestNotificationInfo"},{"$ref":"#/components/schemas/RateLimitsNotificationInfo"},{"$ref":"#/components/schemas/ReportGeneratedNotificationInfo"},{"$ref":"#/components/schemas/ResourcesShortageNotificationInfo"},{"$ref":"#/components/schemas/RuleEngineComponentLifecycleEventNotificationInfo"},{"$ref":"#/components/schemas/RuleEngineOriginatedNotificationInfo"},{"$ref":"#/components/schemas/TaskProcessingFailureNotificationInfo"},{"$ref":"#/components/schemas/UserActivatedNotificationInfo"},{"$ref":"#/components/schemas/UserRegisteredNotificationInfo"}]},"additionalConfig":{"$ref":"#/components/schemas/NotificationRequestConfig"},"originatorEntityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"ruleId":{"$ref":"#/components/schemas/NotificationRuleId"},"status":{"$ref":"#/components/schemas/NotificationRequestStatus"},"stats":{"$ref":"#/components/schemas/NotificationRequestStats"},"templateName":{"type":"string"},"deliveryMethods":{"type":"array","items":{"$ref":"#/components/schemas/NotificationDeliveryMethod"}}},"required":["targets"]},"PageDataNotificationRequestInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/NotificationRequestInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"CaptchaClientParams":{"type":"object","properties":{"captchaSiteKey":{"type":"string"},"captchaVersion":{"type":"string"},"captchaAction":{"type":"string"}}},"SignUpSelfRegistrationParams":{"type":"object","properties":{"title":{"type":"string"},"captcha":{"oneOf":[{"$ref":"#/components/schemas/EnterpriseCaptchaParams"},{"$ref":"#/components/schemas/V2CaptchaParams"},{"$ref":"#/components/schemas/V3CaptchaParams"}]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/SignUpField"}},"showPrivacyPolicy":{"type":"boolean"},"showTermsOfUse":{"type":"boolean"}}},"LoginMobileInfo":{"type":"object","properties":{"oAuth2ClientLoginInfos":{"type":"array","items":{"$ref":"#/components/schemas/OAuth2ClientLoginInfo"}},"selfRegistrationParams":{"$ref":"#/components/schemas/SignUpSelfRegistrationParams"},"storeInfo":{"$ref":"#/components/schemas/StoreInfo"},"versionInfo":{"$ref":"#/components/schemas/MobileAppVersionInfo"}}},"UserMobileInfo":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/User"},"storeInfo":{"$ref":"#/components/schemas/StoreInfo"},"versionInfo":{"$ref":"#/components/schemas/MobileAppVersionInfo"},"homeDashboardInfo":{"$ref":"#/components/schemas/HomeDashboardInfo"},"pages":{"$ref":"#/components/schemas/JsonNode"}}},"MobileAppBundleInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/MobileAppBundleId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"title":{"type":"string","description":"Application bundle title. Cannot be empty","minLength":1},"description":{"type":"string","description":"Application bundle description."},"androidAppId":{"$ref":"#/components/schemas/MobileAppId","description":"Android application id"},"iosAppId":{"$ref":"#/components/schemas/MobileAppId","description":"IOS application id"},"layoutConfig":{"$ref":"#/components/schemas/MobileLayoutConfig","description":"Application layout configuration"},"selfRegistrationParams":{"$ref":"#/components/schemas/MobileSelfRegistrationParams","description":"Application self registration configuration"},"oauth2Enabled":{"type":"boolean","description":"Whether OAuth2 settings are enabled or not"},"androidPkgName":{"type":"string","description":"Android package name"},"iosPkgName":{"type":"string","description":"IOS package name"},"oauth2ClientInfos":{"type":"array","description":"List of available oauth2 clients","items":{"$ref":"#/components/schemas/OAuth2ClientInfo"}},"qrCodeEnabled":{"type":"boolean","description":"Indicates if qr code is available for bundle"},"name":{"type":"string","description":"Mobile app bundle title","example":"My main application","readOnly":true}},"required":["title"]},"PageDataMobileAppBundleInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/MobileAppBundleInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataMobileApp":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/MobileApp"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"LwM2MServerSecurityConfigDefault":{"type":"object","properties":{"shortServerId":{"type":"integer","format":"int32","description":"Server short Id. Used as link to associate server Object Instance. This identifier uniquely identifies each LwM2M Server configured for the LwM2M Client. This Resource MUST be set when the Bootstrap-Server Resource has a value of 'false' and MUST be null when Bootstrap-Server is 'true'. The values 0 and 65535 MUST NOT be used for identifying the LwM2M Server.","example":1,"readOnly":true},"bootstrapServerIs":{"type":"boolean","description":"Is Bootstrap Server or Lwm2m Server. The LwM2M Client MAY be configured to use one or more LwM2M Server Account(s). The LwM2M Client MUST have at most one LwM2M Bootstrap-Server Account. (*) The LwM2M client MUST have at least one LwM2M server account after completing the boot sequence specified.","example":true,"readOnly":true},"host":{"type":"string","description":"Host for 'No Security' mode","example":"0.0.0.0","readOnly":true},"port":{"type":"integer","format":"int32","description":"Port for  Lwm2m Server: 'No Security' mode: Lwm2m Server or Bootstrap Server","example":"'5685' or '5687'","readOnly":true},"clientHoldOffTime":{"type":"integer","format":"int32","description":"Client Hold Off Time. The number of seconds to wait before initiating a Client Initiated Bootstrap once the LwM2M Client has determined it should initiate this bootstrap mode. (This information is relevant for use with a Bootstrap-Server only.)","example":1,"readOnly":true},"serverPublicKey":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): RPK or X509. Format: base64 encoded","example":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEAZ0pSaGKHk/GrDaUDnQZpeEdGwX7m3Ws+U/kiVat\n+44sgk3c8g0LotfMpLlZJPhPwJ6ipXV+O1r7IZUjBs3LNA==","readOnly":true},"serverCertificate":{"type":"string","description":"Server Public Key for 'Security' mode (DTLS): X509. Format: base64 encoded","example":"MMIICODCCAd6gAwIBAgIUI88U1zowOdrxDK/dOV+36gJxI2MwCgYIKoZIzj0EAwIwejELMAkGA1UEBhMCVUs\nxEjAQBgNVBAgTCUt5aXYgY2l0eTENMAsGA1UEBxMES3lpdjEUMBIGA1UEChMLVGhpbmdzYm9hcmQxFzAVBgNVBAsMDkRFVkVMT1BFUl9URVNUMRkwFwYDVQQDDBBpbnRlcm1lZGlhdGVfY2EwMB4XDTIyMDEwOTEzMDMwMFoXDTI3MDEwODEzMDMwMFowFDESMBAGA1UEAxM\nJbG9jYWxob3N0MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEUO3vBo/JTv0eooY7XHiKAIVDoWKFqtrU7C6q8AIKqpLcqhCdW+haFeBOH3PjY6EwaWkY04Bir4oanU0s7tz2uKOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/\nBAIwADAdBgNVHQ4EFgQUEjc3Q4a0TxzP/3x3EV4fHxYUg0YwHwYDVR0jBBgwFoAUuSquGycMU6Q0SYNcbtSkSD3TfH0wLwYDVR0RBCgwJoIVbG9jYWxob3N0LmxvY2FsZG9tYWlugglsb2NhbGhvc3SCAiAtMAoGCCqGSM49BAMCA0gAMEUCIQD7dbZObyUaoDiNbX+9fUNp\nAWrD7N7XuJUwZ9FcN75R3gIgb2RNjDkHoyUyF1YajwkBk+7XmIXNClmizNJigj908mw=","readOnly":true},"bootstrapServerAccountTimeout":{"type":"integer","format":"int32","description":"Bootstrap Server Account Timeout (If the value is set to 0, or if this resource is not instantiated, the Bootstrap-Server Account lifetime is infinite.)","example":0,"readOnly":true},"lifetime":{"type":"integer","format":"int32","description":"Specify the lifetime of the registration in seconds.","example":300,"readOnly":true},"defaultMinPeriod":{"type":"integer","format":"int32","description":"The default value the LwM2M Client should use for the Minimum Period of an Observation in the absence of this parameter being included in an Observation. If this Resource doesn’t exist, the default value is 0.","example":1,"readOnly":true},"notifIfDisabled":{"type":"boolean","description":"If true, the LwM2M Client stores “Notify” operations to the LwM2M Server while the LwM2M Server account is disabled or the LwM2M Client is offline. After the LwM2M Server account is enabled or the LwM2M Client is online, the LwM2M Client reports the stored “Notify” operations to the Server. If false, the LwM2M Client discards all the “Notify” operations or temporarily disables the Observe function while the LwM2M Server is disabled or the LwM2M Client is offline. The default value is true.","example":true,"readOnly":true},"binding":{"type":"string","description":"This Resource defines the transport binding configured for the LwM2M Client. If the LwM2M Client supports the binding specified in this Resource, the LwM2M Client MUST use that transport for the Current Binding Mode.","example":"U","readOnly":true},"securityHost":{"type":"string","description":"Host for 'Security' mode (DTLS)","example":"0.0.0.0","readOnly":true},"securityPort":{"type":"integer","format":"int32","description":"Port for 'Security' mode (DTLS): Lwm2m Server or Bootstrap Server","example":5686,"readOnly":true}}},"PageDataJob":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Job"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataIntegration":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Integration"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"ConvertersInfo":{"type":"object","properties":{"library":{"type":"boolean"},"existing":{"type":"boolean"},"keys":{"type":"array","items":{"type":"string"},"uniqueItems":true}}},"IntegrationConvertersInfo":{"type":"object","properties":{"uplink":{"$ref":"#/components/schemas/ConvertersInfo"},"downlink":{"$ref":"#/components/schemas/ConvertersInfo"}}},"ArrayNode":{},"IntegrationInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/IntegrationId","description":"JSON object with the Integration Id. Specify this field to update the Integration. Referencing non-existing Integration Id will cause error. Omit this field to create new Integration."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the integration creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"name":{"type":"string","description":"Integration Name","example":"Http Integration"},"type":{"$ref":"#/components/schemas/IntegrationType","description":"The type of the integration"},"debugMode":{"type":"boolean","deprecated":true,"description":"Enable/disable debug. ","example":false},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"enabled":{"type":"boolean","description":"Boolean flag to enable/disable the integration"},"allowCreateDevicesOrAssets":{"type":"boolean","description":"Boolean flag to allow/disallow the integration to create devices or assets that send message and do not exist in the system yet"},"version":{"type":"integer","format":"int64"},"status":{"type":"object"},"stats":{"$ref":"#/components/schemas/ArrayNode"},"edgeTemplate":{"type":"boolean","description":"Boolean flag that specifies that is regular or edge template integration"},"remote":{"type":"boolean","description":"Boolean flag to enable/disable the integration to be executed remotely. Remote integration is launched in a separate microservice. Local integration is executed by the platform core"}},"required":["name","type"]},"PageDataIntegrationInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/IntegrationInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"EntityViewInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EntityViewId","description":"JSON object with the Entity View Id. Specify this field to update the Entity View. Referencing non-existing Entity View Id will cause error. Omit this field to create new Entity View."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the Entity View creation, in milliseconds","example":1609459200000,"readOnly":true},"entityId":{"description":"JSON object with the referenced Entity Id (Device or Asset).","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Entity View."},"name":{"type":"string","description":"Entity View name","example":"A4B72CCDFF33"},"type":{"type":"string","description":"Device Profile Name","example":"Temperature Sensor"},"keys":{"$ref":"#/components/schemas/TelemetryEntityView","description":"Set of telemetry and attribute keys to expose via Entity View."},"startTimeMs":{"type":"integer","format":"int64","description":"Represents the start time of the interval that is used to limit access to target device telemetry. Customer will not be able to see entity telemetry that is outside the specified interval;"},"endTimeMs":{"type":"integer","format":"int64","description":"Represents the end time of the interval that is used to limit access to target device telemetry. Customer will not be able to see entity telemetry that is outside the specified interval;"},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the entity view. May include: 'description' (string).","example":{"description":"Temperature readings view"}}},"required":["entityId","name","type"]},"PageDataEntityViewInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntityViewInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"EntitySubtype":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"entityType":{"$ref":"#/components/schemas/EntityType"},"type":{"type":"string"}}},"PageDataEntityGroupInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntityGroupInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"ShortEntityView":{"type":"object","properties":{"id":{"description":"Entity Id object","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"name":{"type":"string","description":"Name of the entity","readOnly":true}},"required":["id"]},"PageDataShortEntityView":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/ShortEntityView"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"EntityVersion":{"type":"object","properties":{"timestamp":{"type":"integer","format":"int64"},"id":{"type":"string"},"name":{"type":"string"},"author":{"type":"string"}}},"PageDataEntityVersion":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntityVersion"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"VersionCreationResult":{"type":"object","properties":{"version":{"$ref":"#/components/schemas/EntityVersion"},"added":{"type":"integer","format":"int32"},"modified":{"type":"integer","format":"int32"},"removed":{"type":"integer","format":"int32"},"error":{"type":"string"},"done":{"type":"boolean"}}},"EntityDataInfo":{"type":"object","properties":{"hasRelations":{"type":"boolean"},"hasAttributes":{"type":"boolean"},"hasCredentials":{"type":"boolean"},"hasCalculatedFields":{"type":"boolean"},"hasPermissions":{"type":"boolean"},"hasGroupEntities":{"type":"boolean"}}},"VersionedEntityInfo":{"type":"object","properties":{"externalId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"path":{"type":"string"}}},"EntityLoadError":{"type":"object","properties":{"type":{"type":"string"},"source":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"target":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"message":{"type":"string"}}},"EntityTypeLoadResult":{"type":"object","properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"created":{"type":"integer","format":"int32"},"updated":{"type":"integer","format":"int32"},"deleted":{"type":"integer","format":"int32"},"groupsCreated":{"type":"integer","format":"int32"},"groupsUpdated":{"type":"integer","format":"int32"},"groupsDeleted":{"type":"integer","format":"int32"}}},"VersionLoadResult":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/EntityTypeLoadResult"}},"error":{"$ref":"#/components/schemas/EntityLoadError"},"done":{"type":"boolean"}}},"EntityDataDiff":{"type":"object","properties":{"currentVersion":{"oneOf":[{"$ref":"#/components/schemas/AiModelExportData"},{"$ref":"#/components/schemas/AssetExportData"},{"$ref":"#/components/schemas/AssetProfileExportData"},{"$ref":"#/components/schemas/ConverterExportData"},{"$ref":"#/components/schemas/CustomerExportData"},{"$ref":"#/components/schemas/DashboardExportData"},{"$ref":"#/components/schemas/DeviceExportData"},{"$ref":"#/components/schemas/DeviceProfileExportData"},{"$ref":"#/components/schemas/EntityGroupExportData"},{"$ref":"#/components/schemas/EntityViewExportData"},{"$ref":"#/components/schemas/IntegrationExportData"},{"$ref":"#/components/schemas/NotificationRuleExportData"},{"$ref":"#/components/schemas/NotificationTargetExportData"},{"$ref":"#/components/schemas/NotificationTemplateExportData"},{"$ref":"#/components/schemas/OtaPackageExportData"},{"$ref":"#/components/schemas/ReportTemplateExportData"},{"$ref":"#/components/schemas/RoleExportData"},{"$ref":"#/components/schemas/RuleChainExportData"},{"$ref":"#/components/schemas/SchedulerEventExportData"},{"$ref":"#/components/schemas/TbResourceExportData"},{"$ref":"#/components/schemas/UserExportData"},{"$ref":"#/components/schemas/WidgetTypeExportData"},{"$ref":"#/components/schemas/WidgetsBundleExportData"}]},"otherVersion":{"oneOf":[{"$ref":"#/components/schemas/AiModelExportData"},{"$ref":"#/components/schemas/AssetExportData"},{"$ref":"#/components/schemas/AssetProfileExportData"},{"$ref":"#/components/schemas/ConverterExportData"},{"$ref":"#/components/schemas/CustomerExportData"},{"$ref":"#/components/schemas/DashboardExportData"},{"$ref":"#/components/schemas/DeviceExportData"},{"$ref":"#/components/schemas/DeviceProfileExportData"},{"$ref":"#/components/schemas/EntityGroupExportData"},{"$ref":"#/components/schemas/EntityViewExportData"},{"$ref":"#/components/schemas/IntegrationExportData"},{"$ref":"#/components/schemas/NotificationRuleExportData"},{"$ref":"#/components/schemas/NotificationTargetExportData"},{"$ref":"#/components/schemas/NotificationTemplateExportData"},{"$ref":"#/components/schemas/OtaPackageExportData"},{"$ref":"#/components/schemas/ReportTemplateExportData"},{"$ref":"#/components/schemas/RoleExportData"},{"$ref":"#/components/schemas/RuleChainExportData"},{"$ref":"#/components/schemas/SchedulerEventExportData"},{"$ref":"#/components/schemas/TbResourceExportData"},{"$ref":"#/components/schemas/UserExportData"},{"$ref":"#/components/schemas/WidgetTypeExportData"},{"$ref":"#/components/schemas/WidgetsBundleExportData"}]}}},"EntityExportData":{"type":"object","description":"Base export container for ThingsBoard entities","discriminator":{"propertyName":"entityType","mapping":{"DEVICE":"#/components/schemas/DeviceExportData","RULE_CHAIN":"#/components/schemas/RuleChainExportData","WIDGET_TYPE":"#/components/schemas/WidgetTypeExportData","WIDGETS_BUNDLE":"#/components/schemas/WidgetsBundleExportData","OTA_PACKAGE":"#/components/schemas/OtaPackageExportData","CUSTOMER":"#/components/schemas/CustomerExportData","TB_RESOURCE":"#/components/schemas/TbResourceExportData","DASHBOARD":"#/components/schemas/DashboardExportData","ASSET_PROFILE":"#/components/schemas/AssetProfileExportData","ASSET":"#/components/schemas/AssetExportData","DEVICE_PROFILE":"#/components/schemas/DeviceProfileExportData","ENTITY_VIEW":"#/components/schemas/EntityViewExportData","NOTIFICATION_TEMPLATE":"#/components/schemas/NotificationTemplateExportData","NOTIFICATION_TARGET":"#/components/schemas/NotificationTargetExportData","NOTIFICATION_RULE":"#/components/schemas/NotificationRuleExportData","AI_MODEL":"#/components/schemas/AiModelExportData","ENTITY_GROUP":"#/components/schemas/EntityGroupExportData","SCHEDULER_EVENT":"#/components/schemas/SchedulerEventExportData","CONVERTER":"#/components/schemas/ConverterExportData","INTEGRATION":"#/components/schemas/IntegrationExportData","ROLE":"#/components/schemas/RoleExportData","REPORT_TEMPLATE":"#/components/schemas/ReportTemplateExportData","USER":"#/components/schemas/UserExportData"}},"properties":{"entityType":{"$ref":"#/components/schemas/EntityType"},"entity":{"$ref":"#/components/schemas/ExportableEntity"},"relations":{"type":"array","items":{"$ref":"#/components/schemas/EntityRelation"}},"attributes":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/AttributeExportData"}},"description":"Map of attributes where key is the scope of attributes and value is the list of attributes for that scope"},"calculatedFields":{"type":"array","items":{"$ref":"#/components/schemas/CalculatedField"}}},"required":["entityType"]},"BranchInfo":{"type":"object","properties":{"name":{"type":"string"},"default":{"type":"boolean"}}},"EdqsApiMode":{"type":"string","enum":["ENABLED","AUTO_ENABLED","DISABLED","AUTO_DISABLED"]},"EdqsState":{"type":"object","properties":{"edqsReady":{"type":"boolean"},"syncStatus":{"$ref":"#/components/schemas/EdqsSyncStatus"},"apiMode":{"$ref":"#/components/schemas/EdqsApiMode"}}},"EdqsSyncStatus":{"type":"string","enum":["REQUESTED","STARTED","FINISHED","FAILED"]},"EdgeInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EdgeId","description":"JSON object with the Edge Id. Specify this field to update the Edge. Referencing non-existing Edge Id will cause error. Omit this field to create new Edge."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the edge creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Always set to the tenant of the current user on save; cannot be changed after creation.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id."},"rootRuleChainId":{"$ref":"#/components/schemas/RuleChainId","description":"JSON object with Root Rule Chain Id. Use 'setEdgeRootRuleChain' to change the Root Rule Chain Id.","readOnly":true},"name":{"type":"string","description":"Unique Edge Name in scope of Tenant","example":"Silo_A_Edge"},"type":{"type":"string","description":"Edge type","example":"Silos"},"label":{"type":"string","description":"Label that may be used in widgets","example":"Silo Edge on far field"},"routingKey":{"type":"string","description":"Edge routing key ('username') to authorize on cloud"},"secret":{"type":"string","description":"Edge secret ('password') to authorize on cloud"},"edgeLicenseKey":{"type":"string","description":"Edge license key obtained from license portal","example":"AgcnI24Z06XC&m6Sxsdgf"},"cloudEndpoint":{"type":"string","description":"Edge uses this cloud URL to activate and periodically check it's license","example":"https://thingsboard.cloud"},"edgeLicenseType":{"$ref":"#/components/schemas/EdgeLicenseType"},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"ownerId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the edge. May include: 'description' (string).","example":{"description":"Edge at location A"}}},"required":["cloudEndpoint","name","routingKey","secret","type"]},"PageDataEdgeInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EdgeInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataSchedulerEventInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/SchedulerEventInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"EdgeEvent":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/EdgeEventId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"seqId":{"type":"integer","format":"int64"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"edgeId":{"$ref":"#/components/schemas/EdgeId"},"action":{"$ref":"#/components/schemas/EdgeEventActionType"},"entityId":{"type":"string","format":"uuid"},"uid":{"type":"string"},"type":{"$ref":"#/components/schemas/EdgeEventType"},"entityGroupId":{"type":"string","format":"uuid"},"body":{"$ref":"#/components/schemas/JsonNode"}}},"EdgeEventActionType":{"type":"string","enum":["ADDED","UPDATED","DELETED","POST_ATTRIBUTES","ATTRIBUTES_UPDATED","ATTRIBUTES_DELETED","TIMESERIES_UPDATED","CREDENTIALS_UPDATED","RELATION_ADD_OR_UPDATE","RELATION_DELETED","RPC_CALL","ALARM_ACK","ALARM_CLEAR","ALARM_DELETE","ALARM_ASSIGNED","ALARM_UNASSIGNED","ADDED_COMMENT","UPDATED_COMMENT","DELETED_COMMENT","ASSIGNED_TO_EDGE","UNASSIGNED_FROM_EDGE","CREDENTIALS_REQUEST","ADDED_TO_ENTITY_GROUP","REMOVED_FROM_ENTITY_GROUP","CHANGE_OWNER","ENTITY_MERGE_REQUEST"]},"EdgeEventId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"EdgeEventType":{"type":"string","enum":["DASHBOARD","ASSET","DEVICE","DEVICE_PROFILE","ASSET_PROFILE","ENTITY_VIEW","ALARM","ALARM_COMMENT","RULE_CHAIN","RULE_CHAIN_METADATA","EDGE","USER","CUSTOMER","RELATION","TENANT","TENANT_PROFILE","WIDGETS_BUNDLE","WIDGET_TYPE","ADMIN_SETTINGS","OTA_PACKAGE","QUEUE","ENTITY_GROUP","SCHEDULER_EVENT","WHITE_LABELING","LOGIN_WHITE_LABELING","MAIL_TEMPLATES","CUSTOM_TRANSLATION","CUSTOM_MENU","ROLE","GROUP_PERMISSION","CONVERTER","INTEGRATION","NOTIFICATION_RULE","NOTIFICATION_TARGET","NOTIFICATION_TEMPLATE","TB_RESOURCE","DEVICE_GROUP_OTA","OAUTH2_CLIENT","DOMAIN","CALCULATED_FIELD","ENCRYPTION_KEY","SECRET","REPORT_TEMPLATE","AI_MODEL","API_KEY"]},"PageDataEdgeEvent":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EdgeEvent"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"EdgeInstructions":{"type":"object","properties":{"instructions":{"type":"string","description":"Markdown with install/upgrade instructions"}}},"DomainInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DomainId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id"},"name":{"type":"string","description":"Domain name. Cannot be empty","minLength":1},"oauth2Enabled":{"type":"boolean","description":"Whether OAuth2 settings are enabled or not"},"propagateToEdge":{"type":"boolean","description":"Whether OAuth2 settings are enabled on Edge or not"},"oauth2ClientInfos":{"type":"array","description":"List of available oauth2 clients","items":{"$ref":"#/components/schemas/OAuth2ClientInfo"}},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["name"]},"PageDataDomainInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/DomainInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AcmeCertificateId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"CertificateInfo":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/CertificateStatus"},"domainName":{"type":"string"},"serialNumber":{"type":"string"},"notBefore":{"type":"integer","format":"int64"},"notAfter":{"type":"integer","format":"int64"},"requestedAt":{"type":"integer","format":"int64"},"issuedAt":{"type":"integer","format":"int64"},"acmeCertificateId":{"$ref":"#/components/schemas/AcmeCertificateId"}}},"CertificateStatus":{"type":"string","enum":["PENDING_VALIDATION","ISSUED","INACTIVE","EXPIRED","VALIDATION_TIMED_OUT","REVOKED","FAILED","UNKNOWN"]},"CloudDomainId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"CloudDomainInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CloudDomainId"},"createdTime":{"type":"integer","format":"int64","description":"Entity creation timestamp in milliseconds since Unix epoch","example":1746028547220,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"domainName":{"type":"string"},"acmeCertificateId":{"$ref":"#/components/schemas/AcmeCertificateId"},"certificate":{"$ref":"#/components/schemas/CertificateInfo"}}},"PageDataDeviceProfile":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/DeviceProfile"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"DeviceProfileInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with the Device Profile Id."},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"Tenant id."},"name":{"type":"string","description":"Entity Name"},"image":{"type":"string","description":"Either URL or Base64 data of the icon. Used in the mobile application to visualize set of device profiles in the grid view. "},"defaultDashboardId":{"$ref":"#/components/schemas/DashboardId","description":"Reference to the dashboard. Used in the mobile application to open the default dashboard when user navigates to device details."},"type":{"$ref":"#/components/schemas/DeviceProfileType","description":"Type of the profile. Always 'DEFAULT' for now. Reserved for future use."},"transportType":{"$ref":"#/components/schemas/DeviceTransportType","description":"Type of the transport used to connect the device. Default transport supports HTTP, CoAP and MQTT."}}},"PageDataDeviceProfileInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/DeviceProfileInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"DeviceInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DeviceId","description":"JSON object with the Device Id. Specify this field to update the Device. Referencing non-existing Device Id will cause error. Omit this field to create new Device."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the device creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Use 'assignDeviceToTenant' to change the Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Device."},"name":{"type":"string","description":"Unique Device Name in scope of Tenant","example":"A4B72CCDFF33"},"type":{"type":"string","description":"Device Profile Name","example":"Temperature Sensor"},"label":{"type":"string","description":"Label that may be used in widgets","example":"Room 234 Sensor"},"deviceProfileId":{"$ref":"#/components/schemas/DeviceProfileId","description":"JSON object with Device Profile Id. If not provided, the type will be used to determine the profile. If neither deviceProfileId nor type is specified, the default device profile will be used."},"firmwareId":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with Ota Package Id."},"softwareId":{"$ref":"#/components/schemas/OtaPackageId","description":"JSON object with Ota Package Id."},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"active":{"type":"boolean","description":"Device active flag.","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device).","example":{"gateway":false,"description":"Temperature sensor","lastConnectedGateway":"784f394c-42b6-435a-983c-b7beff2784f9"}},"deviceData":{"$ref":"#/components/schemas/DeviceData","description":"JSON object with content specific to type of transport in the device profile."}}},"PageDataDeviceInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/DeviceInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"HomeDashboard":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/DashboardId","description":"JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the dashboard creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id. Tenant Id of the dashboard can't be changed.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. "},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"title":{"type":"string","description":"Title of the dashboard."},"name":{"type":"string","description":"Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.","readOnly":true},"image":{"type":"string","description":"Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.","readOnly":true},"assignedCustomers":{"type":"array","description":"List of assigned customers with their info.","items":{"$ref":"#/components/schemas/ShortCustomerInfo"},"readOnly":true,"uniqueItems":true},"mobileHide":{"type":"boolean","description":"Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.","readOnly":true},"mobileOrder":{"type":"integer","format":"int32","description":"Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications","readOnly":true},"configuration":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with main configuration of the dashboard: layouts, widgets, aliases, etc. The JSON structure of the dashboard configuration is quite complex. The easiest way to learn it is to export existing dashboard to JSON."},"resources":{"type":"array","items":{"$ref":"#/components/schemas/ResourceExportData"}},"version":{"type":"integer","format":"int64"},"hideDashboardToolbar":{"type":"boolean","description":"Hide dashboard toolbar flag. Useful for rendering dashboards on mobile."}}},"CustomerInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with the customer Id. Specify this field to update the customer. Referencing non-existing customer Id will cause error. Omit this field to create new customer."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the customer creation, in milliseconds","example":1609459200000,"readOnly":true},"country":{"type":"string","description":"Country","example":"US"},"state":{"type":"string","description":"State","example":"NY"},"city":{"type":"string","description":"City","example":"New York"},"address":{"type":"string","description":"Address Line 1","example":42},"address2":{"type":"string","description":"Address Line 2"},"zip":{"type":"string","description":"Zip code","example":10004},"phone":{"type":"string","description":"Phone number","example":"+1(415)777-7777"},"email":{"type":"string","description":"Email","example":"example@company.com"},"title":{"type":"string","description":"Title of the customer","example":"Company A"},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id"},"parentCustomerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with parent Customer Id"},"version":{"type":"integer","format":"int64"},"customMenuId":{"$ref":"#/components/schemas/CustomMenuId"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"name":{"type":"string","description":"Name of the customer. Read-only, duplicated from title for backward compatibility","example":"Company A","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with parent Customer Id","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer).","example":{"description":"Regional customer","homeDashboardId":"784f394c-42b6-435a-983c-b7beff2784f9","homeDashboardHideToolbar":false,"isPublic":false}}},"required":["title"]},"PageDataCustomerInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/CustomerInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AssetInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AssetId","description":"JSON object with the asset Id. Specify this field to update the asset. Referencing non-existing asset Id will cause error. Omit this field to create new asset."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the asset creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id. Optional on create: when omitted, defaults to the owner of the target Entity Group or to the current Customer user. Cannot be changed on update via this endpoint; use the Owner API (changeOwnerToCustomer) to re-assign an existing Asset."},"name":{"type":"string","description":"Unique Asset Name in scope of Tenant","example":"Empire State Building"},"type":{"type":"string","description":"Asset type","example":"Building"},"label":{"type":"string","description":"Label that may be used in widgets","example":"NY Building"},"assetProfileId":{"$ref":"#/components/schemas/AssetProfileId","description":"JSON object with Asset Profile Id."},"version":{"type":"integer","format":"int64"},"ownerName":{"type":"string","description":"Owner name","readOnly":true},"groups":{"type":"array","description":"Groups","items":{"$ref":"#/components/schemas/EntityInfo"},"readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the asset. May include: 'description' (string).","example":{"description":"Building A asset"}}},"required":["name"]},"PageDataAssetInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AssetInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataCustomMenuInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/CustomMenuInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataConverter":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/Converter"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"Model":{"type":"object","properties":{"name":{"type":"string"},"info":{"$ref":"#/components/schemas/JsonNode"},"photo":{"type":"string"}}},"Vendor":{"type":"object","properties":{"name":{"type":"string"},"logo":{"type":"string"}}},"ComponentClusteringMode":{"type":"string","enum":["USER_PREFERENCE","ENABLED","SINGLETON"]},"ComponentDescriptor":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ComponentDescriptorId","description":"JSON object with the descriptor Id. Specify existing descriptor id to update the descriptor. Referencing non-existing descriptor Id will cause error. Omit this field to create new descriptor."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the descriptor creation, in milliseconds","example":1609459200000,"readOnly":true},"type":{"$ref":"#/components/schemas/ComponentType","description":"Type of the Rule Node","readOnly":true},"scope":{"$ref":"#/components/schemas/ComponentScope","description":"Scope of the Rule Node. Always set to 'TENANT', since no rule chains on the 'SYSTEM' level yet.","enum":["TENANT"],"example":"TENANT","readOnly":true},"clusteringMode":{"$ref":"#/components/schemas/ComponentClusteringMode","description":"Clustering mode of the RuleNode. This mode represents the ability to start Rule Node in multiple microservices.","enum":["USER_PREFERENCE","ENABLED","SINGLETON"],"example":"ENABLED","readOnly":true},"name":{"type":"string","description":"Name of the Rule Node. Taken from the @RuleNode annotation.","example":"Custom Rule Node","readOnly":true},"clazz":{"type":"string","description":"Full name of the Java class that implements the Rule Engine Node interface.","example":"com.mycompany.CustomRuleNode","readOnly":true},"configurationVersion":{"type":"integer","format":"int32","description":"Rule node configuration version. By default, this value is 0. If the rule node is a versioned node, this value might be greater than 0.","readOnly":true},"actions":{"type":"string","description":"Rule Node Actions. Deprecated. Always null.","readOnly":true},"hasQueueName":{"type":"boolean","description":"Indicates that the RuleNode supports queue name configuration.","example":true,"readOnly":true},"hasSecrets":{"type":"boolean","description":"Indicates that the RuleNode configuration uses secrets placeholders.","example":true,"readOnly":true},"configurationDescriptor":{"$ref":"#/components/schemas/JsonNode"}}},"ComponentDescriptorId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"ComponentScope":{"type":"string","enum":["SYSTEM","TENANT"]},"ComponentType":{"type":"string","enum":["ENRICHMENT","FILTER","TRANSFORMATION","ACTION","ANALYTICS","EXTERNAL","FLOW"]},"CalculatedFieldInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CalculatedFieldId","description":"JSON object with the Calculated Field Id. Referencing non-existing Calculated Field Id will cause error."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the calculated field creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"type":{"$ref":"#/components/schemas/CalculatedFieldType"},"name":{"type":"string","description":"User defined name of the calculated field."},"debugMode":{"type":"boolean","deprecated":true,"writeOnly":true},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"configurationVersion":{"type":"integer","format":"int32","description":"Version of calculated field configuration.","example":0},"configuration":{"oneOf":[{"$ref":"#/components/schemas/AlarmCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/EntityAggregationCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/GeofencingCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/PropagationCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/RelatedEntitiesAggregationCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/ScriptCalculatedFieldConfiguration"},{"$ref":"#/components/schemas/SimpleCalculatedFieldConfiguration"}]},"version":{"type":"integer","format":"int64"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the calculated field"},"entityName":{"type":"string"}},"required":["configuration"]},"PageDataCalculatedFieldInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/CalculatedFieldInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataString":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"type":"string"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataCalculatedField":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/CalculatedField"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"CfReprocessingValidationResult":{"type":"object","properties":{"isValid":{"type":"boolean"},"message":{"type":"string"},"lastJobStatus":{"$ref":"#/components/schemas/JobStatus"}}},"BlobEntityWithCustomerInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/BlobEntityId","description":"JSON object with the blob entity Id. Referencing non-existing blob entity Id will cause error"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the blob entity creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id","readOnly":true},"name":{"type":"string","description":"blob entity name","example":"report-2021-10-29_14:00:00.pdf","readOnly":true},"type":{"type":"string","description":"blob entity type","example":"report","readOnly":true},"contentType":{"type":"string","description":"blob content type","enum":["application/pdf","image/jpeg","image/png"],"example":"application/pdf","readOnly":true},"customerTitle":{"type":"string","description":"Title of the customer","example":"Company A"},"customerIsPublic":{"type":"boolean","description":"Parameter that specifies if customer is public","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the blob entity"}}},"PageDataBlobEntityWithCustomerInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/BlobEntityWithCustomerInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"BlobEntityInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/BlobEntityId","description":"JSON object with the blob entity Id. Referencing non-existing blob entity Id will cause error"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the blob entity creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id","readOnly":true},"name":{"type":"string","description":"blob entity name","example":"report-2021-10-29_14:00:00.pdf","readOnly":true},"type":{"type":"string","description":"blob entity type","example":"report","readOnly":true},"contentType":{"type":"string","description":"blob content type","enum":["application/pdf","image/jpeg","image/png"],"example":"application/pdf","readOnly":true},"ownerId":{"description":"JSON object with Customer or Tenant Id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the blob entity"}}},"TwoFaProviderInfo":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/TwoFaProviderType"},"default":{"type":"boolean"},"contact":{"type":"string"},"minVerificationCodeSendPeriod":{"type":"integer","format":"int32"}}},"ActionStatus":{"type":"string","enum":["SUCCESS","FAILURE"]},"AuditLog":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AuditLogId","description":"JSON object with the auditLog Id"},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the auditLog creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id","readOnly":true},"customerId":{"$ref":"#/components/schemas/CustomerId","description":"JSON object with Customer Id","readOnly":true},"entityId":{"description":"JSON object with Entity id","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true},"entityName":{"type":"string","description":"Name of the logged entity","example":"Thermometer","readOnly":true},"userId":{"$ref":"#/components/schemas/UserId","description":"JSON object with User id.","readOnly":true},"userName":{"type":"string","description":"Unique user name(email) of the user that performed some action on logged entity","example":"tenant@thingsboard.org","readOnly":true},"actionType":{"$ref":"#/components/schemas/ActionType","description":"String represented Action type","example":"ADDED","readOnly":true},"actionData":{"$ref":"#/components/schemas/JsonNode","description":"JsonNode represented action data","readOnly":true},"actionStatus":{"$ref":"#/components/schemas/ActionStatus","description":"String represented Action status","enum":["SUCCESS","FAILURE"],"example":"SUCCESS","readOnly":true},"actionFailureDetails":{"type":"string","description":"Failure action details info. An empty string in case of action status type 'SUCCESS', otherwise includes stack trace of the caused exception.","readOnly":true}}},"AuditLogId":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"string","example":"784f394c-42b6-435a-983c-b7beff2784f9"}},"required":["id"]},"PageDataAuditLog":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AuditLog"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAssetProfile":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AssetProfile"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AssetProfileInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AssetProfileId","description":"JSON object with the Asset Profile Id."},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"Tenant id."},"name":{"type":"string","description":"Entity Name"},"image":{"type":"string","description":"Either URL or Base64 data of the icon. Used in the mobile application to visualize set of asset profiles in the grid view. "},"defaultDashboardId":{"$ref":"#/components/schemas/DashboardId","description":"Reference to the dashboard. Used in the mobile application to open the default dashboard when user navigates to asset details."}}},"PageDataAssetProfileInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AssetProfileInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataApiKeyInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/ApiKeyInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AlarmCommentInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AlarmCommentId","description":"JSON object with the alarm comment Id. Specify this field to update the alarm comment. Referencing non-existing alarm Id will cause error. Omit this field to create new alarm."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm comment creation, in milliseconds","example":1634058704567,"readOnly":true},"alarmId":{"$ref":"#/components/schemas/AlarmId","description":"JSON object with Alarm id.","readOnly":true},"userId":{"$ref":"#/components/schemas/UserId","description":"JSON object with User id.","readOnly":true},"type":{"$ref":"#/components/schemas/AlarmCommentType","description":"Defines origination of comment. System type means comment was created by TB. OTHER type means comment was created by user.","example":"SYSTEM/OTHER"},"comment":{"$ref":"#/components/schemas/JsonNode","description":"JSON object with text of comment."},"firstName":{"type":"string","description":"User first name","example":"John"},"lastName":{"type":"string","description":"User last name","example":"Brown"},"email":{"type":"string","description":"User email address","example":"johnBrown@gmail.com"},"name":{"type":"string","description":"representing comment text","example":"Please take a look","readOnly":true}}},"PageDataAlarmCommentInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AlarmCommentInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataEntitySubtype":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/EntitySubtype"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AlarmRuleDefinitionInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/CalculatedFieldId","description":"JSON object with the Alarm Rule Id. Referencing non-existing Alarm Rule Id will cause error."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the alarm rule creation, in milliseconds","example":1609459200000,"readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"entityId":{"oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}]},"name":{"type":"string","description":"User defined name of the alarm rule."},"debugMode":{"type":"boolean","deprecated":true,"writeOnly":true},"debugSettings":{"$ref":"#/components/schemas/DebugSettings","description":"Debug settings object."},"configurationVersion":{"type":"integer","format":"int32","description":"Version of alarm rule configuration.","example":0},"configuration":{"$ref":"#/components/schemas/AlarmCalculatedFieldConfiguration"},"version":{"type":"integer","format":"int64"},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional parameters of the alarm rule. May include: 'description' (string).","example":{"description":"High temperature alarm rule"}},"entityName":{"type":"string"}},"required":["configuration"]},"PageDataAlarmRuleDefinitionInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AlarmRuleDefinitionInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAlarmRuleDefinition":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AlarmRuleDefinition"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAiModel":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AiModel"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AiModelInfo":{"type":"object","description":"AI model with the same JSON shape as an AI model, except that 'configuration.providerConfig' is always null, so provider credentials are never exposed","properties":{"id":{"$ref":"#/components/schemas/AiModelId"},"createdTime":{"type":"integer","format":"int64"},"tenantId":{"$ref":"#/components/schemas/TenantId"},"version":{"type":"integer","format":"int64"},"name":{"type":"string"},"customerAccessEnabled":{"type":"boolean"},"configuration":{"oneOf":[{"$ref":"#/components/schemas/AmazonBedrockChatModelConfig"},{"$ref":"#/components/schemas/AnthropicChatModelConfig"},{"$ref":"#/components/schemas/AzureOpenAiChatModelConfig"},{"$ref":"#/components/schemas/GitHubModelsChatModelConfig"},{"$ref":"#/components/schemas/GoogleAiGeminiChatModelConfig"},{"$ref":"#/components/schemas/GoogleVertexAiGeminiChatModelConfig"},{"$ref":"#/components/schemas/MistralAiChatModelConfig"},{"$ref":"#/components/schemas/OllamaChatModelConfig"},{"$ref":"#/components/schemas/OpenAiChatModelConfig"}]},"externalId":{"$ref":"#/components/schemas/AiModelId"}}},"PageDataAiModelInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AiModelInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAgentAppEvent":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentAppEvent"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AgentAppEventInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentAppEventId","description":"JSON object with the Agent App Event Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the event creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId"},"applicationId":{"$ref":"#/components/schemas/AgentApplicationId"},"agentId":{"$ref":"#/components/schemas/AgentId"},"applicationName":{"type":"string"},"actionType":{"$ref":"#/components/schemas/AgentAppEventActionType"},"startStatus":{"$ref":"#/components/schemas/ProcessingStartStatus"},"processingStatus":{"$ref":"#/components/schemas/AgentProcessingStatus"},"currentStepId":{"type":"string","format":"uuid"},"currentActivity":{"type":"string"},"errorMessage":{"type":"string"},"updatedTime":{"type":"integer","format":"int64"},"stepStates":{"type":"object","additionalProperties":{"oneOf":[{"$ref":"#/components/schemas/BackupVolumesStepState"},{"$ref":"#/components/schemas/ComposeDownStepState"},{"$ref":"#/components/schemas/ComposeStepState"},{"$ref":"#/components/schemas/RollBackStepState"},{"$ref":"#/components/schemas/RunJobStepState"}]}},"bulkActionId":{"type":"string","format":"uuid"},"resolvedArguments":{"type":"object","additionalProperties":{"type":"string"}},"winnerContainerId":{"type":"string"},"finalizeDeadlineTs":{"type":"integer","format":"int64"},"contextMetadata":{"type":"object","additionalProperties":{"type":"string"}},"agentName":{"type":"string","description":"Name of the Agent that owns the Application.","readOnly":true}}},"PageDataAgentAppEventInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentAppEventInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AgentApplicationInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentApplicationId","description":"JSON object with the Agent Application Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the agent application creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"agentId":{"$ref":"#/components/schemas/AgentId","description":"Agent this application belongs to"},"name":{"type":"string","description":"Application name (not unique across tenant)"},"templateVersion":{"type":"string","description":"Template version this application is based on"},"desiredTemplateVersion":{"type":"string"},"appType":{"$ref":"#/components/schemas/AgentApplicationType","description":"Application type"},"config":{"description":"Config (with compose field and type = 'DOCKER_COMPOSE' for EDGE/GATEWAY)","oneOf":[{"$ref":"#/components/schemas/DockerComposeConfig"}]},"version":{"type":"integer","format":"int64"},"projectName":{"type":"string"},"pendingDeletion":{"type":"boolean"},"origin":{"$ref":"#/components/schemas/AgentApplicationOrigin","description":"Origin of the application (INSTALLED or DISCOVERED)"},"applicationProfileId":{"$ref":"#/components/schemas/AgentAppProfileId","description":"Application Profile Id. When set, config is read-only and inherited from the profile."},"profileConfigVersion":{"type":"integer","format":"int64"},"currentVersion":{"type":"string","description":"Current version of the template this application is based on.","readOnly":true},"nextVersion":{"type":"string","description":"Next version available for upgrade.","readOnly":true},"profileConfigOutdated":{"type":"boolean","description":"True if the app's config is outdated relative to its profile.","readOnly":true},"profileName":{"type":"string","description":"Name of the application profile this app is based on.","readOnly":true},"profileTemplateVersion":{"type":"string","description":"Template version of the application profile this app is based on.","readOnly":true},"agentName":{"type":"string","description":"Name of the owning agent.","readOnly":true},"relatedEntityId":{"description":"Related entity id (Edge or Gateway device) currently assigned to this application.","oneOf":[{"$ref":"#/components/schemas/AdminSettingsId"},{"$ref":"#/components/schemas/AgentAppEventId"},{"$ref":"#/components/schemas/AgentAppProfileId"},{"$ref":"#/components/schemas/AgentAppUnitId"},{"$ref":"#/components/schemas/AgentApplicationId"},{"$ref":"#/components/schemas/AgentBulkActionId"},{"$ref":"#/components/schemas/AgentId"},{"$ref":"#/components/schemas/AgentProfileId"},{"$ref":"#/components/schemas/AiModelId"},{"$ref":"#/components/schemas/AlarmId"},{"$ref":"#/components/schemas/ApiKeyId"},{"$ref":"#/components/schemas/ApiUsageStateId"},{"$ref":"#/components/schemas/AssetId"},{"$ref":"#/components/schemas/AssetProfileId"},{"$ref":"#/components/schemas/BillingCustomerId"},{"$ref":"#/components/schemas/BlobEntityId"},{"$ref":"#/components/schemas/CalculatedFieldId"},{"$ref":"#/components/schemas/ConverterId"},{"$ref":"#/components/schemas/CouponId"},{"$ref":"#/components/schemas/CustomerId"},{"$ref":"#/components/schemas/DashboardId"},{"$ref":"#/components/schemas/DeviceId"},{"$ref":"#/components/schemas/DeviceProfileId"},{"$ref":"#/components/schemas/DomainId"},{"$ref":"#/components/schemas/EdgeId"},{"$ref":"#/components/schemas/EntityGroupId"},{"$ref":"#/components/schemas/EntityViewId"},{"$ref":"#/components/schemas/GroupPermissionId"},{"$ref":"#/components/schemas/IntegrationId"},{"$ref":"#/components/schemas/JobId"},{"$ref":"#/components/schemas/MobileAppBundleId"},{"$ref":"#/components/schemas/MobileAppId"},{"$ref":"#/components/schemas/NotificationId"},{"$ref":"#/components/schemas/NotificationRequestId"},{"$ref":"#/components/schemas/NotificationRuleId"},{"$ref":"#/components/schemas/NotificationTargetId"},{"$ref":"#/components/schemas/NotificationTemplateId"},{"$ref":"#/components/schemas/OAuth2ClientId"},{"$ref":"#/components/schemas/OtaPackageId"},{"$ref":"#/components/schemas/ProductId"},{"$ref":"#/components/schemas/QueueId"},{"$ref":"#/components/schemas/QueueStatsId"},{"$ref":"#/components/schemas/ReportId"},{"$ref":"#/components/schemas/ReportTemplateId"},{"$ref":"#/components/schemas/RoleId"},{"$ref":"#/components/schemas/RpcId"},{"$ref":"#/components/schemas/RuleChainId"},{"$ref":"#/components/schemas/RuleNodeId"},{"$ref":"#/components/schemas/SchedulerEventId"},{"$ref":"#/components/schemas/SecretId"},{"$ref":"#/components/schemas/SubscriptionAddonId"},{"$ref":"#/components/schemas/SubscriptionId"},{"$ref":"#/components/schemas/SubscriptionPlanId"},{"$ref":"#/components/schemas/TbResourceId"},{"$ref":"#/components/schemas/TenantId"},{"$ref":"#/components/schemas/TenantProfileId"},{"$ref":"#/components/schemas/UserId"},{"$ref":"#/components/schemas/WidgetTypeId"},{"$ref":"#/components/schemas/WidgetsBundleId"}],"readOnly":true}},"required":["agentId","appType"]},"PageDataAgentApplicationInfo":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentApplicationInfo"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"PageDataAgentBulkAction":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentBulkAction"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AgentAppProfileRelationInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentAppProfileId","description":"JSON object with the Agent Application Profile Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"name":{"type":"string","description":"Unique profile name within tenant"},"description":{"type":"string","description":"Profile description"},"appType":{"$ref":"#/components/schemas/AgentApplicationType","description":"Application type: EDGE, GATEWAY, or GENERIC"},"templateVersion":{"type":"string","description":"Template version this profile is based on"},"config":{"description":"Shared config (compose definition)","oneOf":[{"$ref":"#/components/schemas/DockerComposeConfig"}]},"version":{"type":"integer","format":"int64"},"templateCurrentVersion":{"type":"string","description":"Current version of the template this profile points to.","readOnly":true},"agentProfileId":{"$ref":"#/components/schemas/AgentProfileId","description":"JSON object with the Agent Profile Id this app profile is assigned to.","readOnly":true},"assignedApplicationsCount":{"type":"integer","format":"int64","description":"Number of AgentApplications using this app profile within the agent profile.","readOnly":true},"additionalInfo":{"$ref":"#/components/schemas/JsonNode","description":"Additional info of the assignment relation between the agent profile and this app profile.","readOnly":true}},"required":["appType","name","templateVersion"]},"AgentInstructions":{"type":"object","properties":{"instructions":{"type":"string","description":"Resolved install/provision instructions for the selected method"}}},"AgentBulkActionEventStats":{"type":"object","properties":{"countsByStatus":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Number of events produced by the bulk action per processing status"},"total":{"type":"integer","format":"int64","description":"Total number of events produced by the bulk action"}}},"AgentAppUnitType":{"type":"string","enum":["CONTAINER","VOLUME","NETWORK"]},"AgentAppUnit":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentAppUnitId","description":"JSON object with the Agent App Unit Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the agent app unit creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"Tenant this unit belongs to"},"agentApplicationId":{"$ref":"#/components/schemas/AgentApplicationId","description":"Agent application this unit belongs to"},"identifier":{"type":"string","description":"Unit identifier"},"type":{"$ref":"#/components/schemas/AgentAppUnitType","description":"Unit type"}},"required":["agentApplicationId","identifier","tenantId","type"]},"PageDataAgentAppUnit":{"type":"object","properties":{"data":{"type":"array","description":"Array of the entities","items":{"$ref":"#/components/schemas/AgentAppUnit"},"readOnly":true},"totalPages":{"type":"integer","format":"int32","description":"Total number of available pages. Calculated based on the 'pageSize' request parameter and total number of entities that match search criteria","readOnly":true},"totalElements":{"type":"integer","format":"int64","description":"Total number of elements in all available pages","readOnly":true},"hasNext":{"type":"boolean","description":"'false' value indicates the end of the result set","readOnly":true}}},"AgentAppStep":{"type":"object","discriminator":{"propertyName":"type"},"properties":{"id":{"type":"string","format":"uuid"},"nextId":{"type":"string","format":"uuid"},"title":{"type":"string"},"templateOnly":{"type":"boolean"},"condition":{"type":"string"},"type":{"$ref":"#/components/schemas/AgentAppStepType"},"stateful":{"type":"boolean"}}},"AgentAppTemplate":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"appType":{"$ref":"#/components/schemas/AgentApplicationType","description":"Application type"},"configType":{"$ref":"#/components/schemas/AgentAppConfigType","description":"Config type (e.g. 'DOCKER_COMPOSE'); the compose body lives in the template's compose-template step, not here"},"currentVersion":{"type":"string","description":"Current template version"},"nextVersion":{"type":"string","description":"Next template version"},"startSteps":{"type":"array","description":"Start steps","items":{"oneOf":[{"$ref":"#/components/schemas/AgentFinalizeStep"},{"$ref":"#/components/schemas/AgentPrepareStep"},{"$ref":"#/components/schemas/BackupVolumesRemoveStep"},{"$ref":"#/components/schemas/BackupVolumesStep"},{"$ref":"#/components/schemas/ComposeDownStep"},{"$ref":"#/components/schemas/ComposeRestartStep"},{"$ref":"#/components/schemas/ComposeStartStep"},{"$ref":"#/components/schemas/ComposeStep"},{"$ref":"#/components/schemas/ComposeTypeChoiceStep"},{"$ref":"#/components/schemas/RollBackStep"},{"$ref":"#/components/schemas/RunJobStep"}]}},"upgradeSteps":{"type":"array","description":"Upgrade steps","items":{"oneOf":[{"$ref":"#/components/schemas/AgentFinalizeStep"},{"$ref":"#/components/schemas/AgentPrepareStep"},{"$ref":"#/components/schemas/BackupVolumesRemoveStep"},{"$ref":"#/components/schemas/BackupVolumesStep"},{"$ref":"#/components/schemas/ComposeDownStep"},{"$ref":"#/components/schemas/ComposeRestartStep"},{"$ref":"#/components/schemas/ComposeStartStep"},{"$ref":"#/components/schemas/ComposeStep"},{"$ref":"#/components/schemas/ComposeTypeChoiceStep"},{"$ref":"#/components/schemas/RollBackStep"},{"$ref":"#/components/schemas/RunJobStep"}]}},"deleteSteps":{"type":"array","description":"Delete steps","items":{"oneOf":[{"$ref":"#/components/schemas/AgentFinalizeStep"},{"$ref":"#/components/schemas/AgentPrepareStep"},{"$ref":"#/components/schemas/BackupVolumesRemoveStep"},{"$ref":"#/components/schemas/BackupVolumesStep"},{"$ref":"#/components/schemas/ComposeDownStep"},{"$ref":"#/components/schemas/ComposeRestartStep"},{"$ref":"#/components/schemas/ComposeStartStep"},{"$ref":"#/components/schemas/ComposeStep"},{"$ref":"#/components/schemas/ComposeTypeChoiceStep"},{"$ref":"#/components/schemas/RollBackStep"},{"$ref":"#/components/schemas/RunJobStep"}]}},"rollbackSteps":{"type":"array","description":"Rollback steps","items":{"oneOf":[{"$ref":"#/components/schemas/AgentFinalizeStep"},{"$ref":"#/components/schemas/AgentPrepareStep"},{"$ref":"#/components/schemas/BackupVolumesRemoveStep"},{"$ref":"#/components/schemas/BackupVolumesStep"},{"$ref":"#/components/schemas/ComposeDownStep"},{"$ref":"#/components/schemas/ComposeRestartStep"},{"$ref":"#/components/schemas/ComposeStartStep"},{"$ref":"#/components/schemas/ComposeStep"},{"$ref":"#/components/schemas/ComposeTypeChoiceStep"},{"$ref":"#/components/schemas/RollBackStep"},{"$ref":"#/components/schemas/RunJobStep"}]}},"restartSteps":{"type":"array","description":"Restart steps","items":{"oneOf":[{"$ref":"#/components/schemas/AgentFinalizeStep"},{"$ref":"#/components/schemas/AgentPrepareStep"},{"$ref":"#/components/schemas/BackupVolumesRemoveStep"},{"$ref":"#/components/schemas/BackupVolumesStep"},{"$ref":"#/components/schemas/ComposeDownStep"},{"$ref":"#/components/schemas/ComposeRestartStep"},{"$ref":"#/components/schemas/ComposeStartStep"},{"$ref":"#/components/schemas/ComposeStep"},{"$ref":"#/components/schemas/ComposeTypeChoiceStep"},{"$ref":"#/components/schemas/RollBackStep"},{"$ref":"#/components/schemas/RunJobStep"}]}}},"required":["appType","currentVersion"]},"AgentFinalizeStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"}]},"AgentPrepareStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"}]},"BackupVolumesRemoveStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"}]},"BackupVolumesStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"},{"type":"object","properties":{"state":{"$ref":"#/components/schemas/BackupVolumesStepState"}}}]},"ComposeDownStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"},{"type":"object","properties":{"state":{"$ref":"#/components/schemas/ComposeDownStepState"}}}]},"ComposeRestartStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"}]},"ComposeStartStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"}]},"ComposeStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"},{"type":"object","properties":{"state":{"$ref":"#/components/schemas/ComposeStepState"}}}]},"ComposeTypeChoiceStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"},{"type":"object","properties":{"composeTemplates":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/JsonNode"}}}}]},"RollBackStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"},{"type":"object","properties":{"state":{"$ref":"#/components/schemas/RollBackStepState"}}}]},"RunJobStep":{"allOf":[{"$ref":"#/components/schemas/AgentAppStep"},{"type":"object","properties":{"state":{"$ref":"#/components/schemas/RunJobStepState"}}}]},"AgentAppProfileInfo":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/AgentAppProfileId","description":"JSON object with the Agent Application Profile Id."},"createdTime":{"type":"integer","format":"int64","description":"Timestamp of the profile creation, in milliseconds","readOnly":true},"tenantId":{"$ref":"#/components/schemas/TenantId","description":"JSON object with Tenant Id.","readOnly":true},"name":{"type":"string","description":"Unique profile name within tenant"},"description":{"type":"string","description":"Profile description"},"appType":{"$ref":"#/components/schemas/AgentApplicationType","description":"Application type: EDGE, GATEWAY, or GENERIC"},"templateVersion":{"type":"string","description":"Template version this profile is based on"},"config":{"description":"Shared config (compose definition)","oneOf":[{"$ref":"#/components/schemas/DockerComposeConfig"}]},"version":{"type":"integer","format":"int64"},"templateCurrentVersion":{"type":"string","description":"Current version of the template this profile points to.","readOnly":true}},"required":["appType","name","templateVersion"]},"UpdateMessage":{"type":"object","properties":{"updateAvailable":{"type":"boolean","description":"'True' if new platform update is available."},"currentVersion":{"type":"string","description":"Current ThingsBoard version."},"latestVersion":{"type":"string","description":"Latest ThingsBoard version."},"upgradeInstructionsUrl":{"type":"string","description":"Upgrade instructions URL."},"currentVersionReleaseNotesUrl":{"type":"string","description":"Current ThingsBoard version release notes URL."},"latestVersionReleaseNotesUrl":{"type":"string","description":"Latest ThingsBoard version release notes URL."}}},"SystemInfo":{"type":"object","properties":{"systemData":{"type":"array","description":"System data.","items":{"$ref":"#/components/schemas/SystemInfoData"}},"monolith":{"type":"boolean","description":"Is monolith."}}},"SystemInfoData":{"type":"object","properties":{"serviceId":{"type":"string","description":"Service Id."},"serviceType":{"type":"string","description":"Service type."},"cpuUsage":{"type":"integer","format":"int64","description":"CPU usage, in percent."},"cpuCount":{"type":"integer","format":"int64","description":"Total CPU usage."},"memoryUsage":{"type":"integer","format":"int64","description":"Memory usage, in percent."},"totalMemory":{"type":"integer","format":"int64","description":"Total memory in bytes."},"discUsage":{"type":"integer","format":"int64","description":"Disk usage, in percent."},"totalDiscSpace":{"type":"integer","format":"int64","description":"Total disc space in bytes."}}},"RepositorySettingsInfo":{"type":"object","properties":{"configured":{"type":"boolean"},"readOnly":{"type":"boolean"}}},"LicenseUsageInfo":{"type":"object","properties":{"maxDevices":{"type":"integer","format":"int64"},"maxAssets":{"type":"integer","format":"int64"},"whiteLabelingEnabled":{"type":"boolean"},"development":{"type":"boolean"},"plan":{"type":"string"},"devicesCount":{"type":"integer","format":"int64"},"assetsCount":{"type":"integer","format":"int64"},"dashboardsCount":{"type":"integer","format":"int64"},"integrationsCount":{"type":"integer","format":"int64"}}},"FeaturesInfo":{"type":"object","properties":{"whiteLabelingEnabled":{"type":"boolean"},"emailEnabled":{"type":"boolean"},"smsEnabled":{"type":"boolean"},"notificationEnabled":{"type":"boolean"},"oauthEnabled":{"type":"boolean"},"twoFaEnabled":{"type":"boolean"}}},"TbSecretDeleteResult":{"type":"object","properties":{"success":{"type":"boolean"},"references":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}},"TbResourceDeleteResult":{"type":"object","properties":{"success":{"type":"boolean"},"references":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}},"HasIdObject":{"type":"object","properties":{"id":{}}},"TbImageDeleteResult":{"type":"object","properties":{"success":{"type":"boolean"},"whiteLabelingList":{"type":"array","items":{"$ref":"#/components/schemas/WhiteLabeling"}},"references":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/HasIdObject"}}}}},"WhiteLabeling":{"type":"object","properties":{"tenantId":{"$ref":"#/components/schemas/TenantId"},"customerId":{"$ref":"#/components/schemas/CustomerId"},"type":{"$ref":"#/components/schemas/WhiteLabelingType"},"settings":{"$ref":"#/components/schemas/JsonNode"},"legacyDomain":{"type":"string","readOnly":true},"domainId":{"$ref":"#/components/schemas/DomainId"}}},"WhiteLabelingType":{"type":"string","enum":["LOGIN","GENERAL","MAIL_TEMPLATES","SELF_REGISTRATION","TERMS_OF_USE","PRIVACY_POLICY"]},"CustomMenuDeleteResult":{"type":"object","properties":{"success":{"type":"boolean"},"assigneeType":{"$ref":"#/components/schemas/CMAssigneeType"},"assigneeList":{"type":"array","items":{"$ref":"#/components/schemas/EntityInfo"}}}}},"securitySchemes":{"HttpLoginForm":{"type":"http","description":"Enter Username / Password","scheme":"loginPassword","bearerFormat":"/api/auth/login|X-Authorization"},"ApiKeyForm":{"type":"apiKey","description":"Enter the API key value with 'ApiKey' prefix in format: **ApiKey <your_api_key_value>**\n\nExample: **ApiKey tb_5te51SkLRYpjGrujUGwqkjFvooWBlQpVe2An2Dr3w13wjfxDW**\n\n<br>**NOTE**: Use only ONE authentication method at a time. If both are authorized, JWT auth takes the priority.<br>\n","name":"X-Authorization","in":"header"}}}}