Schemas

Advanced Application Key Query

Schema for advanced application key queries

Advanced Application Key Query Schema

{
  "$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": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "$tagValue": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "$eq": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$eq"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "$ne": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "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
        }
      ]
    }
  }
}

Advanced Application Key Query Example

{
  "$nor": [
    {
      "id": "575ec8687ae143cd83dc4a97"
    },
    {
      "description": "my access key"
    },
    {
      "lastUpdated": {
        "$lt": 1612189931000
      }
    }
  ]
}

Advanced Device Query

Schema for advanced device queries

Advanced Device Query Schema

{
  "$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
        }
      ]
    },
    "deletedAt": {
      "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": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "$tagValue": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "$eq": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$eq"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "$ne": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "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
}

Advanced Device Query Example

{
  "$or": [
    {
      "name": {
        "$ne": "myValue"
      }
    },
    {
      "parentId": "575ec8687ae143cd83dc4a97"
    }
  ]
}

Advanced Event Query

Schema for advanced event queries

Advanced Event Query Schema

{
  "$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": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "$tagValue": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "$eq": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$eq"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "$ne": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$ne"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "additionalProperties": false
}

Advanced Event Query Example

{
  "$or": [
    {
      "level": {
        "$ne": "myValue"
      }
    },
    {
      "level": 5
    }
  ]
}

Advanced Experience Group Query

Schema for advanced experience group queries

Advanced Experience Group Query Schema

{
  "$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": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "$tagValue": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "$eq": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$eq"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "$ne": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "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
}

Advanced Experience Group Query Example

{
  "name": "My Great Group",
  "lastUpdated": "2022-01-30T17:18:11.911Z"
}

Advanced Experience User Query

Schema for advanced experience user queries

Advanced Experience User Query Schema

{
  "$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": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "$tagValue": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "$eq": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$eq"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "$ne": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "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
}

Advanced Experience User Query Example

{
  "firstName": "Bob",
  "lastUpdated": "2022-01-30T17:18:11.911Z"
}

Advanced Workflow By Version Query

Schema for advanced workflow queries

Advanced Workflow By Version Query Schema

{
  "$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
}

Advanced Workflow By Version Query Example

{
  "flowId": "000000000000000000000000"
}

Advanced Workflow Query

Schema for advanced workflow queries

Advanced Workflow Query Schema

{
  "$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
}

Advanced Workflow Query Example

{
  "$or": [
    {
      "name": {
        "$ne": "flowie"
      }
    },
    {
      "enabled": false
    }
  ]
}

Advanced Workflow Version Query

Schema for advanced workflow queries

Advanced Workflow Version Query Schema

{
  "$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
}

Advanced Workflow Version Query Example

{
  "version": "theVersion"
}

Advanced Instance Organization Query

Schema for advanced instance organization queries

Advanced Instance Organization Query Schema

