{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assignar/json-schema/assignar-asset-attachment-schema.json",
  "title": "AssetAttachment",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assignar-asset-attachments-api-openapi.yml#/components/schemas/AssetAttachment",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32",
      "description": "Unique identifier for the asset attachment."
    },
    "name": {
      "type": "string",
      "description": "Name of the asset attachment."
    },
    "description": {
      "type": "string",
      "description": "Description of the asset attachment."
    },
    "rego_number": {
      "type": "string",
      "description": "Registration number of the asset attachment."
    },
    "active": {
      "type": "boolean",
      "description": "Indicates if the asset attachment is active."
    },
    "modified_by": {
      "type": "integer",
      "format": "int32",
      "description": "ID of the user who last modified the asset attachment."
    },
    "modified_time": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the asset attachment was last modified."
    },
    "year": {
      "type": "string",
      "description": "Year of the asset attachment."
    },
    "make": {
      "type": "string",
      "description": "Make of the asset attachment."
    },
    "model": {
      "type": "string",
      "description": "Model of the asset attachment."
    },
    "serial_number": {
      "type": "string",
      "description": "Serial number of the asset attachment."
    },
    "charge_rate": {
      "type": "integer",
      "description": "Charge rate of the asset attachment."
    },
    "number_reading": {
      "type": "integer",
      "description": "Number reading of the asset attachment."
    },
    "comments": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free-text notes on the asset attachment. Stored as MEDIUMTEXT, so there is no practical length limit."
    },
    "external_id": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 50,
      "description": "Your own identifier for this asset attachment, unique across the tenant. This is the field to filter on when you need to turn an identifier from your own system into the `attachment_id` that `POST`/`PUT /assets` expects — for example `GET /asset-attachments?external_id=YOUR-KEY`."
    }
  }
}