{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-asset-betterment-create-schema.json",
  "title": "AssetBettermentCreate",
  "description": "`capitalized_amount` and `added_life_years` are both optional and may be 0; omitted,\nthe amount is stored as 0 and added life as null.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-asset-betterments-api-openapi.yml#/components/schemas/AssetBettermentCreate",
  "type": "object",
  "required": [
    "asset_id",
    "occurred_on"
  ],
  "properties": {
    "asset_id": {
      "type": "string",
      "format": "uuid"
    },
    "occurred_on": {
      "type": "string",
      "format": "date"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "capitalized_amount": {
      "type": "number",
      "description": "Money in the organization's currency - GET /v1/organization-settings for currency_code"
    },
    "added_life_years": {
      "type": [
        "number",
        "null"
      ]
    },
    "asset_lifecycle_event_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "work_order_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "project_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "asset_cost_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    }
  }
}