{
  "$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": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "$tagValue": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false,
              "minProperties": 1
            },
            {
              "type": "object",
              "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}": {
                  "oneOf": [
                    {
                      "type": "string",
                      "maxLength": 255
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$in": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$in"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "$nin": {
                          "type": "array",
                          "maxItems": 100,
                          "items": {
                            "type": "string",
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "$nin"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "additionalProperties": false
            }
          ]
        },
        {
          "type": "object",
          "properties": {
            "$eq": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "$eq"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "$ne": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "$tagKey": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "$tagValue": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "additionalProperties": false,
                  "minProperties": 1
                },
                {
                  "type": "object",
                  "patternProperties": {
                    "^[0-9a-zA-Z_-]{1,255}": {
                      "oneOf": [
                        {
                          "type": "string",
                          "maxLength": 255
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$in": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$in"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "$nin": {
                              "type": "array",
                              "maxItems": 100,
                              "items": {
                                "type": "string",
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "$nin"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "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
}

Advanced Instance Organization Query Example

{
  "name": "Bob's Org",
  "lastUpdated": "2022-01-30T17:18:11.911Z"
}

Advanced Query

Schema for advanced filters and queries

Advanced Query Schema

{
  "$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
}

Advanced Query Example

{
  "$or": [
    {
      "level": {
        "$ne": "myValue"
      }
    },
    {
      "level": 5
    }
  ]
}

API Token

Schema for a single API Token

API Token Schema

{
  "$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
    }
  }
}

API Token Example

{
  "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

API Token Patch Schema

{
  "$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
}

API Token Patch Example

{
  "name": "My Updated API Token",
  "status": "inactive"
}

API Token Post

Schema for the body of an API Token creation request

API Token Post Schema

{
  "$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.restore",
                  "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.transferResources"
                ]
              }
            ]
          },
          {
            "type": "string",
            "enum": [
              "all.Instance",
              "all.Instance.read",
              "instance.*",
              "instance.get",
              "instance.patch",
              "instance.historicalSummaries",
              "instance.generateReport",
              "instance.payloadCounts",
              "instance.payloadCountsBreakdown",
              "instance.deviceCounts",
              "instance.notebookMinuteCounts",
              "instanceOrg.*",
              "instanceOrg.get",
              "instanceOrg.patch",
              "instanceOrg.delete",
              "instanceOrg.payloadCounts",
              "instanceOrg.payloadCountsBreakdown",
              "instanceOrg.deviceCounts",
              "instanceOrg.notebookMinuteCounts",
              "instanceOrg.convertToEnterprise",
              "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",
              "instanceNotificationRules.*",
              "instanceNotificationRules.get",
              "instanceNotificationRules.post",
              "instanceNotificationRule.*",
              "instanceNotificationRule.get",
              "instanceNotificationRule.patch",
              "instanceNotificationRule.delete",
              "instanceNotificationRule.evaluate",
              "instanceNotificationRule.logs",
              "instanceSandbox.*",
              "instanceSandbox.get",
              "instanceSandbox.delete",
              "instanceSandbox.undelete",
              "instanceSandbox.payloadCounts",
              "instanceSandbox.payloadCountsBreakdown",
              "instanceSandbox.deviceCounts",
              "instanceSandbox.notebookMinuteCounts",
              "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"
  ]
}

API Token Post Example

{
  "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

API Tokens Schema

{
  "$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"
      ]
    }
  }
}

API Tokens Example

{
  "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

Application Schema

{
  "$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": {
            "appFile": {
              "type": "object",
              "patternProperties": {
                ".*": {
                  "type": "number"
                }
              }
            },
            "dataTable": {
              "type": "object",
              "patternProperties": {
                ".*": {
                  "type": "number"
                }
              }
            },
            "deviceCreate": {
              "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"
                }
              }
            },
            "inboundEmail": {
              "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"
                }
              }
            },
            "resourceJob": {
              "type": "object",
              "patternProperties": {
                ".*": {
                  "type": "number"
                }
              }
            },
            "timer": {
              "type": "object",
              "patternProperties": {
                ".*": {
                  "type": "number"
                }
              }
            },
            "virtualButton": {
              "type": "object",
              "patternProperties": {
                ".*": {
                  "type": "number"
                }
              }
            },
            "webhook": {
              "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
    }
  }
}

Application Example

{
  "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

Application Apply Template Patch Schema Schema

{
  "$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
}

Application Apply Template Patch Schema Example

{
  "templateId": "575ec8687ae143cd83dc4a97",
  "email": "email@example.com"
}

Application Certificate

Schema for a single Application Certificate

Application Certificate Schema

{
  "$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
      }
    }
  }
}

Application Certificate Example

{
  "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

Application Certificate Authorities Schema

{
  "$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}$"
    }
  }
}

Application Certificate Authorities Example

{
  "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

Application Certificate Authority Schema

{
  "$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"
          }
        }
      }
    }
  }
}

Application Certificate Authority Example

{
  "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

Application Certificate Authority Patch Schema

{
  "$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
}

Application Certificate Authority Patch Example

{
  "status": "active",
  "description": "An example updated authority description"
}

Application Certificate Authority Post

Schema for the body of an Application Certificate Authority creation request

Application Certificate Authority Post Schema

{
  "$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
}

Application Certificate Authority Post Example

{
  "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

Application Certificate Patch Schema

{
  "$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
}

Application Certificate Patch Example

{
  "status": "active",
  "description": "An example updated certificate description"
}

Application Certificate Post

Schema for the body of an Application Certificate creation request

Application Certificate Post Schema

{
  "$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
}

Application Certificate Post Example

{
  "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

Application Certificates Schema

{
  "$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}$"
    }
  }
}

Application Certificates Example

{
  "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

Success Dry Run Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "requiresJob": {
      "type": "boolean"
    }
  }
}

Success Dry Run Example

{
  "success": true,
  "jobRequired": false
}

Application Clone Post Schema

Schema for the body of an application clone request

Application Clone Post Schema Schema

{
  "$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
}

Application Clone Post Schema Example

{
  "includeFiles": true,
  "includeDevices": true,
  "ownerType": "organization",
  "ownerId": "575ec8687ae143cd83dc4a98"
}

Application Creation By Template Result

Schema for creating an application by template result

Application Creation By Template Result Schema

