{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-asset-condition-assessment-update-schema.json",
  "title": "AssetConditionAssessmentUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-asset-condition-assessments-api-openapi.yml#/components/schemas/AssetConditionAssessmentUpdate",
  "type": "object",
  "properties": {
    "asset_id": {
      "type": "string",
      "format": "uuid"
    },
    "assessed_on": {
      "type": "string",
      "format": "date",
      "description": "Date the asset was observed. Cannot be in the future."
    },
    "condition_score": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "replacement_cost": {
      "type": [
        "number",
        "null"
      ],
      "minimum": 0,
      "description": "Money in the organization's currency - GET /v1/organization-settings for currency_code"
    },
    "assessor_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "method": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "visual",
        "detailed",
        "vendor"
      ]
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "defects": {
      "type": "object",
      "additionalProperties": true
    }
  }
}