EquipmentType Resource
Equipment Module
Equipment types (make/model style classifications) used when creating equipment records. Charge-out rates: use charge_out_rates_json (current). Shape example: {"hour":{"enabled":true,"rate":200},"day":{"enabled":false,"rate":112}}. Prefer enabled unit rates from that JSON when comparing cost/price. Legacy fields charge_out_rate and charge_out_rate_unit are fallbacks only when the JSON has no enabled rate for the unit.
| Endpoints | URI | Access Control | Description |
|---|---|---|---|
| delete | POST /api/EquipmentType/delete |
Admin or Module WRITE | |
| get | GET /api/EquipmentType/get |
Admin or Module READ | |
| find | GET /api/EquipmentType/find |
Admin or Module READ | |
| save | POST /api/EquipmentType/save |
Admin or Module WRITE | |
| save-batch | POST /api/EquipmentType/save-batch |
Admin or Module WRITE |
| Property | Type | Description |
|---|---|---|
id |
number | |
slug |
string | |
category_id |
number | |
name |
string | |
charge_out_rate |
number | |
charge_out_rate_unit |
string | |
charge_out_rates_json |
string | Current multi-unit charge-out rates for this equipment type. JSON object keyed by unit, for example:
Prefer an enabled unit rate when comparing price or billing. Legacy fields |
default_cost_hr |
number | |
odo_unit |
string | |
custom_fields_json |
string | Definitions of custom fields for this equipment type (schema). Typically a JSON array of objects such as |
color_hex |
string | |
icon |
string | |
created_at |
datetime | |
updated_at |
datetime | |
updated_by |
number |
| Setting | |
|---|---|
Pagination Limit (when page parameter is set) |
None |
| Default Sort Order |
name ASC |
| Related Resource | Key | Relationship to EquipmentType | Property |
|---|---|---|---|
| Equipment | type_id |
Owns Many | Equipment |
| EquipmentCategory | category_id |
Belongs To | EquipmentCategory |
| EquipmentMaintenanceEventType | maintenance_event_id |
Owns Many | EquipmentMaintenanceEventType |