{
  "$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": {
                "appFile": {
                  "type": "object",
                  "patternProperties": {
                    ".*": {
                      "type": "number"
                    }
                  }
                },
                "dataTable": {
                  "type": "object",
                  "patternProperties": {
                    ".*": {
                      "type": "number"
                    }
                  }
                },
                "deviceCreate": {
                  "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"
                    }
                  }
                },
                "inboundEmail": {
                  "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"
                    }
                  }
                },
                "resourceJob": {
                  "type": "object",
                  "patternProperties": {
                    ".*": {
                      "type": "number"
                    }
                  }
                },
                "timer": {
                  "type": "object",
                  "patternProperties": {
                    ".*": {
                      "type": "number"
                    }
                  }
                },
                "virtualButton": {
                  "type": "object",
                  "patternProperties": {
                    ".*": {
                      "type": "number"
                    }
                  }
                },
                "webhook": {
                  "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
}

Application Creation By Template Result Example

{
  "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

Application Dashboard Post Schema

{
  "$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
                          }
                        },
                        "query": {
                          "type": "string",
                          "maxLength": 32767
                        },
                        "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
                              }
                            },
                            "query": {
                              "type": "string",
                              "maxLength": 32767
                            },
                            "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
                              }
                            },
                            "query": {
                              "type": "string",
                              "maxLength": 32767
                            },
                            "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
                    }
                  },
                  "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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",
                      "needle"
                    ]
                  },
                  "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
                        }
                      },
                      "query": {
                        "type": "string",
                        "maxLength": 32767
                      },
                      "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
                          }
                        },
                        "query": {
                          "type": "string",
                          "maxLength": 32767
                        }
                      },
                      "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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"
                    ]
                  }
                },
                "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
                              }
                            },
                            "query": {
                              "type": "string",
                              "maxLength": 32767
                            },
                            "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
                          }
                        },
                        "query": {
                          "type": "string",
                          "maxLength": 32767
                        },
                        "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
                                  }
                                },
                                "query": {
                                  "type": "string",
                                  "maxLength": 32767
                                }
                              },
                              "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
                                  }
                                },
                                "query": {
                                  "type": "string",
                                  "maxLength": 32767
                                }
                              },
                              "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
                                  }
                                },
                                "query": {
                                  "type": "string",
                                  "maxLength": 32767
                                }
                              },
                              "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
                                  }
                                },
                                "query": {
                                  "type": "string",
                                  "maxLength": 32767
                                }
                              },
                              "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
                              }
                            },
                            "query": {
                              "type": "string",
                              "maxLength": 32767
                            },
                            "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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
                  },
                  "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
                          }
                        },
                        "query": {
                          "type": "string",
                          "maxLength": 32767
                        },
                        "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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"
  ]
}

Application Dashboard Post Example

{
  "name": "My New Dashboard",
  "public": false
}

Application Export Post Schema

Schema for the body of an application export request

Application Export Post Schema Schema

{
  "$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
}

Application Export Post Schema Example

{
  "includeFiles": true,
  "includeDevices": true,
  "email": "test@example.com"
}

Application Export Result

Schema for an application export result

Application Export Result Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "url": {
      "type": "string"
    }
  },
  "additionalProperties": false
}

Application Export Result Example

{
  "url": "https://example.com/applicationExport.zip"
}

Application Global Patch

Schema for the body of an Application Global modification request

Application Global Patch Schema

{
  "$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"
    ]
  }
}

Application Global Patch Example

[
  {
    "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

Application Import Executions Schema

{
  "$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
      }
    }
  }
}

Application Import Executions Example

[
  {
    "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

Application Key Schema

{
  "$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
      }
    }
  }
}

Application Key Example

{
  "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

Application Key Patch Schema

{
  "$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
}

Application Key Patch Example

{
  "status": "active",
  "description": "An example updated key description"
}

Application Key Post

Schema for the body of an Application Key creation request

Application Key Post Schema

{
  "$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
}

Application Key Post Example

{
  "description": "An example new key description",
  "filterType": "all",
  "pubTopics": [],
  "subTopics": []
}

Application Key Post Response

Schema for a response of Application Key creation

Application Key Post Response Schema

{
  "$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
      }
    }
  }
}

Application Key Post Response Example

{
  "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

Application Keys Schema

{
  "$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}$"
    }
  }
}

Application Keys Example

{
  "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

Application Patch Schema

{
  "$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
}

Application Patch Example

{
  "name": "My Updated Application",
  "description": "Description of my updated application"
}

Application Post

Schema for the body of an Application creation request

Application Post Schema

{
  "$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"
  ]
}

Application Post Example

{
  "name": "My New Application",
  "description": "Description of my new application"
}

Application Readme

Schema for an Application Readme

Application Readme Schema

{
  "$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"
    }
  }
}

Application Readme Example

