{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-update-load-type-dto-schema.json",
  "title": "UpdateLoadTypeDto",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-load-types-api-openapi.yml#/components/schemas/UpdateLoadTypeDto",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object"
    },
    "orgId": {
      "type": "string"
    },
    "warehouseId": {
      "type": "string"
    },
    "direction": {
      "type": "string",
      "enum": [
        "Inbound",
        "Outbound",
        "Inbound/Outbound"
      ]
    },
    "operation": {
      "type": "string",
      "enum": [
        "Live",
        "Drop",
        "Other"
      ]
    },
    "equipmentType": {
      "type": "string",
      "enum": [
        "Dry Van",
        "Flatbed",
        "Reefer",
        "Other"
      ]
    },
    "transportationMode": {
      "type": "string",
      "enum": [
        "FTL",
        "PTL",
        "Other"
      ]
    },
    "allowCarrierScheduling": {
      "type": "boolean"
    },
    "description": {
      "type": "object"
    },
    "settings": {
      "type": "object"
    },
    "schedule": {
      "$ref": "#/$defs/ScheduleDto"
    },
    "name": {
      "type": "string"
    },
    "duration_min": {
      "type": "number"
    }
  },
  "$defs": {
    "ClockSpan": {
      "type": "object",
      "properties": {
        "end": {
          "type": "string"
        },
        "start": {
          "type": "string"
        }
      },
      "required": [
        "end",
        "start"
      ]
    },
    "ScheduleDto": {
      "type": "object",
      "properties": {
        "sunday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "monday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "tuesday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "wednesday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "thursday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "friday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "saturday": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ClockSpan"
          }
        },
        "version": {
          "type": "number"
        },
        "closedIntervals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TimeInterval"
          }
        }
      },
      "required": [
        "sunday",
        "monday",
        "tuesday",
        "wednesday",
        "thursday",
        "friday",
        "saturday",
        "version",
        "closedIntervals"
      ]
    },
    "TimeInterval": {
      "type": "object",
      "properties": {
        "end": {
          "format": "date-time",
          "type": "string"
        },
        "start": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "end",
        "start"
      ]
    }
  }
}