{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/milemaker-com/json-schema/milemaker-com-create-asset-trace-response-schema.json",
  "title": "CreateAssetTraceResponse",
  "description": "Trace model with metadata.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/milemaker-com-openapi.yml#/components/schemas/CreateAssetTraceResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "description": "A trace identifier",
      "type": "string",
      "format": "uuid"
    },
    "orgId": {
      "description": "An organization identifier",
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "description": "A trace name",
      "minLength": 1,
      "maxLength": 128
    },
    "status": {
      "type": "string",
      "enum": [
        "pending_upload",
        "processing",
        "available",
        "processing_failed",
        "pending_delete"
      ],
      "minLength": 1,
      "maxLength": 20
    },
    "startTime": {
      "type": "string",
      "format": "date-time",
      "description": "If the uploaded trace provides timestamps, this represents timestamp value of the first record."
    },
    "endTime": {
      "type": "string",
      "format": "date-time",
      "description": "If the uploaded trace provides timestamps, this represents timestamp value of the last record."
    },
    "startCoordinates": {
      "$ref": "#/$defs/AssetTraceCoordinates"
    },
    "endCoordinates": {
      "$ref": "#/$defs/AssetTraceCoordinates"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "orgId",
    "name",
    "status",
    "createdAt",
    "updatedAt"
  ],
  "$defs": {
    "AssetTraceCoordinates": {
      "type": "object",
      "description": "Latitude and Longitude are the units that represent the coordinates at geographic coordinate system",
      "additionalProperties": false,
      "required": [
        "lat",
        "lon"
      ],
      "properties": {
        "lat": {
          "type": "number",
          "format": "double",
          "minimum": -90,
          "maximum": 90,
          "description": "Latitude"
        },
        "lon": {
          "type": "number",
          "format": "double",
          "minimum": -180,
          "maximum": 180,
          "description": "Longitude"
        }
      }
    }
  }
}