{
  "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

Application Readme Patch Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "content": {
      "type": "string",
      "maxLength": 131072
    }
  },
  "additionalProperties": false
}

Application Readme Patch Example

{
  "content": "The new readme content"
}

Application Search Result

Results of a search of an application’s resources

Application Search Result Schema

{
  "$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",
        "properties": {
          "descriptor": {
            "type": "string"
          },
          "parentDirectory": {
            "type": "string"
          },
          "contentType": {
            "type": "string"
          }
        }
      },
      "version": {
        "type": "string"
      },
      "viewType": {
        "type": "string",
        "enum": [
          "layout",
          "page",
          "component"
        ]
      },
      "flowClass": {
        "type": "string",
        "enum": [
          "standalone",
          "gateway",
          "peripheral",
          "floating",
          "edgeCompute",
          "system",
          "embedded"
        ]
      },
      "deviceClass": {
        "type": "string",
        "enum": [
          "cloud",
          "edge",
          "embedded",
          "experience",
          "customNode"
        ]
      },
      "_type": {
        "type": "string",
        "enum": [
          "applicationApiToken",
          "credential",
          "dashboard",
          "dataTable",
          "deviceRecipe",
          "device",
          "experienceDomain",
          "event",
          "experienceEndpoint",
          "experienceGroup",
          "experienceSlug",
          "experienceUser",
          "experienceVersion",
          "experienceView",
          "file",
          "flow",
          "integration",
          "notebook",
          "resourceJob",
          "webhook"
        ]
      }
    },
    "required": [
      "id",
      "name",
      "_type"
    ]
  }
}

Application Search Result Example

[
  {
    "_type": "device",
    "name": "My Device #1",
    "metadata": {
      "descriptor": "a basic description of device #1"
    },
    "id": "575ec8687ae143cd83dc4a97"
  }
]

Application Template

Schema for a single Application Template

Application Template Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    },
    "templateId": {
      "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"
        }
      }
    }
  }
}

Application Template Example

{
  "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

Application Template Categories Schema

{
  "$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"
    }
  }
}

Application Template Categories Example

{
  "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

Application Template Category Schema

{
  "$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
    }
  }
}

Application Template Category Example

{
  "id": "586e9d5151265cb9d72f6ec6",
  "name": "Workflows",
  "description": "Pre-built workflows for quick solution development"
}

Application Templates

Schema for a collection of Application Templates

Application Templates Schema

{
  "$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}$"
          },
          "templateId": {
            "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",
        ""
      ]
    }
  }
}

Application Templates Example

{
  "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

Applications Schema

{
  "$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": {
                  "appFile": {
                    "type": "object",
                    "patternProperties": {
                      ".*": {
                        "type": "number"
                      }
                    }
                  },
                  "dataTable": {
                    "type": "object",
                    "patternProperties": {
                      ".*": {
                        "type": "number"
                      }
                    }
                  },
                  "deviceCreate": {
                    "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"
                      }
                    }
                  },
                  "inboundEmail": {
                    "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"
                      }
                    }
                  },
                  "resourceJob": {
                    "type": "object",
                    "patternProperties": {
                      ".*": {
                        "type": "number"
                      }
                    }
                  },
                  "timer": {
                    "type": "object",
                    "patternProperties": {
                      ".*": {
                        "type": "number"
                      }
                    }
                  },
                  "virtualButton": {
                    "type": "object",
                    "patternProperties": {
                      ".*": {
                        "type": "number"
                      }
                    }
                  },
                  "webhook": {
                    "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",
        ""
      ]
    }
  }
}

Applications Example

{
  "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

Attribute Names Response Schema

{
  "$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
    }
  }
}

Attribute Names Response Example

{
  "attributeNames": [
    "voltage",
    "location",
    "rpm"
  ]
}

Audit Log

Schema for a single Audit Log entry

Audit Log Schema

{
  "$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
    }
  }
}

Audit Log Example

{
  "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

Audit Log Filter Schema

{
  "$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
}

Audit Log Filter Example

{
  "primaryTarget": [
    {
      "type": "Dashboard"
    },
    {
      "type": "Application",
      "id": "575ec8687ae143cd83dc4a97"
    }
  ],
  "actor": [
    {
      "type": "User",
      "id": "575ed70c7ae143cd83dc4aa9"
    }
  ]
}

Audit Logs

Schema for a collection of Audit Logs

Audit Logs Schema

{
  "$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}$"
    }
  }
}

Audit Logs Example

{
  "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

Authenticated Device Schema

{
  "$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"
  ]
}

Authenticated Device Example

{
  "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

Authenticated User Schema

{
  "$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"
  ]
}

Authenticated User Example

