{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-update-trigger-dto-schema.json",
  "title": "UpdateTriggerDto",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-custom-forms-triggers-api-openapi.yml#/components/schemas/UpdateTriggerDto",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object"
    },
    "app": {
      "$ref": "#/$defs/AppsEnum"
    },
    "category": {
      "$ref": "#/$defs/CustomFormFlowCategoryEnum"
    },
    "flowId": {
      "type": "object"
    },
    "objectId": {
      "type": "string"
    },
    "entityName": {
      "$ref": "#/$defs/CustomFormFlowEntitiesEnum"
    },
    "updateRelatedTriggers": {
      "type": "boolean",
      "default": false,
      "description": "If true, it will update the related triggers of the flow, with the same flow.parentCode"
    }
  },
  "$defs": {
    "AppsEnum": {
      "type": "string",
      "description": "The app that this trigger will be activated, based on the source of the request",
      "enum": [
        "api",
        "warehouse",
        "carrier",
        "driver",
        "all"
      ]
    },
    "CustomFormFlowCategoryEnum": {
      "type": "string",
      "description": "The event category that this trigger will be activated on",
      "enum": [
        "appointmentStatusCompleted",
        "appointmentStatusArrived",
        "appointmentCreated",
        "assetVisitCreated",
        "manualTrigger"
      ]
    },
    "CustomFormFlowEntitiesEnum": {
      "type": "string",
      "description": "The entity name that qualifies the objectId this trigger will be activated",
      "enum": [
        "loadtype",
        "dock",
        "warehouse"
      ]
    }
  }
}