Retrieve a list of all asset units with optional filtering and pagination
| page | integer >= 1 Default: 1 Page number for pagination |
| per_page | integer [ 1 .. 100 ] Default: 25 Number of items per page |
| sort | string Sort field |
| company_namespace | Array of strings Company namespace for filtering |
| asset | string Filter by asset ID |
| status | string Enum: "active" "maintenance" "retired" "disposed" Filter by status |
| location | string Filter by location |
| _id | Array of strings Filter by ID |
{- "success": true,
- "data": [
- {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
], - "paging": {
- "total": 0,
- "page": 0,
- "per_page": 0,
- "pages": 0
}
}Create a new asset unit entry
| asset required | string Asset ID reference |
| serial_number required | string Unique serial number for this unit |
| barcode | string Barcode identifier |
| status | string Default: "active" Enum: "active" "maintenance" "retired" "disposed" Initial status of the asset unit |
| condition | string Default: "good" Enum: "excellent" "good" "fair" "poor" Physical condition of the asset |
| location | string Current location of the asset unit |
| assigned_to | string User or department assigned to this asset |
| purchase_date | string <date> Date when the asset unit was purchased |
| warranty_expiry | string <date> Warranty expiration date |
| purchase_cost | number <float> Original purchase cost |
object | |
| notes | string Additional notes about the asset unit |
| custom_fields | object Custom fields for additional data |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Default: false Whether the asset unit is disabled |
{- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "string",
- "status": "active",
- "condition": "excellent",
- "location": "string",
- "assigned_to": "string",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "purchase_cost": 0,
- "depreciation": {
- "method": "straight-line",
- "rate": 0
}, - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Retrieve a specific asset unit by its ID
| id required | string Asset unit ID |
{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Update an existing asset unit
| id required | string Asset unit ID |
| serial_number | string Unique serial number for this unit |
| barcode | string Barcode identifier |
| status | string Enum: "active" "maintenance" "retired" "disposed" Status of the asset unit |
| condition | string Enum: "excellent" "good" "fair" "poor" Physical condition of the asset |
| location | string Current location of the asset unit |
| assigned_to | string User or department assigned to this asset |
| purchase_date | string <date> Date when the asset unit was purchased |
| warranty_expiry | string <date> Warranty expiration date |
| last_maintenance | string <date-time> Date of last maintenance |
| next_maintenance | string <date> Date of next scheduled maintenance |
| purchase_cost | number <float> Original purchase cost |
object | |
| notes | string Additional notes about the asset unit |
| custom_fields | object Custom fields for additional data |
| company_namespace | Array of strings Company namespace |
| disabled | boolean Whether the asset unit is disabled |
{- "serial_number": "string",
- "barcode": "string",
- "status": "active",
- "condition": "excellent",
- "location": "string",
- "assigned_to": "string",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 0,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": true
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}Delete multiple asset units by their IDs
| ids required | Array of strings Array of asset unit IDs to delete |
{- "ids": [
- "string"
]
}{- "success": true
}Update the status of an asset unit
| id required | string Asset unit ID |
| status required | string Enum: "active" "maintenance" "retired" "disposed" New status for the asset unit |
| reason | string Reason for status change |
| notes | string Additional notes |
{- "status": "active",
- "reason": "string",
- "notes": "string"
}{- "success": true,
- "data": {
- "_id": "507f1f77bcf86cd799439011",
- "asset": "507f1f77bcf86cd799439012",
- "serial_number": "AST-001-2024",
- "barcode": "123456789012",
- "status": "active",
- "condition": "good",
- "location": "Warehouse A, Section 2",
- "assigned_to": "507f1f77bcf86cd799439013",
- "purchase_date": "2019-08-24",
- "warranty_expiry": "2019-08-24",
- "last_maintenance": "2019-08-24T14:15:22Z",
- "next_maintenance": "2019-08-24",
- "purchase_cost": 1500,
- "depreciation": {
- "method": "straight-line",
- "rate": 0,
- "current_value": 0
}, - "maintenance_history": [
- {
- "date": "2019-08-24T14:15:22Z",
- "type": "routine",
- "description": "string",
- "cost": 0,
- "performed_by": "string"
}
], - "notes": "string",
- "custom_fields": { },
- "company_namespace": [
- "string"
], - "disabled": false,
- "createdAt": "2019-08-24T14:15:22Z",
- "modifiedAt": "2019-08-24T14:15:22Z",
- "SVClient": 0,
- "__v": 0
}
}