{
  "userId": "575ed70c7ae143cd83dc4aa9",
  "token": "token_to_use_for_authenticating_subsequent_requests"
}

Bulk Deletion Response

Schema for the response to a bulk deletion

Bulk Deletion Response Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "removed": {
      "type": "number"
    },
    "failed": {
      "type": "number"
    }
  }
}

Bulk Deletion Response Example

{
  "removed": 3
}

Bulk Restoration Response

Schema for the response to a bulk restore request

Bulk Restoration Response Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "restored": {
      "type": "number"
    },
    "failed": {
      "type": "number"
    }
  }
}

Bulk Restoration Response Example

{
  "restored": 3
}

Change Password

Schema for the body of a request to change the current user’s password

Change Password Schema

{
  "$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
}

Change Password Example

{
  "newPassword": "yourNewPassword1!",
  "password": "yourCurrentPassword",
  "invalidateExistingTokens": true
}

Composite Device State

Schema for a composite Device state

Composite Device State Schema

{
  "$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
}

Composite Device State Example

{
  "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

Devices Composite State Schema

{
  "$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"
    }
  }
}

Devices Composite State Example

{
  "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

Credential Schema

{
  "$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",
        "mailgun",
        "snowflake"
      ]
    },
    "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
    },
    "mailgunConfig": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    },
    "snowflakeConfig": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "publicKey": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        }
      },
      "required": [
        "host",
        "username",
        "publicKey"
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "required": [
    "name",
    "type"
  ]
}

Credential Example

