{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mri-software/json-schema/mri-software-asset-request-schema.json",
  "title": "AssetRequest",
  "description": "Asset request body data",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mri-software-assets-api-openapi.yml#/components/schemas/AssetRequest",
  "properties": {
    "type_id": {
      "description": "Type ID of the asset",
      "type": "integer",
      "format": "int32"
    },
    "name": {
      "description": "Name of the asset",
      "type": "string",
      "format": "string"
    },
    "tag": {
      "description": "Tag of the asset",
      "type": "string",
      "format": "string"
    },
    "reference": {
      "description": "Reference of the asset",
      "type": "string",
      "format": "string"
    },
    "department_id": {
      "description": "Department ID of the asset",
      "type": "integer",
      "format": "int32"
    },
    "notes": {
      "description": "Notes for the asset",
      "type": "string",
      "format": "string"
    },
    "geo_lat": {
      "description": "Geolocation latitude of the asset",
      "type": "string",
      "format": "string"
    },
    "geo_lon": {
      "description": "Geolocation longitude of the asset",
      "type": "string",
      "format": "string"
    },
    "owner_type": {
      "type": "string",
      "enum": [
        "org",
        "sp"
      ]
    },
    "owner_staff_id": {
      "description": "Asset owner staff ID, should only be set if owner_type is 'org'",
      "type": "integer",
      "format": "int32"
    },
    "owner_sp_id": {
      "description": "Asset owner contractor ID, should only be set if owner_type is 'sp'",
      "type": "integer",
      "format": "int32"
    },
    "location_id": {
      "description": "Location ID of the asset",
      "type": "integer",
      "format": "int32"
    }
  },
  "type": "object"
}