{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chatinbox-net/json-schema/chatinbox-net-template-schema.json",
  "title": "Template",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chatinbox-net-integration-api-openapi.yml#/components/schemas/Template",
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 500,
      "minLength": 0,
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "text": {
      "type": [
        "string",
        "null"
      ]
    },
    "expression": {
      "type": [
        "string",
        "null"
      ]
    },
    "integrationEventID": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "relatedItemID": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "relatedItemType": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "jsonModel": {
      "type": [
        "string",
        "null"
      ]
    },
    "uniqueID": {
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "createDate": {
      "type": "string",
      "format": "date-time"
    },
    "updatedDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "createdBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "updatedBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "dataStatus": {
      "$ref": "#/$defs/DataStatus"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DataStatus": {
      "enum": [
        0,
        1,
        2
      ],
      "type": "integer",
      "format": "int32"
    }
  }
}