{
  "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

Credential Linked Resources Schema

{
  "$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": [
                            "appFile"
                          ]
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "delete": {
                              "type": "boolean"
                            },
                            "create": {
                              "type": "boolean"
                            },
                            "update": {
                              "type": "boolean"
                            }
                          },
                          "additionalProperties": false
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "category": {
                              "type": "string",
                              "enum": [
                                "trigger"
                              ]
                            },
                            "name": {
                              "type": "string",
                              "enum": [
                                "appFile"
                              ]
                            },
                            "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": [
                            "customNodeStart",
                            "deviceCreate",
                            "deviceCommand",
                            "deviceIdConnect",
                            "deviceTagConnect",
                            "deviceIdDisconnect",
                            "deviceTagDisconnect",
                            "inboundEmail",
                            "notebook",
                            "onBoot",
                            "onConnect",
                            "onDisconnect",
                            "resourceJobComplete",
                            "resourceJobIteration",
                            "resourceJobIterationTimeout",
                            "udp",
                            "webhook"
                          ]
                        },
                        "config": {
                          "type": "object",
                          "additionalProperties": false
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "category": {
                              "type": "string",
                              "enum": [
                                "trigger"
                              ]
                            },
                            "name": {
                              "type": "string",
                              "enum": [
                                "customNodeStart",
                                "deviceCreate",
                                "deviceCommand",
                                "deviceIdsTagsConnect",
                                "deviceIdsTagsDisconnect",
                                "eeaInit",
                                "flowError",
                                "inboundEmail",
                                "notebook",
                                "onBoot",
                                "onConnect",
                                "onDisconnect",
                                "resourceJobComplete",
                                "resourceJobIteration",
                                "resourceJobIterationTimeout",
                                "udp",
                                "webhook"
                              ]
                            },
                            "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": [
                            "beckhoff"
                          ]
                        },
                        "config": {
                          "type": "object",
                          "properties": {
                            "localAmsNetId": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "localAdsPort": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "targetAmsNetId": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "targetAdsPort": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "routerHost": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "routerTcpPort": {
                              "type": "string",
                              "maxLength": 1024
                            },
                            "cycleTimeMs": {
                              "type": "integer",
                              "minimum": 10,
                              "maximum": 3600000
                            },
                            "subscriptions": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "maxLength": 1024
                                  }
                                }
                              },
                              "maxItems": 100
                            },
                            "configName": {
                              "type": "string",
                              "maxLength": 1024
                            }
                          },
                          "additionalProperties": false
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
                            "category": {
                              "type": "string",
                              "enum": [
                                "trigger"
                              ]
                            },
                            "name": {
                              "type": "string",
                              "enum": [
                                "beckhoff"
                              ]
                            },
                            "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": [
                            "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"
                              ]
                            },
                            "allowInvalid": {
                              "type": "boolean"
                            }
                          },
                          "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": [
                                "appFile"
                              ]
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "delete": {
                                  "type": "boolean"
                                },
                                "create": {
                                  "type": "boolean"
                                },
                                "update": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "trigger"
                                  ]
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "appFile"
                                  ]
                                },
                                "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": [
                                "customNodeStart",
                                "deviceCreate",
                                "deviceCommand",
                                "deviceIdConnect",
                                "deviceTagConnect",
                                "deviceIdDisconnect",
                                "deviceTagDisconnect",
                                "inboundEmail",
                                "notebook",
                                "onBoot",
                                "onConnect",
                                "onDisconnect",
                                "resourceJobComplete",
                                "resourceJobIteration",
                                "resourceJobIterationTimeout",
                                "udp",
                                "webhook"
                              ]
                            },
                            "config": {
                              "type": "object",
                              "additionalProperties": false
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "trigger"
                                  ]
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "customNodeStart",
                                    "deviceCreate",
                                    "deviceCommand",
                                    "deviceIdsTagsConnect",
                                    "deviceIdsTagsDisconnect",
                                    "eeaInit",
                                    "flowError",
                                    "inboundEmail",
                                    "notebook",
                                    "onBoot",
                                    "onConnect",
                                    "onDisconnect",
                                    "resourceJobComplete",
                                    "resourceJobIteration",
                                    "resourceJobIterationTimeout",
                                    "udp",
                                    "webhook"
                                  ]
                                },
                                "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": [
                                "beckhoff"
                              ]
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "localAmsNetId": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "localAdsPort": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "targetAmsNetId": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "targetAdsPort": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "routerHost": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "routerTcpPort": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "cycleTimeMs": {
                                  "type": "integer",
                                  "minimum": 10,
                                  "maximum": 3600000
                                },
                                "subscriptions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 1024
                                      }
                                    }
                                  },
                                  "maxItems": 100
                                },
                                "configName": {
                                  "type": "string",
                                  "maxLength": 1024
                                }
                              },
                              "additionalProperties": false
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "trigger"
                                  ]
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "beckhoff"
                                  ]
                                },
                                "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": [
                                "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"
                                  ]
                                },
                                "allowInvalid": {
                                  "type": "boolean"
                                }
                              },
                              "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": [
                                "appFile"
                              ]
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "delete": {
                                  "type": "boolean"
                                },
                                "create": {
                                  "type": "boolean"
                                },
                                "update": {
                                  "type": "boolean"
                                }
                              },
                              "additionalProperties": false
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "trigger"
                                  ]
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "appFile"
                                  ]
                                },
                                "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": [
                                "customNodeStart",
                                "deviceCreate",
                                "deviceCommand",
                                "deviceIdConnect",
                                "deviceTagConnect",
                                "deviceIdDisconnect",
                                "deviceTagDisconnect",
                                "inboundEmail",
                                "notebook",
                                "onBoot",
                                "onConnect",
                                "onDisconnect",
                                "resourceJobComplete",
                                "resourceJobIteration",
                                "resourceJobIterationTimeout",
                                "udp",
                                "webhook"
                              ]
                            },
                            "config": {
                              "type": "object",
                              "additionalProperties": false
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "trigger"
                                  ]
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "customNodeStart",
                                    "deviceCreate",
                                    "deviceCommand",
                                    "deviceIdsTagsConnect",
                                    "deviceIdsTagsDisconnect",
                                    "eeaInit",
                                    "flowError",
                                    "inboundEmail",
                                    "notebook",
                                    "onBoot",
                                    "onConnect",
                                    "onDisconnect",
                                    "resourceJobComplete",
                                    "resourceJobIteration",
                                    "resourceJobIterationTimeout",
                                    "udp",
                                    "webhook"
                                  ]
                                },
                                "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": [
                                "beckhoff"
                              ]
                            },
                            "config": {
                              "type": "object",
                              "properties": {
                                "localAmsNetId": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "localAdsPort": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "targetAmsNetId": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "targetAdsPort": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "routerHost": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "routerTcpPort": {
                                  "type": "string",
                                  "maxLength": 1024
                                },
                                "cycleTimeMs": {
                                  "type": "integer",
                                  "minimum": 10,
                                  "maximum": 3600000
                                },
                                "subscriptions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "maxLength": 1024
                                      }
                                    }
                                  },
                                  "maxItems": 100
                                },
                                "configName": {
                                  "type": "string",
                                  "maxLength": 1024
                                }
                              },
                              "additionalProperties": false
                            },
                            "meta": {
                              "type": "object",
                              "properties": {
                                "category": {
                                  "type": "string",
                                  "enum": [
                                    "trigger"
                                  ]
                                },
                                "name": {
                                  "type": "string",
                                  "enum": [
                                    "beckhoff"
                                  ]
                                },
                                "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": [
                                "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"
                                  ]
                                },
                                "allowInvalid": {
                                  "type": "boolean"
                                }
                              },
                              "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
}

Credential Linked Resources Example

{
  "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": "<p>{{data}}</p>",
        "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"
  }
}

