{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/loadsmart/json-schema/loadsmart-spot-assignment-schema.json",
  "title": "SpotAssignment",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/loadsmart-yms-spot-assignment-api-openapi.yml#/components/schemas/SpotAssignment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the record",
      "readOnly": true
    },
    "createDateTime": {
      "format": "date-time",
      "type": "string",
      "description": "The date and time when the record was created",
      "readOnly": true
    },
    "createdBy": {
      "type": "object",
      "description": "The ID of the user who created the record",
      "readOnly": true
    },
    "lastChangedDateTime": {
      "format": "date-time",
      "type": "string",
      "description": "The date and time when the record was last changed",
      "readOnly": true
    },
    "spotId": {
      "type": "string",
      "format": "uuid",
      "description": "The id of the spot"
    },
    "assetVisitId": {
      "type": "object",
      "format": "uuid",
      "description": "The id of the asset visit"
    },
    "assetContainerId": {
      "type": "object",
      "format": "uuid",
      "description": "The id of the asset container"
    },
    "observation": {
      "type": "string",
      "description": "Extra data for the spot assignment"
    }
  },
  "required": [
    "id",
    "createDateTime",
    "createdBy",
    "lastChangedDateTime",
    "spotId",
    "assetVisitId",
    "assetContainerId"
  ]
}