API ReferenceAsset
asset.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| siteId | string | Yes | — | ID of the associated site |
| name | string | Yes | — | Name |
| systemId | string | No | — | ID of the associated system |
| parentAssetId | string | No | — | ID of the associated parent asset |
| assetType | enum(controller, panel, camera, sensor, reader, lock, switch, server, nvr_dvr, workstation, ups, pdu, enclosure, module, cable_run, access_point, intercom_station, other) | Yes | — | Asset type |
| manufacturer | string | No | — | Manufacturer |
| model | string | No | — | Model |
| serialNumber | string | No | — | Serial number |
| firmwareVersion | string | No | — | Firmware version |
| configVersion | string | No | — | Config version |
| ipAddress | string | No | — | Ip address |
| macAddress | string | No | — | Mac address |
| networkSegment | string | No | — | Network segment |
| installDate | string.date-time | No | — | Install date |
| warrantyExpiration | string.date-time | No | — | Warranty expiration |
| supportContractId | string.uuid | No | — | ID of the associated support contract |
| lifecycleStatus | enum(planned, ordered, installed, active, maintenance, failed, decommissioned, disposed) | Yes | "planned" | Lifecycle status |
| locationSpaceId | string | No | — | ID of the associated location space |
| qrCode | string | No | — | Qr code |
| externalIds | object | No | — | External ids |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
| projectId | string.uuid | No | — | ID of the associated project |
| acquisitionMethod | enum(installed, takeover, purchased, transferred) | No | — | Acquisition method |
| previousVendor | string | No | — | Previous vendor |
| originalInstallDate | string.date-time | No | — | Original install date |
| conditionAtAcquisition | enum(excellent, good, fair, poor, unknown) | No | — | Condition at acquisition |
| conditionNotes | string | No | — | Condition notes |
| assetTag | string | No | — | Asset tag |
| notes | string | No | — | Notes |
Example
{
"siteId": "550e8400-e29b-41d4-a716-446655440000",
"name": "Example Name",
"systemId": "550e8400-e29b-41d4-a716-446655440000",
"parentAssetId": "550e8400-e29b-41d4-a716-446655440000",
"assetType": "controller",
"manufacturer": "example",
"lifecycleStatus": "planned",
"visibilityMode": "global"
}