Credential Patch

Schema for a Credential update request

Credential Patch Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "description": {
      "type": "string",
      "maxLength": 32767
    },
    "enabled": {
      "type": "boolean"
    },
    "awsConfig": {
      "type": "object",
      "properties": {
        "accessKeyId": {
          "type": "string",
          "minLength": 16,
          "maxLength": 128
        },
        "secretAccessKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        },
        "region": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "azureConfig": {
      "type": "object",
      "properties": {
        "account": {
          "type": "string",
          "maxLength": 128
        },
        "accountKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "gcpConfig": {
      "type": "object",
      "properties": {
        "keyJson": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        }
      },
      "additionalProperties": false
    },
    "httpConfig": {
      "type": "object",
      "properties": {
        "uriMatch": {
          "type": "string",
          "minLength": 8,
          "maxLength": 1024
        },
        "authMethod": {
          "type": "string",
          "enum": [
            "header",
            "queryParam",
            "basicAuth",
            "clientCertificate"
          ]
        },
        "publicValue": {
          "type": "string",
          "maxLength": 8196
        },
        "secretValue": {
          "type": "string",
          "maxLength": 8196
        }
      },
      "additionalProperties": false
    },
    "sendgridConfig": {
      "type": "object",
      "properties": {
        "apiKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "twilioConfig": {
      "type": "object",
      "properties": {
        "accountSid": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        },
        "apiKeySid": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        },
        "apiKeySecret": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "logglyConfig": {
      "type": "object",
      "properties": {
        "customerToken": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "jwtConfig": {
      "type": "object",
      "properties": {
        "issuer": {
          "type": "string",
          "maxLength": 1024
        },
        "algorithm": {
          "type": "string",
          "enum": [
            "HS256",
            "HS384",
            "HS512",
            "RS256",
            "RS384",
            "RS512",
            "ES256",
            "ES384",
            "ES512"
          ]
        },
        "secret": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        }
      },
      "additionalProperties": false
    },
    "whatsappConfig": {
      "type": "object",
      "properties": {
        "accessToken": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "fromNumberId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "sqlConfig": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string",
          "enum": [
            "mssql",
            "mysql",
            "pg"
          ]
        },
        "host": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "port": {
          "oneOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 65535
            },
            {
              "type": "null"
            }
          ]
        },
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "password": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "secureConnection": {
          "type": "boolean"
        },
        "caCertificate": {
          "type": "string",
          "maxLength": 8196
        },
        "disableSSLVerification": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "mongodbConfig": {
      "type": "object",
      "properties": {
        "connectionUri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      },
      "additionalProperties": false
    },
    "mailgunConfig": {
      "type": "object",
      "properties": {
        "apiKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false
    },
    "snowflakeConfig": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "privateKey": {
          "type": "string",
          "maxLength": 8196
        },
        "generatePrivateKey": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}

Credential Patch Example

{
  "enabled": true,
  "azureConfig": {
    "account": "my account",
    "accountKey": "123abc"
  }
}

Credential Post

Schema for a Credential creation request

Credential Post Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "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",
        "mailgun",
        "snowflake"
      ]
    },
    "awsConfig": {
      "type": "object",
      "properties": {
        "accessKeyId": {
          "type": "string",
          "minLength": 16,
          "maxLength": 128
        },
        "secretAccessKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        },
        "region": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "accessKeyId",
        "secretAccessKey",
        "region"
      ]
    },
    "azureConfig": {
      "type": "object",
      "properties": {
        "account": {
          "type": "string",
          "maxLength": 128
        },
        "accountKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "accountKey"
      ]
    },
    "gcpConfig": {
      "type": "object",
      "properties": {
        "keyJson": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        }
      },
      "additionalProperties": false,
      "required": [
        "keyJson"
      ]
    },
    "httpConfig": {
      "type": "object",
      "properties": {
        "uriMatch": {
          "type": "string",
          "minLength": 8,
          "maxLength": 1024
        },
        "authMethod": {
          "type": "string",
          "enum": [
            "header",
            "queryParam",
            "basicAuth",
            "clientCertificate"
          ]
        },
        "publicValue": {
          "type": "string",
          "maxLength": 8196
        },
        "secretValue": {
          "type": "string",
          "maxLength": 8196
        }
      },
      "additionalProperties": false,
      "required": [
        "uriMatch",
        "authMethod",
        "secretValue"
      ]
    },
    "sendgridConfig": {
      "type": "object",
      "properties": {
        "apiKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "apiKey"
      ]
    },
    "twilioConfig": {
      "type": "object",
      "properties": {
        "accountSid": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        },
        "apiKeySid": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        },
        "apiKeySecret": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "accountSid",
        "apiKeySid",
        "apiKeySecret"
      ]
    },
    "logglyConfig": {
      "type": "object",
      "properties": {
        "customerToken": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "customerToken"
      ]
    },
    "jwtConfig": {
      "type": "object",
      "properties": {
        "issuer": {
          "type": "string",
          "maxLength": 1024
        },
        "algorithm": {
          "type": "string",
          "enum": [
            "HS256",
            "HS384",
            "HS512",
            "RS256",
            "RS384",
            "RS512",
            "ES256",
            "ES384",
            "ES512"
          ]
        },
        "secret": {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        }
      },
      "additionalProperties": false,
      "required": [
        "algorithm",
        "secret"
      ]
    },
    "whatsappConfig": {
      "type": "object",
      "properties": {
        "accessToken": {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        "fromNumberId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "accessToken",
        "fromNumberId"
      ]
    },
    "sqlConfig": {
      "type": "object",
      "properties": {
        "system": {
          "type": "string",
          "enum": [
            "mssql",
            "mysql",
            "pg"
          ]
        },
        "host": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "port": {
          "oneOf": [
            {
              "type": "integer",
              "minimum": 1,
              "maximum": 65535
            },
            {
              "type": "null"
            }
          ]
        },
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "password": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "secureConnection": {
          "type": "boolean"
        },
        "caCertificate": {
          "type": "string",
          "maxLength": 8196
        },
        "disableSSLVerification": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "required": [
        "system",
        "host",
        "username",
        "password"
      ]
    },
    "mongodbConfig": {
      "type": "object",
      "properties": {
        "connectionUri": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048
        }
      },
      "additionalProperties": false,
      "required": [
        "connectionUri"
      ]
    },
    "mailgunConfig": {
      "type": "object",
      "properties": {
        "apiKey": {
          "type": "string",
          "minLength": 4,
          "maxLength": 128
        }
      },
      "additionalProperties": false,
      "required": [
        "apiKey"
      ]
    },
    "snowflakeConfig": {
      "type": "object",
      "properties": {
        "host": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "username": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "privateKey": {
          "type": "string",
          "maxLength": 8196
        },
        "generatePrivateKey": {
          "type": "boolean"
        }
      },
      "additionalProperties": false,
      "anyOf": [
        {
          "required": [
            "host",
            "username",
            "privateKey"
          ]
        },
        {
          "required": [
            "host",
            "username",
            "generatePrivateKey"
          ]
        }
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "name",
    "type"
  ]
}

Credential Post Example

{
  "name": "locker",
  "type": "azure",
  "enabled": true,
  "azureConfig": {
    "account": "my account",
    "accountKey": "123abc"
  }
}

Credentials

Schema for a collection of Credentials

Credentials Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "title": "Credential",
        "description": "Schema for a single Credential",
        "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",
              "mailgun",
              "snowflake"
            ]
          },
          "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
          },
          "mailgunConfig": {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          },
          "snowflakeConfig": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "username": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "publicKey": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8192
              }
            },
            "required": [
              "host",
              "username",
              "publicKey"
            ],
            "additionalProperties": false
          }
        },
        "additionalProperties": false,
        "required": [
          "name",
          "type"
        ]
      }
    },
    "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}$"
    }
  }
}

