{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assignar/json-schema/assignar-create-update-asset-attachment-request-schema.json",
  "title": "CreateUpdateAssetAttachmentRequest",
  "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/CreateUpdateAssetAttachmentRequest",
  "type": "object",
  "properties": {
    "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."
    },
    "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",
      "description": "Free-text notes on the asset attachment."
    },
    "external_id": {
      "type": "string",
      "maxLength": 50,
      "description": "Your own identifier for this asset attachment. Must be unique across the tenant — reusing a value is rejected with `[400] Unique Constraint Error - external_id`. A value longer than 50 characters is rejected with `[400] external_id must be 50 characters or fewer, received <n>.` rather than being truncated."
    }
  }
}