# Schemas
* [Advanced Application Key Query](#advanced-application-key-query)
* [Advanced Device Query](#advanced-device-query)
* [Advanced Event Query](#advanced-event-query)
* [Advanced Experience Group Query](#advanced-experience-group-query)
* [Advanced Experience User Query](#advanced-experience-user-query)
* [Advanced Workflow By Version Query](#advanced-workflow-by-version-query)
* [Advanced Workflow Query](#advanced-workflow-query)
* [Advanced Workflow Version Query](#advanced-workflow-version-query)
* [Advanced Instance Organization Query](#advanced-instance-organization-query)
* [Advanced Query](#advanced-query)
* [API Token](#api-token)
* [API Token Patch](#api-token-patch)
* [API Token Post](#api-token-post)
* [API Tokens](#api-tokens)
* [Application](#application)
* [Application Apply Template Patch Schema](#application-apply-template-patch-schema)
* [Application Certificate](#application-certificate)
* [Application Certificate Authorities](#application-certificate-authorities)
* [Application Certificate Authority](#application-certificate-authority)
* [Application Certificate Authority Patch](#application-certificate-authority-patch)
* [Application Certificate Authority Post](#application-certificate-authority-post)
* [Application Certificate Patch](#application-certificate-patch)
* [Application Certificate Post](#application-certificate-post)
* [Application Certificates](#application-certificates)
* [Success Dry Run](#success-dry-run)
* [Application Clone Post Schema](#application-clone-post-schema)
* [Application Creation By Template Result](#application-creation-by-template-result)
* [Application Dashboard Post](#application-dashboard-post)
* [Application Export Post Schema](#application-export-post-schema)
* [Application Export Result](#application-export-result)
* [Application Global Patch](#application-global-patch)
* [Application Import Executions](#application-import-executions)
* [Application Key](#application-key)
* [Application Key Patch](#application-key-patch)
* [Application Key Post](#application-key-post)
* [Application Key Post Response](#application-key-post-response)
* [Application Keys](#application-keys)
* [Application Patch](#application-patch)
* [Application Post](#application-post)
* [Application Readme](#application-readme)
* [Application Readme Patch](#application-readme-patch)
* [Application Search Result](#application-search-result)
* [Application Template](#application-template)
* [Application Template Categories](#application-template-categories)
* [Application Template Category](#application-template-category)
* [Application Templates](#application-templates)
* [Applications](#applications)
* [Attribute Names Response](#attribute-names-response)
* [Audit Log](#audit-log)
* [Audit Log Filter](#audit-log-filter)
* [Audit Logs](#audit-logs)
* [Authenticated Device](#authenticated-device)
* [Authenticated User](#authenticated-user)
* [Bulk Deletion Response](#bulk-deletion-response)
* [Change Password](#change-password)
* [Composite Device State](#composite-device-state)
* [Devices Composite State](#devices-composite-state)
* [Credential](#credential)
* [Credential Linked Resources](#credential-linked-resources)
* [Credential Patch](#credential-patch)
* [Credential Post](#credential-post)
* [Credentials](#credentials)
* [Dashboard](#dashboard)
* [Dashboard Context Instance](#dashboard-context-instance)
* [Dashboard Patch](#dashboard-patch)
* [Dashboard Post](#dashboard-post)
* [Dashboard Send Report](#dashboard-send-report)
* [Dashboard Update Events](#dashboard-update-events)
* [Dashboards](#dashboards)
* [Data Export](#data-export)
* [Data Table](#data-table)
* [Data Table Column](#data-table-column)
* [Data Table Patch](#data-table-patch)
* [Data Table Post](#data-table-post)
* [Data Table Row](#data-table-row)
* [Data Table Row Insert Multiple](#data-table-row-insert-multiple)
* [Data Table Row Insert](#data-table-row-insert)
* [Data Table Row Insert Result](#data-table-row-insert-result)
* [Data Table Row Insert Update](#data-table-row-insert-update)
* [Data Table Rows](#data-table-rows)
* [Data Table Rows Delete](#data-table-rows-delete)
* [Data Table Rows Export](#data-table-rows-export)
* [Data Tables](#data-tables)
* [Debug Exclude Node IDs](#debug-exclude-node-ids)
* [Debug Levels](#debug-levels)
* [Device](#device)
* [Device Attribute Data Type Filter](#device-attribute-data-type-filter)
* [Device Class Filter](#device-class-filter)
* [Device Command](#device-command)
* [Device Commands](#device-commands)
* [Device Connection Status](#device-connection-status)
* [Device Counts](#device-counts)
* [Device Credentials](#device-credentials)
* [Device Log](#device-log)
* [Device Names Response](#device-names-response)
* [Device Patch](#device-patch)
* [Device Payload Counts](#device-payload-counts)
* [Device Post](#device-post)
* [Device Recipe](#device-recipe)
* [Device Recipe Bulk Create](#device-recipe-bulk-create)
* [Device Recipe Bulk Create Post](#device-recipe-bulk-create-post)
* [Device Recipe Patch](#device-recipe-patch)
* [Device Recipe Post](#device-recipe-post)
* [Device Recipes](#device-recipes)
* [Device State](#device-state)
* [Device State or States](#device-state-or-states)
* [Device States](#device-states)
* [Device Tag Filter](#device-tag-filter)
* [Devices](#devices)
* [Devices Delete Post](#devices-delete-post)
* [Devices Payload Count Export Post](#devices-payload-count-export-post)
* [Devices Metadata Export Post](#devices-metadata-export-post)
* [Devices Historical Import Post](#devices-historical-import-post)
* [Devices Patch](#devices-patch)
* [Devices Remove Data Post](#devices-remove-data-post)
* [Devices Updated](#devices-updated)
* [Edge Deployment](#edge-deployment)
* [Edge Deployment Release](#edge-deployment-release)
* [Edge Deployment Remove](#edge-deployment-remove)
* [Edge Deployment Replace](#edge-deployment-replace)
* [Edge Deployments](#edge-deployments)
* [Email Verification Verify](#email-verification-verify)
* [Embedded Deployment](#embedded-deployment)
* [Embedded Deployment Export](#embedded-deployment-export)
* [Embedded Deployment Release](#embedded-deployment-release)
* [Embedded Deployment Remove](#embedded-deployment-remove)
* [Embedded Deployment Replace](#embedded-deployment-replace)
* [Embedded Deployments](#embedded-deployments)
* [Error](#error)
* [Event](#event)
* [Event Patch](#event-patch)
* [Event Plus New Count](#event-plus-new-count)
* [Event Post](#event-post)
* [Event Tags Summary](#event-tags-summary)
* [Events](#events)
* [Events Deleted](#events-deleted)
* [Event Export Options](#event-export-options)
* [Experience Bootstrap Options](#experience-bootstrap-options)
* [Experience Bootstrap Result](#experience-bootstrap-result)
* [Experience Domain](#experience-domain)
* [Experience Domain Patch](#experience-domain-patch)
* [Experience Domain Post](#experience-domain-post)
* [Experience Domains](#experience-domains)
* [Experience Endpoint](#experience-endpoint)
* [Experience Endpoint Patch](#experience-endpoint-patch)
* [Experience Endpoint Post](#experience-endpoint-post)
* [Experience Endpoint Stats](#experience-endpoint-stats)
* [Experience Endpoints](#experience-endpoints)
* [Experience Group](#experience-group)
* [Experience Group Patch](#experience-group-patch)
* [Experience Group Post](#experience-group-post)
* [Experience Groups](#experience-groups)
* [Experience Linked Resources](#experience-linked-resources)
* [Experience Slug](#experience-slug)
* [Experience Slug Patch](#experience-slug-patch)
* [Experience Slug Post](#experience-slug-post)
* [Experience Slugs](#experience-slugs)
* [Experience User](#experience-user)
* [Experience User Patch](#experience-user-patch)
* [Experience User Post](#experience-user-post)
* [Experience Users](#experience-users)
* [Experience Version](#experience-version)
* [Experience Version Patch](#experience-version-patch)
* [Experience Version Post](#experience-version-post)
* [Experience Versions](#experience-versions)
* [Experience View](#experience-view)
* [Experience View Patch](#experience-view-patch)
* [Experience View Post](#experience-view-post)
* [Experience Views](#experience-views)
* [File Schema](#file-schema)
* [File Patch](#file-patch)
* [File Post](#file-post)
* [File Upload Post Response](#file-upload-post-response)
* [Files Schema](#files-schema)
* [Workflow](#workflow)
* [Workflow Errors](#workflow-errors)
* [Workflow Log](#workflow-log)
* [Workflow Patch](#workflow-patch)
* [Workflow Post](#workflow-post)
* [Workflow Statistics](#workflow-statistics)
* [Workflow Storage Entries](#workflow-storage-entries)
* [Workflow Storage Entry](#workflow-storage-entry)
* [Get Workflow Storage Entries Metadata](#get-workflow-storage-entries-metadata)
* [Workflow Trigger Filter](#workflow-trigger-filter)
* [Workflow Version](#workflow-version)
* [Workflow Version Patch](#workflow-version-patch)
* [Workflow Version Post](#workflow-version-post)
* [Workflow Versions](#workflow-versions)
* [Flow Versions Delete Post](#flow-versions-delete-post)
* [Workflows](#workflows)
* [Workflows Import Post](#workflows-import-post)
* [Workflow Import Result](#workflow-import-result)
* [Github Login](#github-login)
* [Historical Summaries](#historical-summaries)
* [Historical Summary](#historical-summary)
* [Application Import Options](#application-import-options)
* [Applications Import Options](#applications-import-options)
* [Instance](#instance)
* [Instance Audit Log](#instance-audit-log)
* [Instance Audit Log Filter](#instance-audit-log-filter)
* [Instance Audit Logs](#instance-audit-logs)
* [Instance Custom Node](#instance-custom-node)
* [Instance Custom Node Patch](#instance-custom-node-patch)
* [Instance Custom Node Post](#instance-custom-node-post)
* [Instance Custom Nodes](#instance-custom-nodes)
* [Instance Member](#instance-member)
* [Instance Member Patch](#instance-member-patch)
* [Instance Member Post](#instance-member-post)
* [Instance Members](#instance-members)
* [Instance Organization](#instance-organization)
* [Instance Org Member](#instance-org-member)
* [Instance Org Member Patch](#instance-org-member-patch)
* [Instance Org Member Post](#instance-org-member-post)
* [Instance Organization Members](#instance-organization-members)
* [Instance Owned Organization Patch](#instance-owned-organization-patch)
* [Instance Owned Organization Post](#instance-owned-organization-post)
* [Instance Organizations](#instance-organizations)
* [Instance Patch](#instance-patch)
* [Instance Report Options Post](#instance-report-options-post)
* [Instance Sandbox User](#instance-sandbox-user)
* [Instance Sandboxes](#instance-sandboxes)
* [Instances](#instances)
* [Integration](#integration)
* [Integration Patch](#integration-patch)
* [Integration Post](#integration-post)
* [Integrations](#integrations)
* [Job Enqueued API Result](#job-enqueued-api-result)
* [Last Value Data](#last-value-data)
* [Last Value Query](#last-value-query)
* [Me](#me)
* [Me Patch](#me-patch)
* [MQTT Publish Body](#mqtt-publish-body)
* [Multi Device Command](#multi-device-command)
* [Disable Multi-Factor Authentication](#disable-multi-factor-authentication)
* [Enable Multi-Factor Authentication](#enable-multi-factor-authentication)
* [Multi-Factor Authentication Info](#multi-factor-authentication-info)
* [Notebook](#notebook)
* [Notebook Data Export Options](#notebook-data-export-options)
* [Notebook Execution Logs](#notebook-execution-logs)
* [Notebook Execution Options](#notebook-execution-options)
* [Notebook Minute Counts](#notebook-minute-counts)
* [Notebook Patch](#notebook-patch)
* [Notebook Post](#notebook-post)
* [Notebooks](#notebooks)
* [Organization](#organization)
* [Organization Invitation](#organization-invitation)
* [Organization Invitation Action](#organization-invitation-action)
* [Organization Invitation Action For User](#organization-invitation-action-for-user)
* [Instance Organization Invitations](#instance-organization-invitations)
* [Organization Invitation Information](#organization-invitation-information)
* [Organization Invitation Post](#organization-invitation-post)
* [Organization Invitation Result](#organization-invitation-result)
* [Organization Invitation Result For User](#organization-invitation-result-for-user)
* [Organization Invitation Information For User](#organization-invitation-information-for-user)
* [Organization Invitations](#organization-invitations)
* [User Organization Invitations](#user-organization-invitations)
* [Organization Member Patch](#organization-member-patch)
* [Organization Patch](#organization-patch)
* [Organization Post](#organization-post)
* [Organization Role Info](#organization-role-info)
* [Organizations](#organizations)
* [Palette Response](#palette-response)
* [Password Reset Finish](#password-reset-finish)
* [Password Reset Input](#password-reset-input)
* [Password Reset Response](#password-reset-response)
* [Payload Counts Breakdown](#payload-counts-breakdown)
* [Payload Stats](#payload-stats)
* [Application Period Summaries](#application-period-summaries)
* [Recent Item](#recent-item)
* [Recent Item List](#recent-item-list)
* [Resource Job](#resource-job)
* [Resource Job Execution Logs](#resource-job-execution-logs)
* [Resource Job Execution Options](#resource-job-execution-options)
* [Resource Job Patch](#resource-job-patch)
* [Resource Job Post](#resource-job-post)
* [Resource Jobs](#resource-jobs)
* [Resource Transfer](#resource-transfer)
* [SAML Response](#saml-response)
* [SSO Request](#sso-request)
* [Success](#success)
* [Success With Execution ID](#success-with-execution-id)
* [Tag Keys Response](#tag-keys-response)
* [Tag Values Response](#tag-values-response)
* [Template Keywords](#template-keywords)
* [Time Series Data](#time-series-data)
* [Time Series Query](#time-series-query)
* [User Credentials](#user-credentials)
* [User Post](#user-post)
* [Validate Context Error](#validate-context-error)
* [Validate Context Success](#validate-context-success)
* [Validation Error](#validation-error)
* [Virtual Button Press](#virtual-button-press)
* [Webhook](#webhook)
* [Webhook Patch](#webhook-patch)
* [Webhook Post](#webhook-post)
* [Webhooks](#webhooks)
## Advanced Application Key Query
Schema for advanced application key queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedApplicationKeyQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedApplicationKeyQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedApplicationKeyQuery"
},
"maxItems": 100
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"status": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"deviceIds": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"deviceTags": {
"oneOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"key": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"description": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"filterType": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"pubTopics": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"subTopics": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
}
}
}
```
### Example
```json
{
"$nor": [
{
"id": "575ec8687ae143cd83dc4a97"
},
{
"description": "my access key"
},
{
"lastUpdated": {
"$lt": 1612189931000
}
}
]
}
```
## Advanced Device Query
Schema for advanced device queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedDeviceQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedDeviceQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedDeviceQuery"
},
"maxItems": 100
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"name": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"deviceClass": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"gatewayId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"parentId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"ancestorId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"attributeName": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"experienceUserId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"experienceGroupId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"tags": {
"oneOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"disconnectedAt": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"connectedAt": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"connectionStatus": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"$or": [
{
"name": {
"$ne": "myValue"
}
},
{
"parentId": "575ec8687ae143cd83dc4a97"
}
]
}
```
## Advanced Event Query
Schema for advanced event queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedEventQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedEventQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedEventQuery"
},
"maxItems": 100
},
"id": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"sourceId": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"sourceType": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"level": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"state": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"subject": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"deviceId": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"experienceUserId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"experienceGroupId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"eventTags": {
"oneOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"$or": [
{
"level": {
"$ne": "myValue"
}
},
{
"level": 5
}
]
}
```
## Advanced Experience Group Query
Schema for advanced experience group queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedExperienceGroupQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedExperienceGroupQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedExperienceGroupQuery"
},
"maxItems": 100
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"name": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"parentId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"ancestorId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"groupTags": {
"oneOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"experienceUserId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"experienceEndpointId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"name": "My Great Group",
"lastUpdated": "2022-01-30T17:18:11.911Z"
}
```
## Advanced Experience User Query
Schema for advanced experience user queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedExperienceUserQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedExperienceUserQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedExperienceUserQuery"
},
"maxItems": 100
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"firstName": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastName": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"email": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastLogin": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"passwordLastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"userTags": {
"oneOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"experienceGroupId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"firstName": "Bob",
"lastUpdated": "2022-01-30T17:18:11.911Z"
}
```
## Advanced Workflow By Version Query
Schema for advanced workflow queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowByVersionQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowByVersionQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowByVersionQuery"
},
"maxItems": 100
},
"name": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"flowClass": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"enabled": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"flowId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"flowId": "000000000000000000000000"
}
```
## Advanced Workflow Query
Schema for advanced workflow queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowQuery"
},
"maxItems": 100
},
"name": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"flowClass": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"enabled": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"defaultVersion": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"triggers": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$eq": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"nodes": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$eq": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"customNodeSupports": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"$or": [
{
"name": {
"$ne": "flowie"
}
},
{
"enabled": false
}
]
}
```
## Advanced Workflow Version Query
Schema for advanced workflow queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowVersionQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowVersionQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedFlowVersionQuery"
},
"maxItems": 100
},
"name": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"flowClass": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"enabled": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"version": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"triggers": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$eq": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"nodes": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$eq": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"type": "object",
"properties": {
"type": {
"type": "string",
"maxLength": 255
},
"config": {
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": [
"string",
"number",
"boolean",
"null"
],
"maxLength": 1024
}
}
}
},
"required": [
"type"
],
"additionalProperties": false
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"customNodeSupports": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"version": "theVersion"
}
```
## Advanced Instance Organization Query
Schema for advanced instance organization queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedInstanceOrgQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedInstanceOrgQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedInstanceOrgQuery"
},
"maxItems": 100
},
"id": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
},
"creationDate": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"lastUpdated": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"name": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"mfaMode": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"isReadOnly": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"auditLogEnabled": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"disabledAt": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"referralId": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
},
"tags": {
"oneOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$eq"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"$ne": {
"oneOf": [
{
"type": "object",
"properties": {
"$tagKey": {
"type": "string",
"maxLength": 255
},
"$tagValue": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"minProperties": 1
},
{
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"required": [
"$ne"
],
"additionalProperties": false
}
]
},
"memberId": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
{
"type": "object",
"properties": {
"$eq": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$ne": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lt": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$gte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$lte": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"additionalProperties": false,
"minProperties": 1,
"maxProperties": 1
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"name": "Bob's Org",
"lastUpdated": "2022-01-30T17:18:11.911Z"
}
```
## Advanced Query
Schema for advanced filters and queries
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$and": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedQuery"
},
"maxItems": 100
},
"$or": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedQuery"
},
"maxItems": 100
},
"$nor": {
"type": "array",
"items": {
"$ref": "#/definitions/advancedQuery"
},
"maxItems": 100
}
},
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"oneOf": [
{
"type": [
"string",
"number",
"boolean",
"null"
]
},
{
"type": "object",
"properties": {
"$eq": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$ne": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lt": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$gte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$lte": {
"type": [
"string",
"number",
"boolean",
"null"
]
},
"$startsWith": {
"type": "string",
"minLength": 1
},
"$endsWith": {
"type": "string",
"minLength": 1
},
"$contains": {
"type": "string",
"minLength": 1
},
"$ci": {
"type": "boolean"
},
"$in": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
},
"$nin": {
"type": "array",
"maxItems": 100,
"items": {
"type": [
"string",
"number",
"boolean"
]
}
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"$or": [
{
"level": {
"$ne": "myValue"
}
},
{
"level": 5
}
]
}
```
## API Token
Schema for a single API Token
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"apiTokenId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerType": {
"type": "string",
"enum": [
"application",
"user"
]
},
"creatorId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creatorType": {
"type": "string",
"enum": [
"apiToken",
"user",
"flow"
]
},
"creatorName": {
"type": "string",
"maxLength": 1024
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"expirationDate": {
"type": "string",
"format": "date-time"
},
"scope": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"token": {
"type": "string",
"minLength": 1
}
}
}
```
### Example
```json
{
"id": "575ec7417ae143cd83dc4a95",
"apiTokenId": "575ec7417ae143cd83dc4a95",
"creatorId": "575ed70c7ae143cd83dc4aa9",
"creatorType": "user",
"ownerId": "575ec8687ae143cd83dc4a97",
"ownerType": "application",
"name": "My API Token",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"expirationDate": "2017-06-13T04:00:00.000Z",
"scope": [
"all.Application"
],
"status": "active",
"token": "the_actual_token_string"
}
```
## API Token Patch
Schema for the body of an API Token modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
}
},
"additionalProperties": false
}
```
### Example
```json
{
"name": "My Updated API Token",
"status": "inactive"
}
```
## API Token Post
Schema for the body of an API Token creation request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"expirationDate": {
"type": "string",
"format": "date-time"
},
"scope": {
"type": "array",
"uniqueItems": true,
"items": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"all.Application",
"all.Application.read",
"all.Application.cli",
"all.Device",
"all.Device.read",
"application.*",
"applicationApiToken.*",
"applicationApiTokens.*",
"applicationCertificate.*",
"applicationCertificates.*",
"applicationCertificateAuthority.*",
"applicationCertificateAuthorities.*",
"applicationDashboards.*",
"applicationDashboard.*",
"applicationKey.*",
"applicationKeys.*",
"credential.*",
"credentials.*",
"data.*",
"dataTable.*",
"dataTables.*",
"dataTableRow.*",
"dataTableRows.*",
"device.*",
"deviceRecipe.*",
"deviceRecipes.*",
"devices.*",
"edgeDeployment.*",
"edgeDeployments.*",
"embeddedDeployment.*",
"embeddedDeployments.*",
"event.*",
"events.*",
"experience.*",
"experienceDomain.*",
"experienceDomains.*",
"experienceEndpoint.*",
"experienceEndpoints.*",
"experienceGroup.*",
"experienceGroups.*",
"experienceSlug.*",
"experienceSlugs.*",
"experienceUser.*",
"experienceUsers.*",
"experienceVersion.*",
"experienceVersions.*",
"experienceView.*",
"experienceViews.*",
"integration.*",
"integrations.*",
"file.*",
"files.*",
"flow.*",
"flows.*",
"flowVersion.*",
"flowVersions.*",
"resourceJobs.*",
"resourceJob.*",
"notebook.*",
"notebooks.*",
"webhook.*",
"webhooks.*",
"application.applyTemplate",
"application.archiveData",
"application.backfillArchiveData",
"application.clone",
"application.export",
"application.import",
"application.fullEventsArchive",
"application.fullDataTablesArchive",
"application.debug",
"application.delete",
"application.get",
"application.mqttPublishMessage",
"application.mqttSubscriptionStream",
"application.patch",
"application.payloadCounts",
"application.payloadCountsBreakdown",
"application.deviceCounts",
"application.notebookMinuteCounts",
"application.search",
"application.importLogs",
"applicationApiToken.delete",
"applicationApiToken.get",
"applicationApiToken.patch",
"applicationApiTokens.get",
"applicationApiTokens.post",
"applicationCertificate.delete",
"applicationCertificate.get",
"applicationCertificate.patch",
"applicationCertificates.get",
"applicationCertificates.post",
"applicationCertificateAuthority.delete",
"applicationCertificateAuthority.get",
"applicationCertificateAuthority.patch",
"applicationCertificateAuthorities.get",
"applicationCertificateAuthorities.post",
"applicationDashboard.get",
"applicationDashboard.patch",
"applicationDashboard.sendReport",
"applicationDashboard.delete",
"applicationDashboards.get",
"applicationDashboards.post",
"applicationKey.delete",
"applicationKey.get",
"applicationKey.patch",
"applicationKeys.get",
"applicationKeys.post",
"credential.get",
"credential.linkedResources",
"credential.patch",
"credential.delete",
"credentials.get",
"credentials.post",
"data.export",
"data.lastValueQuery",
"data.timeSeriesQuery",
"dataTable.addColumn",
"dataTable.delete",
"dataTable.get",
"dataTable.patch",
"dataTable.removeColumn",
"dataTableRow.delete",
"dataTableRow.get",
"dataTableRow.patch",
"dataTableRows.get",
"dataTableRows.post",
"dataTableRows.query",
"dataTableRows.export",
"dataTableRows.delete",
"dataTableRows.truncate",
"dataTables.get",
"dataTables.post",
"device.agentLogs",
"device.commandStream",
"device.debug",
"device.delete",
"device.export",
"device.get",
"device.getCommand",
"device.getCompositeState",
"device.getLogEntries",
"device.getState",
"device.patch",
"device.payloadCounts",
"device.payloadCountsBreakdown",
"device.removeData",
"device.sendCommand",
"device.sendState",
"device.setConnectionStatus",
"device.stateStream",
"deviceRecipe.bulkCreate",
"deviceRecipe.delete",
"deviceRecipe.get",
"deviceRecipe.patch",
"deviceRecipes.get",
"deviceRecipes.post",
"devices.attributeNames",
"devices.patch",
"devices.delete",
"devices.removeData",
"devices.detailedSummary",
"devices.deviceNames",
"devices.export",
"devices.get",
"devices.getCompositeState",
"devices.historicalImport",
"devices.payloadCounts",
"devices.post",
"devices.sendCommand",
"devices.tagKeys",
"devices.tagValues",
"edgeDeployment.get",
"edgeDeployments.get",
"edgeDeployments.release",
"edgeDeployments.remove",
"edgeDeployments.replace",
"embeddedDeployment.get",
"embeddedDeployments.get",
"embeddedDeployments.release",
"embeddedDeployments.remove",
"embeddedDeployments.replace",
"embeddedDeployments.export",
"event.delete",
"event.get",
"event.patch",
"events.delete",
"events.detailedSummary",
"events.get",
"events.mostRecentBySeverity",
"events.patch",
"events.post",
"events.export",
"experience.delete",
"experience.bootstrap",
"experienceDomain.delete",
"experienceDomain.get",
"experienceDomain.patch",
"experienceDomains.get",
"experienceDomains.post",
"experienceEndpoint.delete",
"experienceEndpoint.get",
"experienceEndpoint.linkedResources",
"experienceEndpoint.patch",
"experienceEndpoints.get",
"experienceEndpoints.post",
"experienceEndpoints.stats",
"experienceGroup.delete",
"experienceGroup.get",
"experienceGroup.patch",
"experienceGroups.detailedSummary",
"experienceGroups.get",
"experienceGroups.post",
"experienceSlug.delete",
"experienceSlug.get",
"experienceSlug.patch",
"experienceSlugs.get",
"experienceSlugs.post",
"experienceUser.delete",
"experienceUser.get",
"experienceUser.patch",
"experienceUsers.detailedSummary",
"experienceUsers.get",
"experienceUsers.post",
"experienceVersion.delete",
"experienceVersion.get",
"experienceVersion.patch",
"experienceVersions.get",
"experienceVersions.post",
"experienceView.debug",
"experienceView.delete",
"experienceView.get",
"experienceView.linkedResources",
"experienceView.patch",
"experienceViews.debug",
"experienceViews.detailedSummary",
"experienceViews.get",
"experienceViews.post",
"file.get",
"file.patch",
"file.move",
"file.delete",
"file.upload",
"files.get",
"files.post",
"flow.clearStorageEntries",
"flow.debug",
"flow.delete",
"flow.errors",
"flow.get",
"flow.getStorageEntries",
"flow.log",
"flow.patch",
"flow.pressVirtualButton",
"flow.setStorageEntry",
"flow.getStorageEntriesMetadata",
"flow.stats",
"flows.get",
"flows.getByVersion",
"flows.import",
"flows.palette",
"flows.post",
"flowVersion.delete",
"flowVersion.debug",
"flowVersion.errors",
"flowVersion.get",
"flowVersion.log",
"flowVersion.patch",
"flowVersion.stats",
"flowVersions.delete",
"flowVersions.get",
"flowVersions.post",
"integration.delete",
"integration.get",
"integration.patch",
"integrations.get",
"integrations.post",
"notebook.delete",
"notebook.execute",
"notebook.get",
"notebook.logs",
"notebook.notebookMinuteCounts",
"notebook.patch",
"notebook.requestInputDataExport",
"notebook.upload",
"notebooks.get",
"notebooks.post",
"resourceJob.get",
"resourceJob.logs",
"resourceJob.patch",
"resourceJob.delete",
"resourceJob.execute",
"resourceJob.cancelExecution",
"resourceJobs.get",
"resourceJobs.post",
"webhook.delete",
"webhook.get",
"webhook.patch",
"webhooks.get",
"webhooks.post"
]
},
{
"type": "string",
"enum": [
"all.Organization",
"all.Organization.read",
"applications.*",
"auditLog.*",
"auditLogs.*",
"dashboard.*",
"dashboards.*",
"org.*",
"applications.get",
"applications.post",
"applications.import",
"applications.detailedSummary",
"applications.periodSummaries",
"auditLog.get",
"auditLogs.get",
"dashboard.patch",
"dashboard.delete",
"dashboard.sendReport",
"dashboards.get",
"dashboards.post",
"org.get",
"org.patch",
"org.delete",
"org.pendingInvites",
"org.inviteMember",
"org.revokeInvite",
"org.modifyMember",
"org.removeMember",
"org.payloadCounts",
"org.payloadCountsBreakdown",
"org.deviceCounts",
"org.notebookMinuteCounts",
"org.invoices",
"org.currentCard",
"org.chargeDetails",
"org.transferResources"
]
}
]
},
{
"type": "string",
"enum": [
"all.Instance",
"all.Instance.read",
"instance.*",
"instance.get",
"instance.patch",
"instance.historicalSummaries",
"instance.generateReport",
"instance.payloadCountsBreakdown",
"instance.deviceCounts",
"instance.notebookMinuteCounts",
"instanceOrg.*",
"instanceOrg.get",
"instanceOrg.patch",
"instanceOrg.delete",
"instanceOrg.payloadCountsBreakdown",
"instanceOrg.deviceCounts",
"instanceOrg.notebookMinuteCounts",
"instanceOrgs.*",
"instanceOrgs.get",
"instanceOrgs.post",
"instanceMember.*",
"instanceMember.get",
"instanceMember.patch",
"instanceMember.delete",
"instanceMembers.*",
"instanceMembers.get",
"instanceMembers.post",
"instanceOrgMember.*",
"instanceOrgMember.get",
"instanceOrgMember.patch",
"instanceOrgMember.delete",
"instanceOrgMembers.*",
"instanceOrgMembers.get",
"instanceOrgMembers.post",
"instanceOrgInvite.*",
"instanceOrgInvite.get",
"instanceOrgInvite.delete",
"instanceOrgInvite.resendInvite",
"instanceOrgInvites.*",
"instanceOrgInvites.get",
"instanceOrgInvites.post",
"instanceApiTokens.*",
"instanceApiTokens.get",
"instanceApiTokens.post",
"instanceApiToken.*",
"instanceApiToken.get",
"instanceApiToken.patch",
"instanceApiToken.delete",
"instanceCustomNodes.*",
"instanceCustomNodes.get",
"instanceCustomNodes.post",
"instanceCustomNode.*",
"instanceCustomNode.get",
"instanceCustomNode.patch",
"instanceCustomNode.delete",
"instanceCustomNode.errors",
"instanceCustomNode.stats",
"instanceSandbox.*",
"instanceSandbox.get",
"instanceSandbox.delete",
"instanceSandbox.undelete",
"instanceSandboxes.*",
"instanceSandboxes.get",
"instanceAuditLog.*",
"instanceAuditLog.get",
"instanceAuditLogs.*",
"instanceAuditLogs.get"
]
},
{
"type": "string",
"enum": [
"all.User",
"all.User.read",
"all.User.cli",
"userApiToken.*",
"userApiToken.get",
"userApiToken.patch",
"userApiToken.delete",
"userApiTokens.*",
"userApiTokens.get",
"userApiTokens.post",
"applicationTemplate.*",
"applicationTemplate.get",
"applicationTemplates.*",
"applicationTemplates.get",
"applicationTemplates.getCategories",
"applicationTemplates.getUniqueKeywords",
"instances.*",
"instances.get",
"me.*",
"me.get",
"me.patch",
"me.delete",
"me.verifyEmail",
"me.changePassword",
"me.generateTwoFactorAuth",
"me.enableTwoFactorAuth",
"me.disableTwoFactorAuth",
"me.disconnectGithub",
"me.connectGithub",
"me.addRecentItem",
"me.fetchRecentItems",
"me.payloadCounts",
"me.payloadCountsBreakdown",
"me.deviceCounts",
"me.notebookMinuteCounts",
"me.transferResources",
"me.invite",
"me.invites",
"me.respondToInvite",
"orgs.*",
"orgs.get",
"orgs.post"
]
}
]
}
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
}
},
"additionalProperties": false,
"required": [
"name"
]
}
```
### Example
```json
{
"name": "My New API Token",
"expirationDate": "2017-06-13T04:00:00.000Z",
"scope": [
"all.Application"
],
"status": "active"
}
```
## API Tokens
Schema for a collection of API Tokens
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "API Token",
"description": "Schema for a single API Token",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"apiTokenId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerType": {
"type": "string",
"enum": [
"application",
"user"
]
},
"creatorId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creatorType": {
"type": "string",
"enum": [
"apiToken",
"user",
"flow"
]
},
"creatorName": {
"type": "string",
"maxLength": 1024
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"expirationDate": {
"type": "string",
"format": "date-time"
},
"scope": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"token": {
"type": "string",
"minLength": 1
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"ownerId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerType": {
"type": "string",
"enum": [
"application",
"user"
]
}
}
}
```
### Example
```json
{
"items": [
{
"id": "575ec7417ae143cd83dc4a95",
"apiTokenId": "575ec7417ae143cd83dc4a95",
"creatorId": "575ed70c7ae143cd83dc4aa9",
"creatorType": "user",
"ownerId": "575ec8687ae143cd83dc4a97",
"ownerType": "application",
"name": "My API Token",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"expirationDate": "2017-06-13T04:00:00.000Z",
"scope": [
"all.Application"
],
"status": "active",
"token": "the_actual_token_string"
}
],
"count": 1,
"totalCount": 4,
"perPage": 1,
"page": 0,
"sortField": "name",
"sortDirection": "asc",
"ownerId": "575ec8687ae143cd83dc4a97",
"ownerType": "application"
}
```
## Application
Schema for a single Application
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"appliedTemplateIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"ownerId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerType": {
"type": "string",
"enum": [
"user",
"organization"
]
},
"organizationName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"organizationIconColor": {
"type": "string",
"maxLength": 64
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 1024
},
"endpointSlug": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"pattern": "^[0-9a-z-]*$"
},
"expUserTokenCutoff": {
"type": "string",
"format": "date-time"
},
"endpointDefaultCors": {
"type": "boolean"
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
},
"cloudOnly": {
"type": "boolean",
"default": false
},
"description": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"blobUrlTTL": {
"type": "number",
"minimum": 3600,
"maximum": 604800
},
"summary": {
"type": "object",
"properties": {
"apiTokenCount": {
"type": "integer"
},
"certificateCount": {
"type": "integer"
},
"certificateAuthorityCount": {
"type": "integer"
},
"credentialCount": {
"type": "integer"
},
"dashCount": {
"type": "integer"
},
"dataTableCount": {
"type": "integer"
},
"deviceCount": {
"type": "integer"
},
"deviceRecipeCount": {
"type": "integer"
},
"eventCount": {
"type": "integer"
},
"experienceDomainCount": {
"type": "integer"
},
"experienceEndpointCount": {
"type": "integer"
},
"experienceGroupCount": {
"type": "integer"
},
"experienceSlugCount": {
"type": "integer"
},
"experienceUserCount": {
"type": "integer"
},
"experienceVersionCount": {
"type": "integer"
},
"experienceViewCount": {
"type": "integer"
},
"fileCount": {
"type": "integer"
},
"flowCount": {
"type": "integer"
},
"integrationCount": {
"type": "integer"
},
"keyCount": {
"type": "integer"
},
"notebookCount": {
"type": "integer"
},
"resourceJobCount": {
"type": "integer"
},
"webhookCount": {
"type": "integer"
},
"payloadCount": {
"title": "Payload Stats",
"description": "Schema for the result of a payload stats request",
"type": "object",
"properties": {
"dataTable": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceCommand": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceConnect": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceDisconnect": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceState": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"endpoint": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"event": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"flowError": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"integration": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"mqttIn": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"mqttOut": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"notebook": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"timer": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"virtualButton": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"webhook": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"resourceJob": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
}
}
},
"storageStats": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"size": {
"type": "integer"
}
}
},
"notebookStats": {
"type": "object",
"properties": {
"awaitingCompletion": {
"type": "integer"
},
"minutesThisPeriod": {
"type": "integer"
},
"runsThisPeriod": {
"type": "integer"
}
}
}
}
},
"ftueTracking": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"version": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"skipped",
"completed"
]
}
},
"required": [
"name",
"version",
"status"
],
"additionalProperties": false
},
"maxItems": 100
},
"archiveConfig": {
"type": "object",
"properties": {
"directory": {
"type": "string",
"maxLength": 255
},
"mode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"includeDevices": {
"type": "boolean",
"default": true
},
"includeEvents": {
"type": "boolean",
"default": false
},
"includeDataTables": {
"type": "boolean",
"default": false
},
"dataTablesMode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"dataTableIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"s3": {
"type": "object",
"properties": {
"bucket": {
"type": "string",
"maxLength": 255
},
"accessKeyId": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"secretAccessKey": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"region": {
"type": "string",
"maxLength": 128
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"credentialName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"gcs": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"keyJson": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"bucket": {
"type": "string",
"maxLength": 255
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"account": {
"type": "string",
"minLength": 3,
"maxLength": 24
},
"accountKey": {
"type": "string",
"maxLength": 255
},
"bucket": {
"type": "string",
"minLength": 3,
"maxLength": 63
}
},
"required": [
"bucket"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
```
### Example
```json
{
"id": "575ec8687ae143cd83dc4a97",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"ownerId": "575ed70c7ae143cd83dc4aa9",
"ownerType": "user",
"name": "My Application",
"description": "The is the best application description",
"summary": {
"deviceCount": 5,
"flowCount": 2,
"webhookCount": 0,
"eventCount": 0,
"keyCount": 1,
"deviceRecipeCount": 0
},
"archiveConfig": {
"s3": {
"bucket": "bucketName",
"accessKeyId": "awsAccessKey",
"secretAccessKey": "awsSecretKey",
"region": "us-west-1"
},
"mode": "all",
"deviceIds": [
"575ec8687ae143cd83dc4a95",
"575ec8687ae143cd83dc4a91"
]
}
}
```
## Application Apply Template Patch Schema
Schema for the body of an application template import request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"templateId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"email": {
"type": "string",
"format": "email",
"maxLength": 1024
},
"callbackUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
}
},
"required": [
"templateId"
],
"additionalProperties": false
}
```
### Example
```json
{
"templateId": "575ec8687ae143cd83dc4a97",
"email": "email@example.com"
}
```
## Application Certificate
Schema for a single Application Certificate
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationCertificateId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"certificateInfo": {
"type": "object",
"properties": {
"serialNumber": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"fingerprint": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"commonName": {
"type": "string",
"maxLength": 1024
},
"issuerName": {
"type": "string",
"maxLength": 1024
},
"notValidBefore": {
"type": "string",
"format": "date-time"
},
"notValidAfter": {
"type": "string",
"format": "date-time"
}
}
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
}
```
### Example
```json
{
"id": "5cd02a50df66feb0994c7196",
"applicationCertificateId": "5cd02a50df66feb0994c7196",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"status": "active",
"description": "An example certificate description",
"certificateInfo": {
"serialNumber": "ad:0e:ff:63:27:83:e5:3e:6b:a9:fb:57:0d:37:fc:e9",
"fingerprint": "FF:4A:88:5D:93:E7:FF:61:E4:72:94:EE:82:4B:56:B2:AB:71:38:06",
"commonName": "example.com",
"issuerName": "Example Issuer",
"notValidBefore": "2019-04-10T00:00:00.000Z",
"notValidAfter": "2020-04-10T00:00:00.000Z"
},
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
```
## Application Certificate Authorities
Schema for a collection of Application Certificate Authorities
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Application Certificate Authority",
"description": "Schema for a single Application Certificate Authority",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationCertificateAuthorityId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"caBundle": {
"type": "string",
"maxLength": 32767,
"minLength": 50
},
"caInfo": {
"type": "array",
"items": {
"type": "object",
"properties": {
"serialNumber": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"fingerprint": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"commonName": {
"type": "string",
"maxLength": 1024
},
"issuerName": {
"type": "string",
"maxLength": 1024
},
"notValidBefore": {
"type": "string",
"format": "date-time"
},
"notValidAfter": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
}
```
### Example
```json
{
"items": [
{
"id": "5cd02a7bdf66feb0994c7197",
"applicationCertificateAuthorityId": "5cd02a7bdf66feb0994c7197",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"status": "active",
"name": "my certificate authority",
"description": "An example certificate authority description",
"caBundle": "-----BEGIN CERTIFICATE-----\nMY_SSL_CERTIFICATE\n-----END CERTIFICATE-----",
"caInfo": [
{
"serialNumber": "ad:0e:ff:63:27:83:e5:3e:6b:a9:fb:57:0d:37:fc:e9",
"fingerprint": "FF:4A:88:5D:93:E7:FF:61:E4:72:94:EE:82:4B:56:B2:AB:71:38:06",
"commonName": "example.com",
"issuerName": "Example Issuer",
"notValidBefore": "2019-04-10T00:00:00.000Z",
"notValidAfter": "2020-04-10T00:00:00.000Z"
}
]
}
],
"count": 1,
"totalCount": 4,
"perPage": 1,
"page": 0,
"sortField": "key",
"sortDirection": "asc",
"applicationId": "575ec8687ae143cd83dc4a97"
}
```
## Application Certificate Authority
Schema for a single Application Certificate Authority
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationCertificateAuthorityId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"caBundle": {
"type": "string",
"maxLength": 32767,
"minLength": 50
},
"caInfo": {
"type": "array",
"items": {
"type": "object",
"properties": {
"serialNumber": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"fingerprint": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"commonName": {
"type": "string",
"maxLength": 1024
},
"issuerName": {
"type": "string",
"maxLength": 1024
},
"notValidBefore": {
"type": "string",
"format": "date-time"
},
"notValidAfter": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
```
### Example
```json
{
"id": "5cd02a7bdf66feb0994c7197",
"applicationCertificateAuthorityId": "5cd02a7bdf66feb0994c7197",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"status": "active",
"name": "my certificate authority",
"description": "An example certificate authority description",
"caBundle": "-----BEGIN CERTIFICATE-----\nMY_SSL_CERTIFICATE\n-----END CERTIFICATE-----",
"caInfo": [
{
"serialNumber": "ad:0e:ff:63:27:83:e5:3e:6b:a9:fb:57:0d:37:fc:e9",
"fingerprint": "FF:4A:88:5D:93:E7:FF:61:E4:72:94:EE:82:4B:56:B2:AB:71:38:06",
"commonName": "example.com",
"issuerName": "Example Issuer",
"notValidBefore": "2019-04-10T00:00:00.000Z",
"notValidAfter": "2020-04-10T00:00:00.000Z"
}
]
}
```
## Application Certificate Authority Patch
Schema for the body of an Application Certificate Authority modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"caBundle": {
"type": "string",
"maxLength": 32767,
"minLength": 50
}
},
"additionalProperties": false
}
```
### Example
```json
{
"status": "active",
"description": "An example updated authority description"
}
```
## Application Certificate Authority Post
Schema for the body of an Application Certificate Authority creation request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"caBundle": {
"type": "string",
"maxLength": 32767,
"minLength": 50
}
},
"required": [
"name",
"caBundle"
],
"additionalProperties": false
}
```
### Example
```json
{
"name": "my certificate authority",
"description": "An example new authority description",
"caBundle": "-----BEGIN CERTIFICATE-----\nMY_SSL_CERTIFICATE\n-----END CERTIFICATE-----"
}
```
## Application Certificate Patch
Schema for the body of an Application Certificate modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"certificate": {
"type": "string",
"maxLength": 32767,
"minLength": 50
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"status": "active",
"description": "An example updated certificate description"
}
```
## Application Certificate Post
Schema for the body of an Application Certificate creation request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"certificate": {
"type": "string",
"maxLength": 32767,
"minLength": 50
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
},
"required": [
"certificate"
],
"additionalProperties": false
}
```
### Example
```json
{
"description": "An example new certificate description",
"certificate": "-----BEGIN CERTIFICATE-----\nMY_SSL_CERTIFICATE\n-----END CERTIFICATE-----",
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
```
## Application Certificates
Schema for a collection of Application Certificates
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Application Certificate",
"description": "Schema for a single Application Certificate",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationCertificateId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"certificateInfo": {
"type": "object",
"properties": {
"serialNumber": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"fingerprint": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"commonName": {
"type": "string",
"maxLength": 1024
},
"issuerName": {
"type": "string",
"maxLength": 1024
},
"notValidBefore": {
"type": "string",
"format": "date-time"
},
"notValidAfter": {
"type": "string",
"format": "date-time"
}
}
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
}
```
### Example
```json
{
"items": [
{
"id": "5cd02a50df66feb0994c7196",
"applicationCertificateId": "5cd02a50df66feb0994c7196",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"status": "active",
"description": "An example certificate description",
"certificateInfo": {
"serialNumber": "ad:0e:ff:63:27:83:e5:3e:6b:a9:fb:57:0d:37:fc:e9",
"fingerprint": "FF:4A:88:5D:93:E7:FF:61:E4:72:94:EE:82:4B:56:B2:AB:71:38:06",
"commonName": "example.com",
"issuerName": "Example Issuer",
"notValidBefore": "2019-04-10T00:00:00.000Z",
"notValidAfter": "2020-04-10T00:00:00.000Z"
},
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
],
"count": 1,
"totalCount": 4,
"perPage": 1,
"page": 0,
"sortField": "key",
"sortDirection": "asc",
"applicationId": "575ec8687ae143cd83dc4a97"
}
```
## Success Dry Run
Schema for reporting a successful dry run of clone application
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
true
]
},
"requiresJob": {
"type": "boolean"
}
}
}
```
### Example
```json
{
"success": true,
"jobRequired": false
}
```
## Application Clone Post Schema
Schema for the body of an application clone request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"dryRun": {
"type": "boolean",
"default": false
},
"includeFiles": {
"type": "boolean",
"default": false
},
"includeDataTableRows": {
"type": "boolean",
"default": false
},
"includeDevices": {
"type": "boolean",
"default": false
},
"ownerId": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "null"
}
]
},
"ownerType": {
"type": "string",
"enum": [
"user",
"organization"
]
},
"email": {
"type": "string",
"format": "email",
"maxLength": 1024
},
"callbackUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"forceJob": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
```
### Example
```json
{
"includeFiles": true,
"includeDevices": true,
"ownerType": "organization",
"ownerId": "575ec8687ae143cd83dc4a98"
}
```
## Application Creation By Template Result
Schema for creating an application by template result
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"application": {
"title": "Application",
"description": "Schema for a single Application",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"appliedTemplateIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"ownerId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerType": {
"type": "string",
"enum": [
"user",
"organization"
]
},
"organizationName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"organizationIconColor": {
"type": "string",
"maxLength": 64
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 1024
},
"endpointSlug": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"pattern": "^[0-9a-z-]*$"
},
"expUserTokenCutoff": {
"type": "string",
"format": "date-time"
},
"endpointDefaultCors": {
"type": "boolean"
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
},
"cloudOnly": {
"type": "boolean",
"default": false
},
"description": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"blobUrlTTL": {
"type": "number",
"minimum": 3600,
"maximum": 604800
},
"summary": {
"type": "object",
"properties": {
"apiTokenCount": {
"type": "integer"
},
"certificateCount": {
"type": "integer"
},
"certificateAuthorityCount": {
"type": "integer"
},
"credentialCount": {
"type": "integer"
},
"dashCount": {
"type": "integer"
},
"dataTableCount": {
"type": "integer"
},
"deviceCount": {
"type": "integer"
},
"deviceRecipeCount": {
"type": "integer"
},
"eventCount": {
"type": "integer"
},
"experienceDomainCount": {
"type": "integer"
},
"experienceEndpointCount": {
"type": "integer"
},
"experienceGroupCount": {
"type": "integer"
},
"experienceSlugCount": {
"type": "integer"
},
"experienceUserCount": {
"type": "integer"
},
"experienceVersionCount": {
"type": "integer"
},
"experienceViewCount": {
"type": "integer"
},
"fileCount": {
"type": "integer"
},
"flowCount": {
"type": "integer"
},
"integrationCount": {
"type": "integer"
},
"keyCount": {
"type": "integer"
},
"notebookCount": {
"type": "integer"
},
"resourceJobCount": {
"type": "integer"
},
"webhookCount": {
"type": "integer"
},
"payloadCount": {
"title": "Payload Stats",
"description": "Schema for the result of a payload stats request",
"type": "object",
"properties": {
"dataTable": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceCommand": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceConnect": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceDisconnect": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceState": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"endpoint": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"event": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"flowError": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"integration": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"mqttIn": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"mqttOut": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"notebook": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"timer": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"virtualButton": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"webhook": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"resourceJob": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
}
}
},
"storageStats": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"size": {
"type": "integer"
}
}
},
"notebookStats": {
"type": "object",
"properties": {
"awaitingCompletion": {
"type": "integer"
},
"minutesThisPeriod": {
"type": "integer"
},
"runsThisPeriod": {
"type": "integer"
}
}
}
}
},
"ftueTracking": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"version": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"skipped",
"completed"
]
}
},
"required": [
"name",
"version",
"status"
],
"additionalProperties": false
},
"maxItems": 100
},
"archiveConfig": {
"type": "object",
"properties": {
"directory": {
"type": "string",
"maxLength": 255
},
"mode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"includeDevices": {
"type": "boolean",
"default": true
},
"includeEvents": {
"type": "boolean",
"default": false
},
"includeDataTables": {
"type": "boolean",
"default": false
},
"dataTablesMode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"dataTableIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"s3": {
"type": "object",
"properties": {
"bucket": {
"type": "string",
"maxLength": 255
},
"accessKeyId": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"secretAccessKey": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"region": {
"type": "string",
"maxLength": 128
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"credentialName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"gcs": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"keyJson": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"bucket": {
"type": "string",
"maxLength": 255
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"account": {
"type": "string",
"minLength": 3,
"maxLength": 24
},
"accountKey": {
"type": "string",
"maxLength": 255
},
"bucket": {
"type": "string",
"minLength": 3,
"maxLength": 63
}
},
"required": [
"bucket"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
}
},
"validationErrors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"application": {
"id": "575ec8687ae143cd83dc4a98",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"ownerId": "575ed70c7ae143cd83dc4aa9",
"ownerType": "user",
"name": "My Application Cloned",
"description": "The is the best application description",
"summary": {
"deviceCount": 5,
"flowCount": 2,
"webhookCount": 0,
"eventCount": 0,
"keyCount": 1,
"deviceRecipeCount": 0
},
"archiveConfig": {
"s3": {
"bucket": "bucketName",
"accessKeyId": "awsAccessKey",
"secretAccessKey": "awsSecretKey",
"region": "us-west-1"
},
"mode": "all",
"deviceIds": [
"575ec8687ae143cd83dc4a95",
"575ec8687ae143cd83dc4a91"
]
}
}
}
```
## Application Dashboard Post
Schema for the body of an Application scoped Dashboard creation request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"blocks": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"application-list"
]
},
"config": {
"type": "object",
"properties": {
"filter": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"bar"
]
},
"config": {
"type": "object",
"properties": {
"realTime": {
"type": "boolean"
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"xAxisFormat": {
"type": "string",
"maxLength": 255
},
"xAxisLabel": {
"type": "string",
"maxLength": 255
},
"xAxisMax": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"xAxisMin": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"segments": {
"type": "array",
"maxItems": 255,
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"color": {
"type": "string",
"maxLength": 64
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"label": {
"type": "string",
"maxLength": 255
},
"expression": {
"type": "string",
"maxLength": 255
},
"yAxisLabel": {
"type": "string",
"maxLength": 255
},
"lineWeight": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"detectDataGaps": {
"type": "boolean"
},
"graphType": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"custom-chart",
"custom-html"
]
},
"config": {
"type": "object",
"properties": {
"configuration": {
"oneOf": [
{
"type": "object",
"properties": {
"headContent": {
"type": "string",
"maxLength": 32767
},
"bodyContent": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
},
{
"type": "string",
"maxLength": 32767
}
]
},
"segments": {
"type": "array",
"maxItems": 100,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"queryType": {
"type": "string",
"enum": [
"time-series"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"resolution": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
},
{
"type": "string",
"maxLength": 255
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"queryType": {
"type": "string",
"enum": [
"gauge"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"queryType": {
"type": "string",
"enum": [
"data-table"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"dataTableId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"query": {
"type": "string",
"maxLength": 32767
},
"queryMode": {
"type": "string",
"enum": [
"$or",
"$and",
"advanced"
]
},
"sortColumn": {
"type": "string",
"maxLength": 255
},
"sortDirection": {
"type": "string",
"maxLength": 255
},
"limit": {
"type": "string",
"maxLength": 255
},
"offset": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"queryType": {
"type": "string",
"enum": [
"device-info"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"attributes": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
}
]
},
"excludeConnectionInfo": {
"type": "boolean"
},
"sortField": {
"type": "string",
"maxLength": 255
},
"sortDirection": {
"type": "string",
"maxLength": 255
},
"page": {
"type": "string",
"maxLength": 255
},
"perPage": {
"type": "string",
"maxLength": 255
},
"query": {
"type": "string",
"maxLength": 32767
},
"compositeStateType": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"vegaVersion": {
"type": "string",
"enum": [
"vegaLite2",
"vegaLite3",
"vegaLite4",
"vegaLite5",
"vega4",
"vega5"
]
},
"tooltipEventSubscribe": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"dashboard-list"
]
},
"config": {
"type": "object",
"properties": {
"filter": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"data-table"
]
},
"config": {
"type": "object",
"properties": {
"dataTableId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultSortColumn": {
"type": "string",
"maxLength": 255
},
"defaultSortDirection": {
"oneOf": [
{
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
{
"type": "string",
"minLength": 4,
"maxLength": 255,
"pattern": ".*{{.+}}.*"
}
]
},
"defaultLimit": {
"type": "string",
"maxLength": 255
},
"defaultOffset": {
"type": "string",
"maxLength": 255
},
"query": {
"type": "string",
"maxLength": 32767
},
"queryMode": {
"type": "string",
"enum": [
"$or",
"$and",
"advanced"
]
},
"columns": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"type": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
{
"type": "string",
"enum": [
"$custom"
]
}
]
},
"headerTemplate": {
"type": "string",
"maxLength": 1024
},
"rowTemplate": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"device-count"
]
},
"config": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"query": {
"type": "string",
"maxLength": 32767
}
},
"required": [
"id",
"query"
],
"additionalProperties": false
}
},
"conditions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"defaultCondition": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"label": {
"type": "string",
"maxLength": 32767
},
"value": {
"type": "string",
"maxLength": 32767
}
},
"required": [
"color"
],
"additionalProperties": false
}
},
"required": [
"segments",
"defaultCondition"
],
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"device-list"
]
},
"config": {
"type": "object",
"properties": {
"additionalAttributes": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
}
]
},
"excludeConnectionInfo": {
"type": "boolean"
},
"deviceLinkNewWindow": {
"type": "boolean"
},
"deviceLinkType": {
"type": "string",
"enum": [
"custom",
"default"
]
},
"deviceLinkUrl": {
"type": "string",
"maxLength": 2048
},
"match": {
"type": "string",
"enum": [
"unfiltered",
"all",
"any"
]
},
"showPublicFilter": {
"type": "boolean"
},
"sortField": {
"type": "string",
"enum": [
"id",
"creationDate",
"lastUpdated",
"name"
]
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"filter": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "object",
"properties": {
"ids": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"tags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"searchParam": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
},
"query": {
"type": "string",
"maxLength": 32767
},
"columns": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"type": {
"type": "string",
"enum": [
"id",
"connectionStatus",
"attribute",
"tag",
"name",
"custom",
"created",
"updated"
]
},
"source": {
"type": "string",
"maxLength": 255
},
"headerTemplate": {
"type": "string",
"maxLength": 1024
},
"rowTemplate": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"device-log"
]
},
"config": {
"type": "object",
"properties": {
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"includeDeviceInfo": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"device-state-table"
]
},
"config": {
"type": "object",
"properties": {
"attributes": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"sortDirection": {
"type": "integer",
"minimum": -1,
"maximum": 1
},
"sortIndex": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"columns": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"headerTemplate": {
"type": "string",
"maxLength": 1024
},
"id": {
"type": "string",
"maxLength": 48
},
"rowTemplate": {
"type": "string",
"maxLength": 32767
},
"type": {
"type": "string",
"enum": [
"deviceTags",
"deviceId",
"deviceName",
"timestamp",
"attribute"
]
},
"attribute": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"event-list"
]
},
"config": {
"type": "object",
"properties": {
"allowUpdates": {
"type": "boolean"
},
"query": {
"type": "string",
"maxLength": 32767
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"sortField": {
"type": "string",
"maxLength": 255
},
"filter": {
"type": "string",
"maxLength": 255
},
"eventState": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
},
{
"type": "object",
"additionalProperties": false
}
]
},
"columnErrors": {
"type": "object",
"additionalProperties": false
},
"columns": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"selectedTag": {
"type": "string",
"maxLength": 255
},
"type": {
"type": "string",
"enum": [
"level",
"subject",
"subjectWithMessage",
"creationDate",
"creationDateWithSource",
"lastUpdatedDate",
"lastUpdatedDateWithSource",
"id",
"state",
"tag",
"deviceName",
"sourceId",
"custom"
]
},
"headerTemplate": {
"type": "string",
"maxLength": 1024
},
"rowTemplate": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"gauge"
]
},
"config": {
"type": "object",
"properties": {
"realTime": {
"type": "boolean"
},
"displayAsPercentage": {
"type": "boolean"
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"gaugeMax": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"gaugeMin": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"gaugeType": {
"type": "string",
"enum": [
"battery",
"dial",
"number",
"tank",
"thermometer"
]
},
"precision": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"precisionType": {
"type": "string",
"enum": [
"floating",
"significant"
]
},
"segment": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"color": {
"type": "string",
"maxLength": 64
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"label": {
"type": "string",
"maxLength": 255
},
"expression": {
"type": "string",
"maxLength": 255
},
"yAxisLabel": {
"type": "string",
"maxLength": 255
},
"lineWeight": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"detectDataGaps": {
"type": "boolean"
},
"graphType": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
"conditions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"graph"
]
},
"config": {
"type": "object",
"properties": {
"realTime": {
"type": "boolean"
},
"hideLegend": {
"type": "boolean"
},
"disallowUserSelectedDuration": {
"type": "boolean"
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"resolution": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
},
{
"type": "string",
"maxLength": 255
}
]
},
"recharts": {
"type": "boolean"
},
"displayType": {
"type": "string",
"enum": [
"stick",
"line"
]
},
"segments": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"color": {
"type": "string",
"maxLength": 64
},
"cumulative": {
"type": "boolean"
},
"detectDataGaps": {
"type": "boolean"
},
"expression": {
"type": "string",
"maxLength": 255
},
"graphType": {
"type": "string",
"enum": [
"area",
"bar",
"line"
]
},
"label": {
"type": "string",
"maxLength": 255
},
"yAxisFormat": {
"type": "string",
"maxLength": 255
},
"yAxisLabel": {
"type": "string",
"maxLength": 255
},
"yAxisMax": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"yAxisMin": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"yAxisId": {
"type": "string",
"maxLength": 48
},
"lineType": {
"type": "string",
"enum": [
"monotone",
"step",
"stepAfter",
"linear",
"stepBefore"
]
},
"lineWeight": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"dotWeight": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"yAxes": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 255
},
"position": {
"type": "string",
"enum": [
"left",
"right",
"hidden"
],
"default": "left"
},
"min": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"max": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"format": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false,
"required": [
"id"
]
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"heatmap"
]
},
"config": {
"type": "object",
"properties": {
"additionalAttributes": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
}
]
},
"attribute": {
"type": "string",
"maxLength": 255
},
"centerOnDataPoints": {
"type": "boolean"
},
"defaultBearing": {
"type": "number"
},
"defaultCenter": {
"type": "string",
"maxLength": 255
},
"defaultPitch": {
"type": "number"
},
"defaultZoom": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"locationTagKey": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
{
"type": "string",
"minLength": 4,
"maxLength": 255,
"pattern": ".*{{.+}}.*"
}
]
},
"mapStyle": {
"type": "string",
"enum": [
"normal",
"satellite"
]
},
"query": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"iframe"
]
},
"config": {
"type": "object",
"properties": {
"url": {
"type": "string",
"maxLength": 2048
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"image"
]
},
"config": {
"type": "object",
"properties": {
"bgColor": {
"type": "string",
"maxLength": 64
},
"imageLinkNewWindow": {
"type": "boolean"
},
"imageLinkUrl": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"imageSource": {
"type": "string",
"enum": [
"static",
"attribute"
]
},
"deviceId": {
"type": "string",
"maxLength": 255
},
"attribute": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"image-overlay"
]
},
"config": {
"type": "object",
"properties": {
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"backgroundColor": {
"type": "string",
"maxLength": 64
},
"defaultZoom": {
"type": "number"
},
"disableZoom": {
"type": "boolean"
},
"segments": {
"type": "array",
"maxItems": 300,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"queryType": {
"type": "string",
"enum": [
"gauge"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
}
},
"additionalProperties": false
}
]
}
},
"overlays": {
"type": "array",
"maxItems": 100,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"indicator",
"label",
"image"
]
},
"size": {
"type": "string",
"enum": [
"small",
"medium",
"large"
]
},
"position": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"popupTemplate": {
"type": "string",
"maxLength": 32767
},
"conditions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"defaultCondition": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"required": [
"type",
"position",
"size",
"defaultCondition"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"value"
]
},
"size": {
"type": "string",
"enum": [
"small",
"medium",
"large"
]
},
"position": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"popupTemplate": {
"type": "string",
"maxLength": 32767
},
"conditions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"defaultCondition": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
},
"valueTemplate": {
"type": "string",
"maxLength": 255
}
},
"required": [
"type",
"position",
"size",
"defaultCondition"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"bar"
]
},
"size": {
"type": "string",
"enum": [
"small",
"medium",
"large"
]
},
"position": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"popupTemplate": {
"type": "string",
"maxLength": 32767
},
"conditions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"defaultCondition": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
},
"min": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"max": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"backgroundColor": {
"type": "string",
"maxLength": 64
},
"valueTemplate": {
"type": "string",
"maxLength": 255
},
"length": {
"type": "integer",
"minimum": 1,
"maximum": 10
},
"orientation": {
"type": "string",
"enum": [
"horizontal",
"vertical"
]
}
},
"required": [
"type",
"position",
"size",
"defaultCondition"
],
"additionalProperties": false
}
]
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height",
"config"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"indicator"
]
},
"config": {
"type": "object",
"properties": {
"realTime": {
"type": "boolean"
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"segments": {
"type": "array",
"maxItems": 255,
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"color": {
"type": "string",
"maxLength": 64
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"label": {
"type": "string",
"maxLength": 255
},
"expression": {
"type": "string",
"maxLength": 255
},
"yAxisLabel": {
"type": "string",
"maxLength": 255
},
"lineWeight": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"detectDataGaps": {
"type": "boolean"
},
"graphType": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"conditions": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"defaultCondition": {
"type": "object",
"properties": {
"color": {
"type": "string",
"maxLength": 64
},
"id": {
"type": "string",
"maxLength": 48
},
"label": {
"type": "string",
"maxLength": 32767
},
"condition": {
"type": "string",
"maxLength": 2048
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"shape": {
"type": "string",
"enum": [
"circle",
"square",
"triangle-down",
"triangle-up",
"octagon"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"input"
]
},
"config": {
"type": "object",
"properties": {
"defaultMode": {
"type": "string",
"enum": [
"unlocked",
"locked"
]
},
"controls": {
"type": "array",
"maxItems": 100,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"range"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"templateId": {
"type": "string",
"maxLength": 64
},
"label": {
"type": "string",
"maxLength": 512
},
"color": {
"type": "string",
"maxLength": 64
},
"grid": {
"type": "object",
"properties": {
"h": {
"type": "number"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"defaultQuery": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"max": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"min": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"step": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"defaultValue": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"toggle"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"templateId": {
"type": "string",
"maxLength": 64
},
"label": {
"type": "string",
"maxLength": 512
},
"color": {
"type": "string",
"maxLength": 64
},
"grid": {
"type": "object",
"properties": {
"h": {
"type": "number"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"defaultQuery": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"defaultValue": {
"type": "boolean"
},
"includeLabel": {
"type": "boolean"
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"templateId": {
"type": "string",
"maxLength": 64
},
"label": {
"type": "string",
"maxLength": 512
},
"grid": {
"type": "object",
"properties": {
"h": {
"type": "number"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"defaultQuery": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"defaultValue": {
"type": "string",
"maxLength": 2048
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"select"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"templateId": {
"type": "string",
"maxLength": 64
},
"label": {
"type": "string",
"maxLength": 512
},
"grid": {
"type": "object",
"properties": {
"h": {
"type": "number"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"defaultQuery": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"defaultValue": {
"type": "string",
"maxLength": 255
},
"options": {
"type": "array",
"maxItems": 500,
"items": {
"type": "object",
"properties": {
"value": {
"type": "string",
"maxLength": 255
},
"label": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"help"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"templateId": {
"type": "string",
"maxLength": 64
},
"grid": {
"type": "object",
"properties": {
"h": {
"type": "number"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"help": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"button"
]
},
"action": {
"type": "string",
"enum": [
"workflow",
"command"
]
},
"id": {
"type": "string",
"maxLength": 48
},
"templateId": {
"type": "string",
"maxLength": 64
},
"label": {
"type": "string",
"maxLength": 512
},
"grid": {
"type": "object",
"properties": {
"h": {
"type": "number"
},
"w": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"color": {
"type": "string",
"maxLength": 64
},
"payload": {
"type": "string",
"maxLength": 32767
},
"buttonId": {
"type": "string",
"maxLength": 255
},
"workflowId": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "null"
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"commandName": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"map"
]
},
"config": {
"type": "object",
"properties": {
"additionalAttributes": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
}
]
},
"attribute": {
"type": "string",
"maxLength": 255
},
"centerOnDataPoints": {
"type": "boolean"
},
"clusterPoints": {
"type": "boolean"
},
"compositeResult": {
"type": "boolean"
},
"defaultBearing": {
"type": "number"
},
"defaultCenter": {
"type": "string",
"maxLength": 255
},
"defaultPitch": {
"type": "number"
},
"defaultZoom": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"endColor": {
"type": "string",
"maxLength": 64
},
"iconTemplate": {
"type": "string",
"maxLength": 73727
},
"includeArrows": {
"type": "boolean"
},
"includeLines": {
"type": "boolean"
},
"locationTagKey": {
"oneOf": [
{
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
{
"type": "string",
"minLength": 4,
"maxLength": 255,
"pattern": ".*{{.+}}.*"
}
]
},
"mapStyle": {
"type": "string",
"enum": [
"normal",
"satellite"
]
},
"pinMode": {
"type": "string",
"enum": [
"simple",
"advanced"
]
},
"popupTemplate": {
"type": "string",
"maxLength": 32767
},
"query": {
"type": "string",
"maxLength": 32767
},
"resizedPins": {
"type": "boolean"
},
"resolution": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
},
{
"type": "string",
"maxLength": 255
}
]
},
"startColor": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"open-event-indicator"
]
},
"config": {
"type": "object",
"properties": {
"allowUpdates": {
"type": "boolean"
},
"query": {
"type": "string",
"maxLength": 32767
},
"filter": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"pie"
]
},
"config": {
"type": "object",
"properties": {
"realTime": {
"type": "boolean"
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"percentFormat": {
"type": "string",
"maxLength": 255
},
"valueFormat": {
"type": "string",
"maxLength": 255
},
"segments": {
"type": "array",
"maxItems": 255,
"items": {
"type": "object",
"properties": {
"attribute": {
"type": "string",
"maxLength": 255
},
"aggregation": {
"oneOf": [
{
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
{
"type": "object",
"properties": {
"type": {
"oneOf": [
{
"type": "string",
"enum": [
"FIRST",
"LAST",
"COUNT",
"MAX",
"MIN",
"MEDIAN",
"MEAN",
"SUM",
"STD_DEV"
]
},
{
"type": "string",
"enum": [
"NONE"
]
}
]
},
"options": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"type"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TIMEATVALUE"
]
},
"options": {
"type": "object",
"properties": {
"value": {
"oneOf": [
{
"type": "string",
"maxLength": 255
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"additionalProperties": false,
"required": [
"value"
]
}
},
"additionalProperties": false,
"required": [
"type",
"options"
]
}
]
},
"color": {
"type": "string",
"maxLength": 64
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"label": {
"type": "string",
"maxLength": 255
},
"expression": {
"type": "string",
"maxLength": 255
},
"yAxisLabel": {
"type": "string",
"maxLength": 255
},
"lineWeight": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"detectDataGaps": {
"type": "boolean"
},
"graphType": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"position-chart"
]
},
"config": {
"type": "object",
"properties": {
"additionalAttributes": {
"oneOf": [
{
"type": "null"
},
{
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
}
]
},
"centerOnDataPoints": {
"type": "boolean"
},
"compositeResult": {
"type": "boolean"
},
"coordinateA": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"coordinateB": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"defaultCenter": {
"type": "string",
"maxLength": 255
},
"defaultZoom": {
"oneOf": [
{
"type": "number"
},
{
"type": "string",
"maxLength": 128
}
]
},
"disableZoom": {
"type": "boolean"
},
"deviceIds": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"deviceTags": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 255
},
"value": {
"type": "string",
"maxLength": 255
},
"fromCtx": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"duration": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"enum": [
"{{dashboard.duration}}"
]
}
]
},
"endColor": {
"type": "string",
"maxLength": 64
},
"iconTemplate": {
"type": "string",
"maxLength": 73727
},
"imageUrl": {
"type": "string",
"maxLength": 32767
},
"includeArrows": {
"type": "boolean"
},
"includeLines": {
"type": "boolean"
},
"pinMode": {
"type": "string",
"enum": [
"simple",
"advanced"
]
},
"pixelA": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"pixelB": {
"type": "string",
"minLength": 3,
"maxLength": 255
},
"popupTemplate": {
"type": "string",
"maxLength": 32767
},
"resizedPins": {
"type": "boolean"
},
"resolution": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "null"
},
{
"type": "string",
"maxLength": 255
}
]
},
"startColor": {
"type": "string",
"maxLength": 64
},
"xAttribute": {
"type": "string",
"maxLength": 255
},
"yAttribute": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"section-header"
]
},
"config": {
"type": "object",
"properties": {
"title": {
"type": "string",
"maxLength": 255
},
"content": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"title": {
"type": "string",
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"startX": {
"type": "number"
},
"startY": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"blockType": {
"type": "string",
"enum": [
"workflow-list"
]
},
"config": {
"type": "object",
"properties": {
"filter": {
"type": "string",
"maxLength": 255
},
"includeCloud": {
"type": "boolean"
},
"includeEdge": {
"type": "boolean"
},
"includeEmbedded": {
"type": "boolean"
},
"includeExperience": {
"type": "boolean"
},
"experienceVersion": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
}
},
"required": [
"blockType",
"startX",
"startY",
"width",
"height"
],
"additionalProperties": false
}
]
}
},
"description": {
"type": "string",
"maxLength": 32767
},
"refreshRate": {
"type": "number",
"minimum": 5,
"maximum": 600
},
"duration": {
"type": "integer",
"minimum": 1
},
"resolution": {
"type": "integer",
"minimum": 1
},
"defaultTheme": {
"type": "string",
"enum": [
"dark",
"light"
]
},
"reportConfigs": {
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 48
},
"cron": {
"type": "string",
"maxLength": 255
},
"toEmail": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"type": "string",
"format": "email",
"maxLength": 1024
}
},
"callbackUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"subject": {
"type": "string",
"maxLength": 255
},
"message": {
"type": "string",
"maxLength": 32767
},
"theme": {
"type": "string",
"enum": [
"dark",
"light"
]
},
"timezone": {
"type": "string",
"maxLength": 255
},
"locale": {
"type": "string",
"maxLength": 5
},
"ctx": {
"title": "Dashboard Context Instance",
"description": "Schema for a dashboard context instance",
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"oneOf": [
{
"type": "string",
"maxLength": 32767
},
{
"type": "number"
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
}
]
}
},
"additionalProperties": false
},
"branded": {
"type": "boolean"
}
},
"additionalProperties": false,
"anyOf": [
{
"required": [
"cron",
"toEmail"
]
},
{
"required": [
"cron",
"callbackUrl"
]
}
]
}
},
"public": {
"type": "boolean"
},
"password": {
"type": [
"string",
"null"
]
},
"contextConfiguration": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"type": {
"type": "string",
"enum": [
"deviceAttribute"
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultValue": {
"type": "string",
"maxLength": 32767
},
"validationEnabled": {
"type": "boolean"
},
"validationConfig": {
"type": "object",
"properties": {
"attributes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"maxItems": 100
}
},
"additionalProperties": false
}
},
"required": [
"name",
"type",
"defaultValue"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"type": {
"type": "string",
"enum": [
"deviceId"
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultValue": {
"type": "string",
"maxLength": 32767
},
"validationEnabled": {
"type": "boolean"
},
"validationConfig": {
"type": "object",
"properties": {
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"query": {
"type": [
"string",
"null"
],
"maxLength": 8192
},
"includeFullDevice": {
"type": "boolean"
}
},
"additionalProperties": false
}
},
"required": [
"name",
"type",
"defaultValue"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"type": {
"type": "string",
"enum": [
"deviceTag"
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultValue": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"validationEnabled": {
"type": "boolean"
},
"validationConfig": {
"type": "object",
"properties": {
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
}
},
"additionalProperties": false
}
},
"required": [
"name",
"type",
"defaultValue"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"type": {
"type": "string",
"enum": [
"number"
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultValue": {
"type": [
"number",
"string"
]
},
"validationEnabled": {
"type": "boolean"
},
"validationConfig": {
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
}
},
"additionalProperties": false
}
},
"required": [
"name",
"type",
"defaultValue"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"type": {
"type": "string",
"enum": [
"string"
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultValue": {
"type": "string",
"maxLength": 32767
},
"validationEnabled": {
"type": "boolean"
},
"validationConfig": {
"type": "object",
"properties": {
"regExp": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
}
},
"required": [
"name",
"type",
"defaultValue"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"type": {
"type": "string",
"enum": [
"experienceUser"
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"defaultValue": {
"type": "string",
"maxLength": 32767
},
"validationEnabled": {
"type": "boolean"
},
"validationConfig": {
"type": "object",
"properties": {
"experienceGroupIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
}
},
"additionalProperties": false
}
},
"required": [
"name",
"type",
"defaultValue"
],
"additionalProperties": false
}
]
},
"maxItems": 100
}
},
"additionalProperties": false,
"required": [
"name"
]
}
```
### Example
```json
{
"name": "My New Dashboard",
"public": false
}
```
## Application Export Post Schema
Schema for the body of an application export request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"includeFiles": {
"type": "boolean",
"default": false
},
"includeDataTableRows": {
"type": "boolean",
"default": false
},
"includeDevices": {
"type": "boolean",
"default": false
},
"email": {
"type": "string",
"format": "email",
"maxLength": 1024
},
"callbackUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"forceJob": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
```
### Example
```json
{
"includeFiles": true,
"includeDevices": true,
"email": "test@example.com"
}
```
## Application Export Result
Schema for an application export result
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"url": {
"type": "string"
}
},
"additionalProperties": false
}
```
### Example
```json
{
"url": "https://example.com/applicationExport.zip"
}
```
## Application Global Patch
Schema for the body of an Application Global modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 32767
},
"cloudOnly": {
"type": "boolean"
},
"description": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"key"
]
}
}
```
### Example
```json
[
{
"key": "keyHere",
"description": "Description of my application global",
"json": "\"my json data here\"",
"cloudOnly": true
},
{
"key": "anotherKey",
"json": "\"more json\"",
"cloudOnly": false
}
]
```
## Application Import Executions
Schema for a list Application import executions
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"importSourceType": {
"type": "string",
"enum": [
"importBundle",
"importUrl",
"fromApplication"
]
},
"importExecutionId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"fromApplicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"runQueuedAt": {
"type": "string",
"format": "date-time"
},
"runStartedAt": {
"type": "string",
"format": "date-time"
},
"runCompletedAt": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"queued",
"inProgress",
"completed",
"errored",
"failed"
]
},
"dryRun": {
"type": "boolean"
},
"conflictBehavior": {
"type": "string",
"enum": [
"create",
"error",
"retain",
"replace"
],
"default": "create"
},
"callbackUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"email": {
"type": "string",
"format": "email",
"maxLength": 1024
},
"include": {
"type": "array",
"items": {
"enum": [
"ApplicationCertificateAuthority",
"Dashboard",
"DataTableRow",
"DataTable",
"DeviceRecipe",
"Device",
"ExperienceDevelopConfig",
"ExperienceEndpoint",
"ExperienceFlowVersion",
"ExperienceGroup",
"ExperienceUser",
"ExperienceVersion",
"ExperienceView",
"File",
"FlowVersion",
"Flow",
"Global",
"Integration",
"Notebook",
"Webhook",
"ResourceJob"
]
},
"uniqueItems": true
},
"jobId": {
"type": "string",
"maxLength": 21
},
"sourceId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"sourceType": {
"type": "string",
"enum": [
"flow",
"user",
"device",
"apiToken",
"notebook"
]
},
"error": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"message": {
"type": "string"
}
}
},
"dryRunResults": {
"type": "object",
"properties": {
"limitErrors": {
"type": "array",
"items": {
"enum": [
"ApplicationCertificateAuthority",
"Dashboard",
"DataTableRow",
"DataTable",
"DeviceRecipe",
"Device",
"ExperienceDevelopConfig",
"ExperienceEndpoint",
"ExperienceFlowVersion",
"ExperienceGroup",
"ExperienceUser",
"ExperienceVersion",
"ExperienceView",
"File",
"FlowVersion",
"Flow",
"Global",
"Integration",
"Notebook",
"Webhook",
"ResourceJob"
]
},
"uniqueItems": true
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 1024
}
}
},
"validationErrors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"name": {
"type": "string"
},
"id": {
"type": "string"
},
"message": {
"type": "string"
}
}
}
},
"importedFileUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"importUrl": {
"type": "string",
"format": "uri",
"maxLength": 1024
}
}
}
}
```
### Example
```json
[
{
"importExecutionId": "575ec76c7ae143cd83dc4a96",
"id": "575ec76c7ae143cd83dc4a96",
"importSourceType": "importBundle",
"status": "completed",
"conflictBehavior": "create",
"dryRun": false,
"email": "test@losant.com",
"include": [
"ExperienceUser",
"ExperienceEndpoint",
"ExperienceGroup",
"ExperienceVersion",
"ExperienceView"
],
"applicationId": "575ec8687ae143cd83dc4a97",
"sourceId": "575ec8687ae143cd83dc4a96",
"sourceType": "user",
"runCompletedAt": "2016-06-13T04:00:00.000Z",
"importedFileUrl": "https://example.com/my/filename.zip",
"runStartedAt": "2016-06-13T04:00:00.000Z"
}
]
```
## Application Key
Schema for a single Application Key
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationKeyId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"key": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"description": {
"type": "string",
"maxLength": 32767
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
}
```
### Example
```json
{
"id": "575ec76c7ae143cd83dc4a96",
"applicationKeyId": "575ec76c7ae143cd83dc4a96",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"key": "this_would_be_the_key",
"status": "active",
"description": "An example key description",
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
```
## Application Key Patch
Schema for the body of an Application Key modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"description": {
"type": "string",
"maxLength": 32767
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"status": "active",
"description": "An example updated key description"
}
```
## Application Key Post
Schema for the body of an Application Key creation request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"description": {
"type": "string",
"maxLength": 32767
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"description": "An example new key description",
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
```
## Application Key Post Response
Schema for a response of Application Key creation
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationKeyId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"key": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"secret": {
"type": "string"
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"description": {
"type": "string",
"maxLength": 32767
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
}
```
### Example
```json
{
"id": "575ec76c7ae143cd83dc4a96",
"applicationKeyId": "575ec76c7ae143cd83dc4a96",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"key": "this_would_be_the_key",
"status": "active",
"secret": "shhhSecret",
"description": "An example key description",
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
```
## Application Keys
Schema for a collection of Application Keys
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Application Key",
"description": "Schema for a single Application Key",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationKeyId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"key": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"active",
"inactive"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"description": {
"type": "string",
"maxLength": 32767
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
}
```
### Example
```json
{
"items": [
{
"id": "575ec76c7ae143cd83dc4a96",
"applicationKeyId": "575ec76c7ae143cd83dc4a96",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"key": "this_would_be_the_key",
"status": "active",
"description": "An example key description",
"filterType": "all",
"pubTopics": [],
"subTopics": []
}
],
"count": 1,
"totalCount": 4,
"perPage": 1,
"page": 0,
"sortField": "key",
"sortDirection": "asc",
"applicationId": "575ec8687ae143cd83dc4a97"
}
```
## Application Patch
Schema for the body of an Application modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 1024
},
"endpointSlug": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"pattern": "^[0-9a-z-]*$"
},
"expUserTokenCutoff": {
"type": "string",
"format": "date-time"
},
"endpointDefaultCors": {
"type": "boolean"
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
},
"cloudOnly": {
"type": "boolean",
"default": false
},
"description": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"ftueTracking": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"version": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"skipped",
"completed"
]
}
},
"required": [
"name",
"version",
"status"
],
"additionalProperties": false
},
"maxItems": 100
},
"archiveConfig": {
"type": "object",
"properties": {
"directory": {
"type": "string",
"maxLength": 255
},
"mode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"includeDevices": {
"type": "boolean",
"default": true
},
"includeEvents": {
"type": "boolean",
"default": false
},
"includeDataTables": {
"type": "boolean",
"default": false
},
"dataTablesMode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"dataTableIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"s3": {
"type": "object",
"properties": {
"bucket": {
"type": "string",
"maxLength": 255
},
"accessKeyId": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"secretAccessKey": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"region": {
"type": "string",
"maxLength": 128
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"credentialName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"gcs": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"keyJson": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"bucket": {
"type": "string",
"maxLength": 255
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"account": {
"type": "string",
"minLength": 3,
"maxLength": 24
},
"accountKey": {
"type": "string",
"maxLength": 255
},
"bucket": {
"type": "string",
"minLength": 3,
"maxLength": 63
}
},
"required": [
"bucket"
],
"additionalProperties": false
}
},
"additionalProperties": false
},
"blobUrlTTL": {
"type": "number",
"minimum": 3600,
"maximum": 604800
}
},
"additionalProperties": false
}
```
### Example
```json
{
"name": "My Updated Application",
"description": "Description of my updated application"
}
```
## Application Post
Schema for the body of an Application creation request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"orgId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationTemplateId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 1024
},
"appliedTemplateIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"endpointSlug": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"pattern": "^[0-9a-z-]*$"
},
"expUserTokenCutoff": {
"type": "string",
"format": "date-time"
},
"endpointDefaultCors": {
"type": "boolean"
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
},
"cloudOnly": {
"type": "boolean",
"default": false
},
"description": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"archiveConfig": {
"type": "object",
"properties": {
"directory": {
"type": "string",
"maxLength": 255
},
"mode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"includeDevices": {
"type": "boolean",
"default": true
},
"includeEvents": {
"type": "boolean",
"default": false
},
"includeDataTables": {
"type": "boolean",
"default": false
},
"dataTablesMode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"dataTableIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"s3": {
"type": "object",
"properties": {
"bucket": {
"type": "string",
"maxLength": 255
},
"accessKeyId": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"secretAccessKey": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"region": {
"type": "string",
"maxLength": 128
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"credentialName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"gcs": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"keyJson": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"bucket": {
"type": "string",
"maxLength": 255
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"account": {
"type": "string",
"minLength": 3,
"maxLength": 24
},
"accountKey": {
"type": "string",
"maxLength": 255
},
"bucket": {
"type": "string",
"minLength": 3,
"maxLength": 63
}
},
"required": [
"bucket"
],
"additionalProperties": false
}
},
"additionalProperties": false
},
"blobUrlTTL": {
"type": "number",
"minimum": 3600,
"maximum": 604800
}
},
"additionalProperties": false,
"required": [
"name"
]
}
```
### Example
```json
{
"name": "My New Application",
"description": "Description of my new application"
}
```
## Application Readme
Schema for an Application Readme
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"lastUpdatedById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"lastUpdatedByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"content": {
"type": "string"
}
}
}
```
### Example
```json
{
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"lastUpdatedById": "575ed70c7ae143cd83dc4aa9",
"lastUpdatedByType": "user",
"content": "The readme content"
}
```
## Application Readme Patch
Schema for the body of an Application Readme modification request
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"content": {
"type": "string",
"maxLength": 131072
}
},
"additionalProperties": false
}
```
### Example
```json
{
"content": "The new readme content"
}
```
## Application Search Result
Results of a search of an application's resources
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"name": {
"type": "string"
},
"metadata": {
"type": "object"
},
"viewType": {
"type": "string"
},
"version": {
"type": "string"
},
"_type": {
"type": "string",
"enum": [
"applicationApiToken",
"dashboard",
"dataTable",
"deviceRecipe",
"device",
"experienceDomain",
"event",
"experienceEndpoint",
"experienceGroup",
"experienceSlug",
"experienceUser",
"experienceVersion",
"experienceView",
"file",
"flow",
"integration",
"webhook",
"notebook"
]
}
},
"required": [
"id",
"name",
"_type"
]
}
}
```
### Example
```json
[
{
"_type": "device",
"name": "My Device #1",
"metadata": {
"descriptor": "a basic description of device #1"
},
"id": "575ec8687ae143cd83dc4a97"
}
]
```
## Application Template
Schema for a single Application Template
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"readme": {
"type": "string",
"maxLength": 131072
},
"categoryIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"keywords": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"maxItems": 100
},
"description": {
"type": "string",
"maxLength": 1024
},
"public": {
"type": "boolean"
},
"authorName": {
"type": "string",
"maxLength": 255
},
"imageUrl": {
"type": "string",
"maxLength": 1024
},
"authorUrl": {
"type": "string",
"maxLength": 1024
},
"templateUrl": {
"type": "string",
"maxLength": 1024
},
"summary": {
"type": "object",
"properties": {
"applicationCertificateAuthorityCount": {
"type": "integer"
},
"dashboardCount": {
"type": "integer"
},
"deviceCount": {
"type": "integer"
},
"deviceRecipeCount": {
"type": "integer"
},
"dataTableCount": {
"type": "integer"
},
"experienceGroupCount": {
"type": "integer"
},
"experienceUserCount": {
"type": "integer"
},
"experienceVersionCount": {
"type": "integer"
},
"experienceViewCount": {
"type": "integer"
},
"experienceEndpointCount": {
"type": "integer"
},
"fileCount": {
"type": "integer"
},
"flowCount": {
"type": "integer"
},
"integrationCount": {
"type": "integer"
},
"notebookCount": {
"type": "integer"
},
"resourceJobCount": {
"type": "integer"
},
"dataTableCsvSize": {
"type": "integer"
},
"webhookCount": {
"type": "integer"
}
}
}
}
}
```
### Example
```json
{
"id": "586e9d5151265cb9d72f6ec6",
"creationDate": "2020-01-13T04:00:00.000Z",
"lastUpdated": "2020-01-13T04:00:00.000Z",
"name": "smart environment",
"description": "a smart env set up",
"public": true,
"authorName": "Example Author",
"authorUrl": "https://example.com/theAuther",
"templateUrl": "https://example.com/theTemplate",
"summary": {
"applicationCertificateAuthorityCount": 0,
"dashboardCount": 0,
"deviceCount": 1,
"deviceRecipeCount": 0,
"dataTableCount": 2,
"fileCount": 0,
"experienceGroupCount": 1,
"experienceUserCount": 1,
"experienceVersionCount": 3,
"experienceViewCount": 6,
"experienceEndpointCount": 6,
"flowCount": 1,
"integrationCount": 0,
"notebookCount": 0,
"resourceJobCount": 0,
"dataTableCsvSize": 4008,
"webhookCount": 0
}
}
```
## Application Template Categories
Schema for a collection of Application Template Categories
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Application Template Category",
"description": "Schema for a single Application Template Category",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"parentId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"resourceTypes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"DeviceRecipe",
"CustomNode"
]
},
"maxItems": 100
}
}
}
},
"baseId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
}
}
}
```
### Example
```json
{
"items": [
{
"id": "586e9d5151265cb9d72f6ec6",
"name": "Workflows",
"description": "Pre-built workflows for quick solution development"
},
{
"id": "586e9d5151265cb9d72f6ec7",
"name": "Device Recipes",
"description": "Pre-configured device recipes"
}
],
"baseId": "586e9d5151265cb9d72f6ec6",
"count": 2,
"totalCount": 2
}
```
## Application Template Category
Schema for a single Application Template Category
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"parentId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"resourceTypes": {
"type": "array",
"items": {
"type": "string",
"enum": [
"DeviceRecipe",
"CustomNode"
]
},
"maxItems": 100
}
}
}
```
### Example
```json
{
"id": "586e9d5151265cb9d72f6ec6",
"name": "Workflows",
"description": "Pre-built workflows for quick solution development"
}
```
## Application Templates
Schema for a collection of Application Templates
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Application Template",
"description": "Schema for a single Application Template",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"readme": {
"type": "string",
"maxLength": 131072
},
"categoryIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"keywords": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"maxItems": 100
},
"description": {
"type": "string",
"maxLength": 1024
},
"public": {
"type": "boolean"
},
"authorName": {
"type": "string",
"maxLength": 255
},
"imageUrl": {
"type": "string",
"maxLength": 1024
},
"authorUrl": {
"type": "string",
"maxLength": 1024
},
"templateUrl": {
"type": "string",
"maxLength": 1024
},
"summary": {
"type": "object",
"properties": {
"applicationCertificateAuthorityCount": {
"type": "integer"
},
"dashboardCount": {
"type": "integer"
},
"deviceCount": {
"type": "integer"
},
"deviceRecipeCount": {
"type": "integer"
},
"dataTableCount": {
"type": "integer"
},
"experienceGroupCount": {
"type": "integer"
},
"experienceUserCount": {
"type": "integer"
},
"experienceVersionCount": {
"type": "integer"
},
"experienceViewCount": {
"type": "integer"
},
"experienceEndpointCount": {
"type": "integer"
},
"fileCount": {
"type": "integer"
},
"flowCount": {
"type": "integer"
},
"integrationCount": {
"type": "integer"
},
"notebookCount": {
"type": "integer"
},
"resourceJobCount": {
"type": "integer"
},
"dataTableCsvSize": {
"type": "integer"
},
"webhookCount": {
"type": "integer"
}
}
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"categoryId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"keywords": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"maxItems": 100
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
}
}
}
```
### Example
```json
{
"items": [
{
"id": "586e9d5151265cb9d72f6ec6",
"creationDate": "2020-01-13T04:00:00.000Z",
"lastUpdated": "2020-01-13T04:00:00.000Z",
"name": "smart environment",
"description": "a smart env set up",
"public": true,
"authorName": "Example Author",
"authorUrl": "https://example.com/theAuther",
"templateUrl": "https://example.com/theTemplate",
"summary": {
"applicationCertificateAuthorityCount": 0,
"dashboardCount": 0,
"deviceCount": 1,
"deviceRecipeCount": 0,
"dataTableCount": 2,
"fileCount": 0,
"experienceGroupCount": 1,
"experienceUserCount": 1,
"experienceVersionCount": 3,
"experienceViewCount": 6,
"experienceEndpointCount": 6,
"flowCount": 1,
"integrationCount": 0,
"notebookCount": 0,
"resourceJobCount": 0,
"dataTableCsvSize": 4008,
"webhookCount": 0
}
}
],
"count": 1,
"totalCount": 8,
"perPage": 1,
"page": 0,
"sortField": "name",
"sortDirection": "asc"
}
```
## Applications
Schema for a collection of Applications
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Application",
"description": "Schema for a single Application",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"appliedTemplateIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"ownerId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"ownerType": {
"type": "string",
"enum": [
"user",
"organization"
]
},
"organizationName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"organizationIconColor": {
"type": "string",
"maxLength": 64
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 1024
},
"endpointSlug": {
"type": "string",
"minLength": 3,
"maxLength": 63,
"pattern": "^[0-9a-z-]*$"
},
"expUserTokenCutoff": {
"type": "string",
"format": "date-time"
},
"endpointDefaultCors": {
"type": "boolean"
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
},
"cloudOnly": {
"type": "boolean",
"default": false
},
"description": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"blobUrlTTL": {
"type": "number",
"minimum": 3600,
"maximum": 604800
},
"summary": {
"type": "object",
"properties": {
"apiTokenCount": {
"type": "integer"
},
"certificateCount": {
"type": "integer"
},
"certificateAuthorityCount": {
"type": "integer"
},
"credentialCount": {
"type": "integer"
},
"dashCount": {
"type": "integer"
},
"dataTableCount": {
"type": "integer"
},
"deviceCount": {
"type": "integer"
},
"deviceRecipeCount": {
"type": "integer"
},
"eventCount": {
"type": "integer"
},
"experienceDomainCount": {
"type": "integer"
},
"experienceEndpointCount": {
"type": "integer"
},
"experienceGroupCount": {
"type": "integer"
},
"experienceSlugCount": {
"type": "integer"
},
"experienceUserCount": {
"type": "integer"
},
"experienceVersionCount": {
"type": "integer"
},
"experienceViewCount": {
"type": "integer"
},
"fileCount": {
"type": "integer"
},
"flowCount": {
"type": "integer"
},
"integrationCount": {
"type": "integer"
},
"keyCount": {
"type": "integer"
},
"notebookCount": {
"type": "integer"
},
"resourceJobCount": {
"type": "integer"
},
"webhookCount": {
"type": "integer"
},
"payloadCount": {
"title": "Payload Stats",
"description": "Schema for the result of a payload stats request",
"type": "object",
"properties": {
"dataTable": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceCommand": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceConnect": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceDisconnect": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"deviceState": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"endpoint": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"event": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"flowError": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"integration": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"mqttIn": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"mqttOut": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"notebook": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"timer": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"virtualButton": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"webhook": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
},
"resourceJob": {
"type": "object",
"patternProperties": {
".*": {
"type": "number"
}
}
}
}
},
"storageStats": {
"type": "object",
"properties": {
"count": {
"type": "integer"
},
"size": {
"type": "integer"
}
}
},
"notebookStats": {
"type": "object",
"properties": {
"awaitingCompletion": {
"type": "integer"
},
"minutesThisPeriod": {
"type": "integer"
},
"runsThisPeriod": {
"type": "integer"
}
}
}
}
},
"ftueTracking": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"version": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"skipped",
"completed"
]
}
},
"required": [
"name",
"version",
"status"
],
"additionalProperties": false
},
"maxItems": 100
},
"archiveConfig": {
"type": "object",
"properties": {
"directory": {
"type": "string",
"maxLength": 255
},
"mode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"deviceIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"deviceTags": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"maxItems": 100
},
"includeDevices": {
"type": "boolean",
"default": true
},
"includeEvents": {
"type": "boolean",
"default": false
},
"includeDataTables": {
"type": "boolean",
"default": false
},
"dataTablesMode": {
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
"dataTableIds": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"maxItems": 1000
},
"s3": {
"type": "object",
"properties": {
"bucket": {
"type": "string",
"maxLength": 255
},
"accessKeyId": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"secretAccessKey": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"region": {
"type": "string",
"maxLength": 128
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"credentialName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"gcs": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"keyJson": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"bucket": {
"type": "string",
"maxLength": 255
}
},
"required": [
"bucket"
],
"additionalProperties": false
},
"azure": {
"type": "object",
"properties": {
"account": {
"type": "string",
"minLength": 3,
"maxLength": 24
},
"accountKey": {
"type": "string",
"maxLength": 255
},
"bucket": {
"type": "string",
"minLength": 3,
"maxLength": 63
}
},
"required": [
"bucket"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
}
}
}
```
### Example
```json
{
"items": [
{
"id": "575ec8687ae143cd83dc4a97",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"ownerId": "575ed70c7ae143cd83dc4aa9",
"ownerType": "user",
"name": "My Application",
"description": "The is the best application description",
"summary": {
"deviceCount": 5,
"flowCount": 2,
"webhookCount": 0,
"eventCount": 0,
"keyCount": 1,
"deviceRecipeCount": 0
},
"archiveConfig": {
"s3": {
"bucket": "bucketName",
"accessKeyId": "awsAccessKey",
"secretAccessKey": "awsSecretKey",
"region": "us-west-1"
},
"mode": "all",
"deviceIds": [
"575ec8687ae143cd83dc4a95",
"575ec8687ae143cd83dc4a91"
]
}
}
],
"count": 1,
"totalCount": 8,
"perPage": 1,
"page": 0,
"sortField": "name",
"sortDirection": "asc"
}
```
## Attribute Names Response
Schema for a list of attribute names
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"attributeNames": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"maxItems": 1000
}
}
}
```
### Example
```json
{
"attributeNames": [
"voltage",
"location",
"rpm"
]
}
```
## Audit Log
Schema for a single Audit Log entry
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"auditLogId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"orgId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"primaryTargetId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"primaryTargetType": {
"type": "string",
"enum": [
"Application",
"Dashboard",
"OrgInvite"
]
},
"primaryTargetName": {
"type": "string",
"maxLength": 1024
},
"secondaryTargetId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"secondaryTargetType": {
"type": "string",
"enum": [
"ApiToken",
"ApplicationCertificateAuthority",
"ApplicationCertificate",
"ApplicationKey",
"Credential",
"Dashboard",
"DataTable",
"Device",
"DeviceRecipe",
"Event",
"ExperienceDomain",
"ExperienceEndpoint",
"ExperienceGroup",
"ExperienceSlug",
"ExperienceUser",
"ExperienceVersion",
"ExperienceView",
"File",
"Flow",
"Integration",
"Notebook",
"ResourceJob",
"Webhook"
]
},
"secondaryTargetName": {
"type": "string",
"maxLength": 1024
},
"actorId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"actorType": {
"type": "string",
"enum": [
"Application",
"Device",
"Flow",
"User",
"ApiToken"
]
},
"actorName": {
"type": "string",
"maxLength": 1024
},
"requestResource": {
"type": "string",
"maxLength": 1024
},
"requestAction": {
"type": "string",
"maxLength": 1024
},
"requestQueryParams": {
"type": "object"
},
"requestBody": {
"type": "object"
},
"requestPathParams": {
"type": "object"
},
"responseBody": {
"type": "object"
},
"responseStatus": {
"type": "integer",
"minimum": 100,
"maximum": 599
}
}
}
```
### Example
```json
{
"id": "586e9d5151265cb9d72f6ec6",
"auditLogId": "586e9d5151265cb9d72f6ec6",
"creationDate": "2016-06-13T04:00:00.000Z",
"orgId": "575ed6e87ae143cd83dc4aa8",
"primaryTargetId": "575ec8687ae143cd83dc4a97",
"primaryTargetType": "Application",
"primaryTargetName": "My Application",
"actorId": "575ed70c7ae143cd83dc4aa9",
"actorType": "User",
"actorName": "actor@example.com",
"requestResource": "application",
"requestAction": "delete",
"requestQueryParams": {},
"requestBody": {},
"requestPathParams": {
"applicationId": "575ec8687ae143cd83dc4a97"
},
"responseBody": {
"success": true
},
"responseStatus": 200
}
```
## Audit Log Filter
Schema for the filter of an audit log query
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"primaryTarget": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"type": {
"type": "string",
"enum": [
"Application",
"Dashboard",
"OrgInvite"
]
},
"name": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
}
},
"secondaryTarget": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"type": {
"type": "string",
"enum": [
"ApiToken",
"ApplicationCertificateAuthority",
"ApplicationCertificate",
"ApplicationKey",
"Credential",
"Dashboard",
"DataTable",
"Device",
"DeviceRecipe",
"Event",
"ExperienceDomain",
"ExperienceEndpoint",
"ExperienceGroup",
"ExperienceSlug",
"ExperienceUser",
"ExperienceVersion",
"ExperienceView",
"File",
"Flow",
"Integration",
"Notebook",
"ResourceJob",
"Webhook"
]
},
"name": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
}
},
"actor": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"type": {
"type": "string",
"enum": [
"Application",
"Device",
"Flow",
"User",
"ApiToken"
]
},
"name": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
}
},
"request": {
"type": "array",
"items": {
"type": "object",
"properties": {
"resource": {
"type": "string",
"maxLength": 1024
},
"action": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
}
},
"responseCode": {
"type": "array",
"items": {
"type": "integer",
"minimum": 100,
"maximum": 599
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"primaryTarget": [
{
"type": "Dashboard"
},
{
"type": "Application",
"id": "575ec8687ae143cd83dc4a97"
}
],
"actor": [
{
"type": "User",
"id": "575ed70c7ae143cd83dc4aa9"
}
]
}
```
## Audit Logs
Schema for a collection of Audit Logs
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Audit Log",
"description": "Schema for a single Audit Log entry",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"auditLogId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"orgId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"primaryTargetId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"primaryTargetType": {
"type": "string",
"enum": [
"Application",
"Dashboard",
"OrgInvite"
]
},
"primaryTargetName": {
"type": "string",
"maxLength": 1024
},
"secondaryTargetId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"secondaryTargetType": {
"type": "string",
"enum": [
"ApiToken",
"ApplicationCertificateAuthority",
"ApplicationCertificate",
"ApplicationKey",
"Credential",
"Dashboard",
"DataTable",
"Device",
"DeviceRecipe",
"Event",
"ExperienceDomain",
"ExperienceEndpoint",
"ExperienceGroup",
"ExperienceSlug",
"ExperienceUser",
"ExperienceVersion",
"ExperienceView",
"File",
"Flow",
"Integration",
"Notebook",
"ResourceJob",
"Webhook"
]
},
"secondaryTargetName": {
"type": "string",
"maxLength": 1024
},
"actorId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"actorType": {
"type": "string",
"enum": [
"Application",
"Device",
"Flow",
"User",
"ApiToken"
]
},
"actorName": {
"type": "string",
"maxLength": 1024
},
"requestResource": {
"type": "string",
"maxLength": 1024
},
"requestAction": {
"type": "string",
"maxLength": 1024
},
"requestQueryParams": {
"type": "object"
},
"requestBody": {
"type": "object"
},
"requestPathParams": {
"type": "object"
},
"responseBody": {
"type": "object"
},
"responseStatus": {
"type": "integer",
"minimum": 100,
"maximum": 599
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"orgId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
}
```
### Example
```json
{
"items": [
{
"id": "586e9d5151265cb9d72f6ec6",
"auditLogId": "586e9d5151265cb9d72f6ec6",
"creationDate": "2016-06-13T04:00:00.000Z",
"orgId": "575ed6e87ae143cd83dc4aa8",
"primaryTargetId": "575ec8687ae143cd83dc4a97",
"primaryTargetType": "Application",
"primaryTargetName": "My Application",
"actorId": "575ed70c7ae143cd83dc4aa9",
"actorType": "User",
"actorName": "actor@example.com",
"requestResource": "application",
"requestAction": "delete",
"requestQueryParams": {},
"requestBody": {},
"requestPathParams": {
"applicationId": "575ec8687ae143cd83dc4a97"
},
"responseBody": {
"success": true
},
"responseStatus": 200
}
],
"count": 1,
"totalCount": 4,
"perPage": 1,
"page": 0,
"sortField": "creationDate",
"sortDirection": "desc",
"orgId": "575ed6e87ae143cd83dc4aa8"
}
```
## Authenticated Device
Schema for the successful response when authenticating a Device
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"deviceId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"deviceClass": {
"type": "string",
"enum": [
"standalone",
"gateway",
"peripheral",
"floating",
"edgeCompute",
"system",
"embedded"
]
},
"token": {
"type": "string",
"minLength": 1
},
"ownerType": {
"type": "string",
"enum": [
"user",
"organization"
]
},
"filterType": {
"oneOf": [
{
"type": "string",
"enum": [
"all",
"whitelist",
"blacklist"
]
},
{
"type": "string",
"enum": [
"none"
]
}
]
},
"pubTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"subTopics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
}
},
"required": [
"applicationId",
"deviceId",
"deviceClass",
"token"
]
}
```
### Example
```json
{
"applicationId": "575ec8687ae143cd83dc4a97",
"deviceId": "575ecf887ae143cd83dc4aa2",
"deviceClass": "standalone",
"token": "token_to_use_for_authenticating_subsequent_requests",
"ownerType": "organization",
"filterType": "whitelist",
"pubTopics": [
"#"
],
"subTopics": [
"#"
]
}
```
## Authenticated User
Schema for the successful response when authenticating a User
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"userId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"token": {
"type": "string",
"minLength": 1
},
"needsToVerifyEmail": {
"type": "boolean"
},
"orgId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
},
"required": [
"userId",
"token"
]
}
```
### Example
```json
{
"userId": "575ed70c7ae143cd83dc4aa9",
"token": "token_to_use_for_authenticating_subsequent_requests"
}
```
## Bulk Deletion Response
Schema for the response to a bulk deletion
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"removed": {
"type": "number"
},
"failed": {
"type": "number"
}
}
}
```
### Example
```json
{
"removed": 3
}
```
## Change Password
Schema for the body of a request to change the current user's password
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"twoFactorCode": {
"type": "string",
"maxLength": 2048
},
"password": {
"type": "string",
"minLength": 8,
"maxLength": 2048
},
"newPassword": {
"type": "string",
"minLength": 12,
"maxLength": 2048,
"pattern": "^(?=.*[A-Z])(?=.*[^A-Za-z0-9])(?=.*[0-9])(?=.*[a-z]).{12,}$"
},
"invalidateExistingTokens": {
"type": "boolean"
},
"tokenTTL": {
"type": "integer",
"minimum": 0
}
},
"required": [
"password",
"newPassword"
],
"additionalProperties": false
}
```
### Example
```json
{
"newPassword": "yourNewPassword1!",
"password": "yourCurrentPassword",
"invalidateExistingTokens": true
}
```
## Composite Device State
Schema for a composite Device state
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"string",
"boolean"
]
},
"time": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "object",
"properties": {
"$date": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"$date"
]
}
]
}
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"voltage": {
"time": "2016-06-13T04:00:00.000Z",
"value": 22.4
},
"loaded": {
"time": "2016-06-13T03:00:00.000Z",
"value": false
}
}
```
## Devices Composite State
Schema for a collection of Composite Device State
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"compositeState": {
"title": "Composite Device State",
"description": "Schema for a composite Device state",
"type": "object",
"patternProperties": {
"^[0-9a-zA-Z_-]{1,255}$": {
"type": "object",
"properties": {
"value": {
"type": [
"number",
"string",
"boolean"
]
},
"time": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "object",
"properties": {
"$date": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"$date"
]
}
]
}
}
}
},
"additionalProperties": false
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"query": {
"type": "object"
}
}
}
```
### Example
```json
{
"items": [
{
"id": "575ecf887ae143cd83dc4aa2",
"name": "My Device",
"compositeState": {
"voltage": {
"time": "2016-06-13T04:00:00.000Z",
"value": 22.4
},
"loaded": {
"time": "2016-06-13T03:00:00.000Z",
"value": false
}
}
}
],
"count": 1,
"totalCount": 4,
"perPage": 1,
"page": 0,
"sortField": "name",
"sortDirection": "asc",
"applicationId": "575ec8687ae143cd83dc4a97"
}
```
## Credential
Schema for a single Credential
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"createdById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"createdByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"lastUpdatedById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"lastUpdatedByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"enabled": {
"type": "boolean"
},
"type": {
"type": "string",
"enum": [
"aws",
"azure",
"gcp",
"http",
"sendgrid",
"twilio",
"loggly",
"jwt",
"whatsapp",
"sql",
"mongodb"
]
},
"awsConfig": {
"type": "object",
"properties": {
"accessKeyId": {
"type": "string",
"minLength": 16,
"maxLength": 128
},
"region": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"additionalProperties": false,
"required": [
"accessKeyId",
"region"
]
},
"azureConfig": {
"type": "object",
"properties": {
"account": {
"type": "string",
"maxLength": 128
}
},
"additionalProperties": false
},
"gcpConfig": {
"type": "object",
"properties": {
"keyMetaJson": {
"type": "string",
"minLength": 1,
"maxLength": 8192
}
},
"additionalProperties": false,
"required": [
"keyMetaJson"
]
},
"httpConfig": {
"type": "object",
"properties": {
"uriMatch": {
"type": "string",
"minLength": 8,
"maxLength": 1024
},
"authMethod": {
"type": "string",
"enum": [
"header",
"queryParam",
"basicAuth",
"clientCertificate"
]
},
"publicValue": {
"type": "string",
"maxLength": 8196
}
},
"additionalProperties": false,
"required": [
"uriMatch",
"authMethod",
"publicValue"
]
},
"sendgridConfig": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"twilioConfig": {
"type": "object",
"properties": {
"accountSid": {
"type": "string",
"minLength": 4,
"maxLength": 128
},
"apiKeySid": {
"type": "string",
"minLength": 4,
"maxLength": 128
}
},
"additionalProperties": false,
"required": [
"accountSid",
"apiKeySid"
]
},
"logglyConfig": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"jwtConfig": {
"type": "object",
"properties": {
"issuer": {
"type": "string",
"maxLength": 1024
},
"algorithm": {
"type": "string",
"enum": [
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512",
"ES256",
"ES384",
"ES512"
]
}
},
"additionalProperties": false,
"required": [
"algorithm"
]
},
"whatsappConfig": {
"type": "object",
"properties": {
"fromNumberId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"additionalProperties": false,
"required": [
"fromNumberId"
]
},
"sqlConfig": {
"type": "object",
"properties": {
"system": {
"type": "string",
"enum": [
"mssql",
"mysql",
"pg"
]
},
"host": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"port": {
"type": "integer",
"minimum": 1,
"maximum": 65535
},
"username": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"secureConnection": {
"type": "boolean"
},
"caCertificate": {
"type": "string",
"maxLength": 8196
},
"disableSSLVerification": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"system",
"host",
"username"
]
},
"mongodbConfig": {
"type": "object",
"properties": {},
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"name",
"type"
]
}
```
### Example
```json
{
"id": "575ece2b7ae143cd83dc4a9b",
"applicationId": "575ece2b7ae143cd83dc4a9c",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"lastUpdatedByType": "user",
"lastUpdatedById": "575ece2b7ae143cd83dc4a9d",
"createdByType": "user",
"createdById": "575ece2b7ae143cd83dc4a9d",
"name": "Dave",
"type": "azure",
"enabled": true,
"azureConfig": {
"account": "my account"
}
}
```
## Credential Linked Resources
The body of an credential linked resources response
### Schema
```json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"integrations": {
"title": "Integrations",
"description": "Schema for a collection of Integrations",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Integration",
"description": "Schema for a single Integration",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"integrationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"credentialName": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"integrationType": {
"type": "string",
"enum": [
"azureEventHub",
"googlePubSub",
"mqtt",
"particle",
"sqs",
"websocket"
]
},
"enabled": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"uniqueItems": true
},
"azureEventHubConfig": {
"type": "object",
"properties": {
"hubName": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"hostName": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"consumerGroup": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"connectionString": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"additionalProperties": false,
"oneOf": [
{
"required": [
"hubName",
"consumerGroup",
"connectionString"
]
},
{
"required": [
"hubName",
"consumerGroup",
"hostName"
]
}
]
},
"googlePubSubConfig": {
"type": "object",
"properties": {
"projectId": {
"type": "string",
"maxLength": 255,
"minLength": 1
},
"keyJson": {
"type": "string",
"maxLength": 32767,
"minLength": 4
}
},
"additionalProperties": false
},
"mqttConfig": {
"type": "object",
"properties": {
"clientId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"username": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"password": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"clean": {
"type": "boolean"
},
"port": {
"type": "number",
"minimum": 1,
"maximum": 65535
},
"protocol": {
"type": "string",
"enum": [
"mqtt",
"mqtts",
"ws",
"wss"
]
},
"host": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"privateKey": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"certificate": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"caCertificate": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"disableSSLVerification": {
"type": "boolean"
},
"protocolVersion": {
"type": "string",
"enum": [
"3.1.1",
"5"
]
}
},
"additionalProperties": false,
"required": [
"port",
"protocol",
"host"
]
},
"particleConfig": {
"type": "object",
"properties": {
"accessToken": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"productSlugOrId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"orgSlugOrId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"deviceNameOrId": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"accessToken"
]
},
"sqsConfig": {
"type": "object",
"properties": {
"accessKeyId": {
"type": "string",
"min": 4,
"max": 128
},
"secretAccessKey": {
"type": "string",
"min": 4,
"max": 128
},
"region": {
"type": "string",
"min": 4,
"max": 128
},
"queueUrl": {
"type": "string",
"min": 1,
"max": 256
}
},
"additionalProperties": false,
"required": [
"queueUrl"
]
},
"websocketConfig": {
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"disableSSLVerification": {
"type": "boolean"
},
"username": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"password": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"privateKey": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"certificate": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"caCertificate": {
"type": "string",
"maxLength": 32767,
"minLength": 4
},
"headers": {
"type": "array",
"maxItems": 50,
"items": {
"type": "object",
"properties": {
"headerKey": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"headerValue": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"headerKey",
"headerValue"
]
}
}
},
"additionalProperties": false,
"required": [
"url"
]
},
"status": {
"lastKeepAlive": {
"type": [
"number"
]
},
"nextAttempt": {
"type": [
"number"
]
},
"connectInfo": {
"type": "object",
"properties": {
"ts": {
"type": [
"number",
"null"
]
}
}
},
"disconnectInfo": {
"type": "object",
"properties": {
"ts": {
"type": [
"number",
"null"
]
},
"error": {
"type": "string"
}
}
}
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
},
"flows": {
"title": "Workflows",
"description": "Schema for a collection of Workflows",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Workflow",
"description": "Schema for a single Workflow",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"createdById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"createdByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"lastUpdatedById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"lastUpdatedByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"shortDescription": {
"type": "string",
"maxLength": 1024
},
"iconData": {
"type": "string",
"maxLength": 32767,
"pattern": "^data:image/(jpg|jpeg|png|svg\\+xml);base64,[0-9a-zA-Z+/=]*$"
},
"docsUrl": {
"type": "string",
"maxLength": 1024
},
"category": {
"type": "string",
"enum": [
"data",
"experience",
"logic",
"output",
"debug"
]
},
"enabled": {
"type": "boolean"
},
"defaultVersionId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"minimumAgentVersion": {
"type": "string",
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
},
"flowClass": {
"type": "string",
"enum": [
"cloud",
"edge",
"embedded",
"experience",
"customNode"
]
},
"triggers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"customNodeStart",
"deviceCommand",
"deviceIdConnect",
"deviceTagConnect",
"deviceIdDisconnect",
"deviceTagDisconnect",
"notebook",
"onBoot",
"onConnect",
"onDisconnect",
"udp",
"webhook",
"resourceJobIteration",
"resourceJobIterationTimeout",
"resourceJobComplete"
]
},
"config": {
"type": "object",
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"customNodeStart",
"deviceCommand",
"deviceIdsTagsConnect",
"deviceIdsTagsDisconnect",
"eeaInit",
"flowError",
"notebook",
"onBoot",
"onConnect",
"onDisconnect",
"udp",
"webhook",
"resourceJobIteration",
"resourceJobIterationTimeout",
"resourceJobComplete"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"dataTable"
]
},
"config": {
"type": "object",
"properties": {
"bulkInsert": {
"type": "boolean"
},
"delete": {
"type": "boolean"
},
"insert": {
"type": "boolean"
},
"update": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"dataTable"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"integration"
]
},
"config": {
"type": "object",
"properties": {
"connect": {
"type": "boolean"
},
"message": {
"type": "boolean"
},
"disconnect": {
"type": "boolean"
},
"failure": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"azureEventHub",
"googlePubSub",
"mqtt",
"particle",
"sqs",
"websocket"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"deviceId",
"deviceTag"
]
},
"config": {
"type": "object",
"properties": {
"attributeBlacklist": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
}
},
"attributeWhitelist": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
}
},
"maxAge": {
"type": "number"
},
"triggerOn": {
"type": "string",
"enum": [
"batch",
"individual",
"both"
]
},
"batchBehavior": {
"type": "string",
"enum": [
"once",
"each"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"deviceIdsTags",
"device",
"deviceTag"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"timeUnit": {
"type": "string",
"maxLength": 48
},
"maxAgeToggle": {
"type": "boolean"
},
"allowedAttributeType": {
"type": "string",
"enum": [
"attributeWhitelist",
"any",
"attributeBlacklist"
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"deviceIdInactivity",
"deviceTagInactivity"
]
},
"config": {
"type": "object",
"properties": {
"seconds": {
"type": "number"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"deviceIdsTagsInactivity"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"direct"
]
},
"config": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"direct"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"endpoint"
]
},
"config": {
"type": "object",
"properties": {
"experienceVersion": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"endpoint"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"event"
]
},
"config": {
"type": "object",
"properties": {
"subject": {
"type": "string",
"maxLength": 255
},
"new": {
"type": "boolean"
},
"acknowledged": {
"type": "boolean"
},
"resolved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"event"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"fileTail"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"encoding": {
"type": "string",
"maxLength": 48
},
"byteLength": {
"type": "string",
"maxLength": 48
},
"delimiter": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"fileTail"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"fileWatch"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"fileAdded": {
"type": "boolean"
},
"fileChanged": {
"type": "boolean"
},
"fileRemoved": {
"type": "boolean"
},
"directoryAdded": {
"type": "boolean"
},
"directoryRemoved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"fileWatch"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"flowError"
]
},
"config": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"local",
"global",
"experience",
"cloud"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"flowError"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"mqttTopic"
]
},
"config": {
"type": "object",
"properties": {
"integrationId": {
"type": "string",
"enum": [
"losant",
"local",
"external"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"mqtt"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"onSync"
]
},
"config": {
"type": "object",
"properties": {
"syncTypes": {
"type": "array",
"maxItems": 3,
"minItems": 1,
"items": {
"type": "string",
"enum": [
"application",
"device",
"peripheral"
]
}
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"onSync"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"opcua"
]
},
"config": {
"type": "object",
"properties": {
"uri": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"securityPolicy": {
"type": "string",
"maxLength": 255
},
"securityMode": {
"type": "string",
"maxLength": 255
},
"username": {
"type": "string",
"maxLength": 1024
},
"password": {
"type": "string",
"maxLength": 1024
},
"cert": {
"type": "string",
"maxLength": 32767
},
"privateKey": {
"type": "string",
"maxLength": 32767
},
"nameSpace": {
"type": "string",
"maxLength": 255
},
"identifier": {
"type": "string",
"maxLength": 255
},
"samplingInterval": {
"type": "string",
"maxLength": 255
},
"eventFilter": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"configName": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"opcua"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"redis"
]
},
"config": {
"type": "object",
"properties": {
"host": {
"type": "string",
"maxLength": 1024
},
"port": {
"type": "string",
"maxLength": 16
},
"password": {
"type": "string",
"maxLength": 1024
},
"topic": {
"type": "string",
"maxLength": 1024
},
"fileAdded": {
"type": "boolean"
},
"fileChanged": {
"type": "boolean"
},
"fileRemoved": {
"type": "boolean"
},
"directoryAdded": {
"type": "boolean"
},
"directoryRemoved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"redisTrigger"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"request"
]
},
"config": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"*",
"delete",
"get",
"options",
"patch",
"post",
"put"
]
},
"route": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"request"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"serial"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"baudRate": {
"type": "number"
},
"dataBits": {
"type": "number"
},
"stopBits": {
"type": "number"
},
"parity": {
"type": "string",
"maxLength": 8
},
"rtscts": {
"type": "boolean"
},
"encoding": {
"type": "string",
"maxLength": 48
},
"writeOnOpen": {
"type": "string",
"maxLength": 1024
},
"writeOnOpenEncoding": {
"type": "string",
"maxLength": 48
},
"byteLength": {
"type": "string",
"maxLength": 48
},
"delimiter": {
"type": "string",
"maxLength": 48
},
"delimiterEncoding": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"serial"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"parseBy": {
"type": "string",
"enum": [
"byteLength",
"delimiter"
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"snmpTrap"
]
},
"config": {
"type": "object",
"properties": {
"udpPort": {
"type": "string",
"maxLength": 5
},
"snmpTrapConfig": {
"type": "object",
"properties": {
"community": {
"type": "string",
"maxLength": 1024
},
"user": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 1024
},
"securityLevel": {
"type": "string",
"enum": [
"none",
"auth",
"authAndEncrypt"
]
},
"authMethod": {
"type": "string",
"enum": [
"sha",
"md5"
]
},
"authKey": {
"type": "string",
"maxLength": 1024
},
"encryptionMethod": {
"type": "string",
"enum": [
"aes",
"des"
]
},
"encryptionKey": {
"type": "string",
"maxLength": 1024
}
},
"required": [
"name",
"securityLevel"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"required": [
"udpPort",
"snmpTrapConfig"
],
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"snmpTrap"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"timer"
]
},
"config": {
"type": "object",
"properties": {
"seconds": {
"type": "number"
},
"cron": {
"type": "string",
"maxLength": 255
},
"tz": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"timer"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"timerTypeSelect": {
"type": "string",
"enum": [
"cronWeekly",
"seconds",
"cron"
]
},
"timeAt": {
"type": "string",
"maxLength": 255
},
"timezone": {
"type": "string",
"maxLength": 255
},
"weekdays": {
"type": "array",
"maxItems": 7,
"items": {
"type": "number"
}
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"virtualButton"
]
},
"config": {
"type": "object",
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"virtualButton"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"groupId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"payload": {
"type": "string",
"maxLength": 262144
},
"deviceId": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "string",
"enum": [
""
]
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
}
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"config": {
"type": "object"
},
"meta": {
"type": "object"
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"additionalProperties": false,
"required": [
"type"
]
}
},
"customNodeConfig": {
"type": "object",
"properties": {
"outputCount": {
"type": "number",
"enum": [
1,
2
]
},
"resultMode": {
"type": "string",
"enum": [
"optional",
"required",
"none"
]
},
"resultDescription": {
"type": "string",
"maxLength": 32767
},
"fields": {
"type": "array",
"maxItems": 100,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"checkbox"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"select"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"options": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 1024
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"additionalProperties": false,
"required": [
"type",
"label",
"defaultValue",
"options"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"stringTemplate"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "string",
"maxLength": 1024
},
"required": {
"type": "boolean"
},
"validRegExp": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"numberTemplate"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "number"
},
"required": {
"type": "boolean"
},
"validMin": {
"type": "number"
},
"validMax": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"jsonTemplate"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "string",
"maxLength": 32767
},
"required": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"payloadPath"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"required": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"section"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
}
]
}
}
},
"additionalProperties": false,
"required": [
"outputCount",
"resultMode",
"fields"
]
},
"customNodeSupports": {
"type": "array",
"maxItems": 1,
"items": {
"type": "string",
"enum": [
"cloud",
"edge"
]
}
},
"customNodeUseCount": {
"type": "number"
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"deletedInDevelop": {
"type": "boolean"
},
"stats": {
"type": "object",
"properties": {
"runCount": {
"type": "number"
},
"errorCount": {
"type": "number"
},
"byVersion": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"runCount": {
"type": "number"
},
"errorCount": {
"type": "number"
}
}
}
}
}
}
}
}
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowClass": {
"type": "string",
"enum": [
"cloud",
"edge",
"embedded",
"experience",
"customNode"
]
}
}
},
"flowVersions": {
"title": "Workflow Versions",
"description": "Schema for a collection of Workflow Versions",
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"title": "Workflow Version",
"description": "Schema for a single Workflow Version",
"oneOf": [
{
"description": "Schema for a single Cloud/Edge/Embedded/Custom Node Workflow Version",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowVersionId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"createdById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"createdByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"lastUpdatedById": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"lastUpdatedByType": {
"type": "string",
"enum": [
"flow",
"user",
"apiToken"
]
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"flowClass": {
"type": "string",
"enum": [
"cloud",
"edge",
"embedded",
"customNode"
]
},
"notes": {
"type": "string",
"maxLength": 32767
},
"enabled": {
"type": "boolean"
},
"triggers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"customNodeStart",
"deviceCommand",
"deviceIdConnect",
"deviceTagConnect",
"deviceIdDisconnect",
"deviceTagDisconnect",
"notebook",
"onBoot",
"onConnect",
"onDisconnect",
"udp",
"webhook",
"resourceJobIteration",
"resourceJobIterationTimeout",
"resourceJobComplete"
]
},
"config": {
"type": "object",
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"customNodeStart",
"deviceCommand",
"deviceIdsTagsConnect",
"deviceIdsTagsDisconnect",
"eeaInit",
"flowError",
"notebook",
"onBoot",
"onConnect",
"onDisconnect",
"udp",
"webhook",
"resourceJobIteration",
"resourceJobIterationTimeout",
"resourceJobComplete"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"dataTable"
]
},
"config": {
"type": "object",
"properties": {
"bulkInsert": {
"type": "boolean"
},
"delete": {
"type": "boolean"
},
"insert": {
"type": "boolean"
},
"update": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"dataTable"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"integration"
]
},
"config": {
"type": "object",
"properties": {
"connect": {
"type": "boolean"
},
"message": {
"type": "boolean"
},
"disconnect": {
"type": "boolean"
},
"failure": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"azureEventHub",
"googlePubSub",
"mqtt",
"particle",
"sqs",
"websocket"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"deviceId",
"deviceTag"
]
},
"config": {
"type": "object",
"properties": {
"attributeBlacklist": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
}
},
"attributeWhitelist": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
}
},
"maxAge": {
"type": "number"
},
"triggerOn": {
"type": "string",
"enum": [
"batch",
"individual",
"both"
]
},
"batchBehavior": {
"type": "string",
"enum": [
"once",
"each"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"deviceIdsTags",
"device",
"deviceTag"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"timeUnit": {
"type": "string",
"maxLength": 48
},
"maxAgeToggle": {
"type": "boolean"
},
"allowedAttributeType": {
"type": "string",
"enum": [
"attributeWhitelist",
"any",
"attributeBlacklist"
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"deviceIdInactivity",
"deviceTagInactivity"
]
},
"config": {
"type": "object",
"properties": {
"seconds": {
"type": "number"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"deviceIdsTagsInactivity"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"direct"
]
},
"config": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"direct"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"endpoint"
]
},
"config": {
"type": "object",
"properties": {
"experienceVersion": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"endpoint"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"event"
]
},
"config": {
"type": "object",
"properties": {
"subject": {
"type": "string",
"maxLength": 255
},
"new": {
"type": "boolean"
},
"acknowledged": {
"type": "boolean"
},
"resolved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"event"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"fileTail"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"encoding": {
"type": "string",
"maxLength": 48
},
"byteLength": {
"type": "string",
"maxLength": 48
},
"delimiter": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"fileTail"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"fileWatch"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"fileAdded": {
"type": "boolean"
},
"fileChanged": {
"type": "boolean"
},
"fileRemoved": {
"type": "boolean"
},
"directoryAdded": {
"type": "boolean"
},
"directoryRemoved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"fileWatch"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"flowError"
]
},
"config": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"local",
"global",
"experience",
"cloud"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"flowError"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"mqttTopic"
]
},
"config": {
"type": "object",
"properties": {
"integrationId": {
"type": "string",
"enum": [
"losant",
"local",
"external"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"mqtt"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"onSync"
]
},
"config": {
"type": "object",
"properties": {
"syncTypes": {
"type": "array",
"maxItems": 3,
"minItems": 1,
"items": {
"type": "string",
"enum": [
"application",
"device",
"peripheral"
]
}
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"onSync"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"opcua"
]
},
"config": {
"type": "object",
"properties": {
"uri": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"securityPolicy": {
"type": "string",
"maxLength": 255
},
"securityMode": {
"type": "string",
"maxLength": 255
},
"username": {
"type": "string",
"maxLength": 1024
},
"password": {
"type": "string",
"maxLength": 1024
},
"cert": {
"type": "string",
"maxLength": 32767
},
"privateKey": {
"type": "string",
"maxLength": 32767
},
"nameSpace": {
"type": "string",
"maxLength": 255
},
"identifier": {
"type": "string",
"maxLength": 255
},
"samplingInterval": {
"type": "string",
"maxLength": 255
},
"eventFilter": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"configName": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"opcua"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"redis"
]
},
"config": {
"type": "object",
"properties": {
"host": {
"type": "string",
"maxLength": 1024
},
"port": {
"type": "string",
"maxLength": 16
},
"password": {
"type": "string",
"maxLength": 1024
},
"topic": {
"type": "string",
"maxLength": 1024
},
"fileAdded": {
"type": "boolean"
},
"fileChanged": {
"type": "boolean"
},
"fileRemoved": {
"type": "boolean"
},
"directoryAdded": {
"type": "boolean"
},
"directoryRemoved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"redisTrigger"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"request"
]
},
"config": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"*",
"delete",
"get",
"options",
"patch",
"post",
"put"
]
},
"route": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"request"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"serial"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"baudRate": {
"type": "number"
},
"dataBits": {
"type": "number"
},
"stopBits": {
"type": "number"
},
"parity": {
"type": "string",
"maxLength": 8
},
"rtscts": {
"type": "boolean"
},
"encoding": {
"type": "string",
"maxLength": 48
},
"writeOnOpen": {
"type": "string",
"maxLength": 1024
},
"writeOnOpenEncoding": {
"type": "string",
"maxLength": 48
},
"byteLength": {
"type": "string",
"maxLength": 48
},
"delimiter": {
"type": "string",
"maxLength": 48
},
"delimiterEncoding": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"serial"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"parseBy": {
"type": "string",
"enum": [
"byteLength",
"delimiter"
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"snmpTrap"
]
},
"config": {
"type": "object",
"properties": {
"udpPort": {
"type": "string",
"maxLength": 5
},
"snmpTrapConfig": {
"type": "object",
"properties": {
"community": {
"type": "string",
"maxLength": 1024
},
"user": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 1024
},
"securityLevel": {
"type": "string",
"enum": [
"none",
"auth",
"authAndEncrypt"
]
},
"authMethod": {
"type": "string",
"enum": [
"sha",
"md5"
]
},
"authKey": {
"type": "string",
"maxLength": 1024
},
"encryptionMethod": {
"type": "string",
"enum": [
"aes",
"des"
]
},
"encryptionKey": {
"type": "string",
"maxLength": 1024
}
},
"required": [
"name",
"securityLevel"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"required": [
"udpPort",
"snmpTrapConfig"
],
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"snmpTrap"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"timer"
]
},
"config": {
"type": "object",
"properties": {
"seconds": {
"type": "number"
},
"cron": {
"type": "string",
"maxLength": 255
},
"tz": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"timer"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"timerTypeSelect": {
"type": "string",
"enum": [
"cronWeekly",
"seconds",
"cron"
]
},
"timeAt": {
"type": "string",
"maxLength": 255
},
"timezone": {
"type": "string",
"maxLength": 255
},
"weekdays": {
"type": "array",
"maxItems": 7,
"items": {
"type": "number"
}
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"virtualButton"
]
},
"config": {
"type": "object",
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"virtualButton"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"groupId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"payload": {
"type": "string",
"maxLength": 262144
},
"deviceId": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "string",
"enum": [
""
]
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
}
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"config": {
"type": "object"
},
"meta": {
"type": "object"
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"additionalProperties": false,
"required": [
"type"
]
}
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"minimumAgentVersion": {
"type": "string",
"pattern": "^(0|([1-9]\\d*))\\.(0|([1-9]\\d*))\\.(0|([1-9]\\d*))$"
},
"customNodeConfig": {
"type": "object",
"properties": {
"outputCount": {
"type": "number",
"enum": [
1,
2
]
},
"resultMode": {
"type": "string",
"enum": [
"optional",
"required",
"none"
]
},
"resultDescription": {
"type": "string",
"maxLength": 32767
},
"fields": {
"type": "array",
"maxItems": 100,
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"checkbox"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"select"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"options": {
"type": "array",
"minItems": 1,
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"label": {
"type": "string",
"maxLength": 1024
},
"value": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"value"
]
}
}
},
"additionalProperties": false,
"required": [
"type",
"label",
"defaultValue",
"options"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"stringTemplate"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "string",
"maxLength": 1024
},
"required": {
"type": "boolean"
},
"validRegExp": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"numberTemplate"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "number"
},
"required": {
"type": "boolean"
},
"validMin": {
"type": "number"
},
"validMax": {
"type": "number"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"jsonTemplate"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"defaultValue": {
"type": "string",
"maxLength": 32767
},
"required": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"payloadPath"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
},
"required": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"section"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"description": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false,
"required": [
"type",
"label"
]
}
]
}
}
},
"additionalProperties": false,
"required": [
"outputCount",
"resultMode",
"fields"
]
},
"stats": {
"type": "object",
"properties": {
"runCount": {
"type": "number"
},
"errorCount": {
"type": "number"
},
"byVersion": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"runCount": {
"type": "number"
},
"errorCount": {
"type": "number"
}
}
}
}
}
}
}
}
},
{
"description": "Schema for a single Experience Workflow Version",
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowVersionId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"creationDate": {
"type": "string",
"format": "date-time"
},
"lastUpdated": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"type": "string",
"maxLength": 32767
},
"flowClass": {
"type": "string",
"enum": [
"experience"
]
},
"versions": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"enabled": {
"type": "boolean"
},
"triggers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"customNodeStart",
"deviceCommand",
"deviceIdConnect",
"deviceTagConnect",
"deviceIdDisconnect",
"deviceTagDisconnect",
"notebook",
"onBoot",
"onConnect",
"onDisconnect",
"udp",
"webhook",
"resourceJobIteration",
"resourceJobIterationTimeout",
"resourceJobComplete"
]
},
"config": {
"type": "object",
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"customNodeStart",
"deviceCommand",
"deviceIdsTagsConnect",
"deviceIdsTagsDisconnect",
"eeaInit",
"flowError",
"notebook",
"onBoot",
"onConnect",
"onDisconnect",
"udp",
"webhook",
"resourceJobIteration",
"resourceJobIterationTimeout",
"resourceJobComplete"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"dataTable"
]
},
"config": {
"type": "object",
"properties": {
"bulkInsert": {
"type": "boolean"
},
"delete": {
"type": "boolean"
},
"insert": {
"type": "boolean"
},
"update": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"dataTable"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"integration"
]
},
"config": {
"type": "object",
"properties": {
"connect": {
"type": "boolean"
},
"message": {
"type": "boolean"
},
"disconnect": {
"type": "boolean"
},
"failure": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"azureEventHub",
"googlePubSub",
"mqtt",
"particle",
"sqs",
"websocket"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"deviceId",
"deviceTag"
]
},
"config": {
"type": "object",
"properties": {
"attributeBlacklist": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
}
},
"attributeWhitelist": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
}
},
"maxAge": {
"type": "number"
},
"triggerOn": {
"type": "string",
"enum": [
"batch",
"individual",
"both"
]
},
"batchBehavior": {
"type": "string",
"enum": [
"once",
"each"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"deviceIdsTags",
"device",
"deviceTag"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"timeUnit": {
"type": "string",
"maxLength": 48
},
"maxAgeToggle": {
"type": "boolean"
},
"allowedAttributeType": {
"type": "string",
"enum": [
"attributeWhitelist",
"any",
"attributeBlacklist"
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"deviceIdInactivity",
"deviceTagInactivity"
]
},
"config": {
"type": "object",
"properties": {
"seconds": {
"type": "number"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"deviceIdsTagsInactivity"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"direct"
]
},
"config": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"direct"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"endpoint"
]
},
"config": {
"type": "object",
"properties": {
"experienceVersion": {
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"endpoint"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"event"
]
},
"config": {
"type": "object",
"properties": {
"subject": {
"type": "string",
"maxLength": 255
},
"new": {
"type": "boolean"
},
"acknowledged": {
"type": "boolean"
},
"resolved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"event"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"fileTail"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"encoding": {
"type": "string",
"maxLength": 48
},
"byteLength": {
"type": "string",
"maxLength": 48
},
"delimiter": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"fileTail"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"fileWatch"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"fileAdded": {
"type": "boolean"
},
"fileChanged": {
"type": "boolean"
},
"fileRemoved": {
"type": "boolean"
},
"directoryAdded": {
"type": "boolean"
},
"directoryRemoved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"fileWatch"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"flowError"
]
},
"config": {
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"local",
"global",
"experience",
"cloud"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"flowError"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"mqttTopic"
]
},
"config": {
"type": "object",
"properties": {
"integrationId": {
"type": "string",
"enum": [
"losant",
"local",
"external"
]
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"mqtt"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"onSync"
]
},
"config": {
"type": "object",
"properties": {
"syncTypes": {
"type": "array",
"maxItems": 3,
"minItems": 1,
"items": {
"type": "string",
"enum": [
"application",
"device",
"peripheral"
]
}
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"onSync"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"opcua"
]
},
"config": {
"type": "object",
"properties": {
"uri": {
"type": "string",
"format": "uri",
"maxLength": 1024
},
"securityPolicy": {
"type": "string",
"maxLength": 255
},
"securityMode": {
"type": "string",
"maxLength": 255
},
"username": {
"type": "string",
"maxLength": 1024
},
"password": {
"type": "string",
"maxLength": 1024
},
"cert": {
"type": "string",
"maxLength": 32767
},
"privateKey": {
"type": "string",
"maxLength": 32767
},
"nameSpace": {
"type": "string",
"maxLength": 255
},
"identifier": {
"type": "string",
"maxLength": 255
},
"samplingInterval": {
"type": "string",
"maxLength": 255
},
"eventFilter": {
"type": "array",
"maxItems": 100,
"items": {
"type": "string",
"maxLength": 255
}
},
"configName": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"opcua"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"redis"
]
},
"config": {
"type": "object",
"properties": {
"host": {
"type": "string",
"maxLength": 1024
},
"port": {
"type": "string",
"maxLength": 16
},
"password": {
"type": "string",
"maxLength": 1024
},
"topic": {
"type": "string",
"maxLength": 1024
},
"fileAdded": {
"type": "boolean"
},
"fileChanged": {
"type": "boolean"
},
"fileRemoved": {
"type": "boolean"
},
"directoryAdded": {
"type": "boolean"
},
"directoryRemoved": {
"type": "boolean"
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"redisTrigger"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"request"
]
},
"config": {
"type": "object",
"properties": {
"method": {
"type": "string",
"enum": [
"*",
"delete",
"get",
"options",
"patch",
"post",
"put"
]
},
"route": {
"type": "string",
"maxLength": 1024
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"request"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"triggerId": {
"type": "string",
"maxLength": 48
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"serial"
]
},
"config": {
"type": "object",
"properties": {
"path": {
"type": "string",
"maxLength": 1024
},
"baudRate": {
"type": "number"
},
"dataBits": {
"type": "number"
},
"stopBits": {
"type": "number"
},
"parity": {
"type": "string",
"maxLength": 8
},
"rtscts": {
"type": "boolean"
},
"encoding": {
"type": "string",
"maxLength": 48
},
"writeOnOpen": {
"type": "string",
"maxLength": 1024
},
"writeOnOpenEncoding": {
"type": "string",
"maxLength": 48
},
"byteLength": {
"type": "string",
"maxLength": 48
},
"delimiter": {
"type": "string",
"maxLength": 48
},
"delimiterEncoding": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"serial"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"parseBy": {
"type": "string",
"enum": [
"byteLength",
"delimiter"
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"snmpTrap"
]
},
"config": {
"type": "object",
"properties": {
"udpPort": {
"type": "string",
"maxLength": 5
},
"snmpTrapConfig": {
"type": "object",
"properties": {
"community": {
"type": "string",
"maxLength": 1024
},
"user": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 1024
},
"securityLevel": {
"type": "string",
"enum": [
"none",
"auth",
"authAndEncrypt"
]
},
"authMethod": {
"type": "string",
"enum": [
"sha",
"md5"
]
},
"authKey": {
"type": "string",
"maxLength": 1024
},
"encryptionMethod": {
"type": "string",
"enum": [
"aes",
"des"
]
},
"encryptionKey": {
"type": "string",
"maxLength": 1024
}
},
"required": [
"name",
"securityLevel"
],
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"required": [
"udpPort",
"snmpTrapConfig"
],
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"snmpTrap"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"timer"
]
},
"config": {
"type": "object",
"properties": {
"seconds": {
"type": "number"
},
"cron": {
"type": "string",
"maxLength": 255
},
"tz": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"timer"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"timerTypeSelect": {
"type": "string",
"enum": [
"cronWeekly",
"seconds",
"cron"
]
},
"timeAt": {
"type": "string",
"maxLength": 255
},
"timezone": {
"type": "string",
"maxLength": 255
},
"weekdays": {
"type": "array",
"maxItems": 7,
"items": {
"type": "number"
}
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"enum": [
"virtualButton"
]
},
"config": {
"type": "object",
"additionalProperties": false
},
"meta": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"trigger"
]
},
"name": {
"type": "string",
"enum": [
"virtualButton"
]
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 255
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"uiId": {
"type": "string",
"maxLength": 48
},
"groupId": {
"type": "string",
"maxLength": 48
},
"description": {
"type": "string",
"maxLength": 32767
},
"icon": {
"type": "string",
"maxLength": 1024
},
"color": {
"type": "string",
"maxLength": 1024
},
"inputCount": {
"type": "number"
},
"outputCount": {
"type": "number"
},
"id": {
"type": "string",
"maxLength": 48
},
"payload": {
"type": "string",
"maxLength": 262144
},
"deviceId": {
"oneOf": [
{
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
{
"type": "string",
"enum": [
""
]
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"required": [
"type"
],
"additionalProperties": false
}
]
}
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 1024
},
"type": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"config": {
"type": "object"
},
"meta": {
"type": "object"
},
"outputIds": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"maxLength": 48,
"minLength": 1
},
"maxItems": 100
},
"maxItems": 100
}
},
"additionalProperties": false,
"required": [
"type"
]
}
},
"globals": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[0-9a-zA-Z_-]{1,255}$"
},
"json": {
"type": "string",
"minLength": 1,
"maxLength": 32767
}
},
"additionalProperties": false,
"required": [
"key",
"json"
]
}
},
"stats": {
"type": "object",
"properties": {
"runCount": {
"type": "number"
},
"errorCount": {
"type": "number"
},
"byVersion": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"runCount": {
"type": "number"
},
"errorCount": {
"type": "number"
}
}
}
}
}
}
}
}
}
]
}
},
"count": {
"type": "integer"
},
"totalCount": {
"type": "integer"
},
"perPage": {
"type": "integer"
},
"page": {
"type": "integer"
},
"filter": {
"type": "string"
},
"filterField": {
"type": "string"
},
"sortField": {
"type": "string"
},
"sortDirection": {
"type": "string",
"enum": [
"asc",
"desc",
"ASC",
"DESC",
""
]
},
"applicationId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
},
"flowId": {
"type": "string",
"pattern": "^[A-Fa-f\\d]{24}$"
}
}
}
},
"additionalProperties": false
}
```
### Example
```json
{
"integrations": {
"items": [
{
"id": "59cc5c628246c6caed4b16c1",
"experienceViewId": "59cc5c628246c6caed4b16c1",
"applicationId": "575ec8687ae143cd83dc4a97",
"creationDate": "2016-06-13T04:00:00.000Z",
"lastUpdated": "2016-06-13T04:00:00.000Z",
"name": "My Page View",
"viewType": "page",
"body": "
{{data}}
", "layoutId": "59cc5cad8246c6caed4b16c2", "viewTags": { "customKey": "customValue" } } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "name", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97" }, "flows": { "items": [ { "id": "575ed18f7ae143cd83dc4aa6", "flowId": "575ed18f7ae143cd83dc4aa6", "applicationId": "575ec8687ae143cd83dc4a97", "creationDate": "2016-06-13T04:00:00.000Z", "lastUpdated": "2016-06-13T04:00:00.000Z", "name": "My Workflow", "description": "Description of my empty workflow", "enabled": true, "triggers": [], "nodes": [], "globals": [], "stats": { "runCount": 0, "errorCount": 0 } } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "name", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97" }, "flowVersions": { "items": [ { "id": "675ed18f7ae143cd83dc4bb7", "flowVersionId": "675ed18f7ae143cd83dc4bb7", "flowId": "575ed18f7ae143cd83dc4aa6", "applicationId": "575ec8687ae143cd83dc4a97", "creationDate": "2016-06-13T04:00:00.000Z", "lastUpdated": "2016-06-13T04:00:00.000Z", "description": "Description of my workflow version", "flowClass": "experience", "versions": [ "v1.2.3" ], "enabled": true, "triggers": [], "nodes": [], "globals": [] } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "version", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97", "flowId": "575ed18f7ae143cd83dc4aa6" } } ```{{data}}
", "layoutId": "59cc5cad8246c6caed4b16c2", "viewTags": { "customKey": "customValue" } } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "name", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97" }, "experienceEndpoints": { "items": [ { "id": "58c1de6c8f812590d8e82980", "experienceEndpointId": "58c1de6c8f812590d8e82980", "applicationId": "575ec8687ae143cd83dc4a97", "creationDate": "2016-06-13T04:00:00.000Z", "lastUpdated": "2016-06-13T04:00:00.000Z", "route": "/my/route/{id}", "enabled": true, "method": "get", "access": "group", "experienceGroups": [ { "name": "myGroup", "id": "58b9d794cbfafe1be675744f" } ] } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "name", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97" }, "flows": { "items": [ { "id": "575ed18f7ae143cd83dc4aa6", "flowId": "575ed18f7ae143cd83dc4aa6", "applicationId": "575ec8687ae143cd83dc4a97", "creationDate": "2016-06-13T04:00:00.000Z", "lastUpdated": "2016-06-13T04:00:00.000Z", "name": "My Workflow", "description": "Description of my empty workflow", "enabled": true, "triggers": [], "nodes": [], "globals": [], "stats": { "runCount": 0, "errorCount": 0 } } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "name", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97" }, "flowVersions": { "items": [ { "id": "675ed18f7ae143cd83dc4bb7", "flowVersionId": "675ed18f7ae143cd83dc4bb7", "flowId": "575ed18f7ae143cd83dc4aa6", "applicationId": "575ec8687ae143cd83dc4a97", "creationDate": "2016-06-13T04:00:00.000Z", "lastUpdated": "2016-06-13T04:00:00.000Z", "description": "Description of my workflow version", "flowClass": "experience", "versions": [ "v1.2.3" ], "enabled": true, "triggers": [], "nodes": [], "globals": [] } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "version", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97", "flowId": "575ed18f7ae143cd83dc4aa6" } } ```{{data}}
", "layoutId": "59cc5cad8246c6caed4b16c2", "viewTags": { "customKey": "customValue" } } ```{{newData}}
", "viewTags": { "customKey": "newCustomValue" } } ```{{data}}
", "layoutId": "59cc5cad8246c6caed4b16c2", "viewTags": { "customKey": "customValue" } } ```{{data}}
", "layoutId": "59cc5cad8246c6caed4b16c2", "viewTags": { "customKey": "customValue" } } ], "count": 1, "totalCount": 4, "perPage": 1, "page": 0, "sortField": "name", "sortDirection": "asc", "applicationId": "575ec8687ae143cd83dc4a97" } ```