Credentials Example

{
  "items": [
    {
      "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"
      }
    }
  ],
  "count": 1,
  "totalCount": 5,
  "perPage": 1,
  "page": 0,
  "sortField": "name",
  "sortDirection": "asc"
}

Dashboard

Schema for a single Dashboard

Dashboard Schema

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    },
    "dashboardId": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    },
    "creationDate": {
      "type": "string",
      "format": "date-time"
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time"
    },
    "ownerId": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    },
    "ownerType": {
      "type": "string",
      "enum": [
        "user",
        "organization"
      ]
    },
    "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"
      ]
    },
    "organizationName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "organizationIconColor": {
      "type": "string",
      "maxLength": 64
    },
    "applicationId": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    },
    "applicationName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "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"
      ]
    },
    "isPasswordProtected": {
      "type": "boolean"
    },
    "public": {
      "type": "boolean"
    },
    "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"
            ]
          }
        ]
      }
    },
    "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
                          }
                        },
                        "query": {
                          "type": "string",
                          "maxLength": 32767
                        },
                        "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
                              }
                            },
                            "query": {
                              "type": "string",
                              "maxLength": 32767
                            },
                            "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
                              }
                            },
                            "query": {
                              "type": "string",
                              "maxLength": 32767
                            },
                            "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
                    }
                  },
                  "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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
                    }
                  },
                  "query": {
                    "type": "string",
                    "maxLength": 32767
                  },
                  "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"
              }