{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-asset-condition-assessment-schema.json",
  "title": "AssetConditionAssessment",
  "description": "A point-in-time condition assessment recorded against an asset.",
  "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/AssetConditionAssessment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "tenant_id": {
      "type": "string"
    },
    "asset_id": {
      "type": "string",
      "format": "uuid"
    },
    "assessed_on": {
      "type": "string",
      "format": "date"
    },
    "condition_score": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 100
    },
    "replacement_cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current replacement value (CRV) at assessment time. 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",
        "null"
      ],
      "additionalProperties": true
    },
    "update_purchase_cost": {
      "type": "boolean",
      "description": "Whether this assessment overwrote the asset's purchase_cost with the CRV (create-time only)"
    },
    "previous_purchase_cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "Read-only: the asset's purchase_cost before this assessment overwrote it. Money in the organization's currency - GET /v1/organization-settings for currency_code"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}