{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-asset-status-schema.json",
  "title": "AssetStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-asset-statuses-api-openapi.yml#/components/schemas/AssetStatus",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "module": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "facilities",
        "infrastructure",
        null
      ],
      "description": "Workspace it is offered in. Null = shared by both."
    },
    "color": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "green",
        "blue",
        "amber",
        "red",
        null
      ],
      "description": "Badge color in the app. Null renders blue."
    },
    "system_key": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "archived",
        null
      ],
      "description": "Built-in status marker. archived = the tenant's Archived status, which can be renamed but not deleted or moved between workspaces. Null for statuses you created. Read-only."
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}