{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-assetmovement-request-schema.json",
  "title": "AssetmovementRequest",
  "description": "Asset movement request body data",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-asset-movements-api-openapi.yml#/components/schemas/AssetmovementRequest",
  "properties": {
    "assigned_type": {
      "description": "Type of the entity to whom the asset is being assigned",
      "type": "string",
      "format": "string",
      "enum": [
        "staff",
        "spm",
        "visitor"
      ]
    },
    "assigned_staff_id": {
      "description": "ID of the staff to whom the asset is being assigned, should only be set if assigned_type is 'staff'",
      "type": "integer",
      "format": "int32"
    },
    "assigned_spm_id": {
      "description": "ID of the contractor member to whom the asset is being assigned, should only be set if assigned_type is 'spm'",
      "type": "integer",
      "format": "int32"
    },
    "assigned_visitor_id": {
      "description": "ID of the visitor to whom the asset is being assigned, should only be set if assigned_type is 'visitor'",
      "type": "integer",
      "format": "int32"
    },
    "dueback": {
      "description": "Dueback date for the asset",
      "type": "string",
      "format": "date-time"
    }
  },
  "type": "object"
}