CustomerAsset
Resource
Customer Assets
Module
Endpoints | URI | Access Control | Description |
---|---|---|---|
save | POST /api/CustomerAsset/save |
Authentication only | |
save-batch | POST /api/CustomerAsset/save-batch |
Admin or Module WRITE | |
get | GET /api/CustomerAsset/get |
Authentication only | |
find | GET /api/CustomerAsset/find |
Admin or Module READ | |
delete | POST /api/CustomerAsset/delete |
Admin or Module WRITE |
Property | Type | Description |
---|---|---|
id |
number | |
slug |
string | |
contact_id |
number | |
user_id |
number | |
location_id |
number | |
template_id |
number | |
category_id |
number | |
description |
string | |
serial_num |
string | |
date_acquired |
date | |
notes |
string | |
next_service_date |
date | |
next_service_description |
string | |
next_service_mileage_or_time |
number | |
last_service_date |
date | |
last_service_description |
string | |
last_service_mileage_or_time |
number | |
parts_json |
string | |
custom_fields_json |
string | |
location_type |
string | |
address |
string | |
suite |
string | |
city |
string | |
province |
string | |
country |
string | |
postal_code |
string | |
lat |
number | |
long |
number | |
asset_id |
number | |
created_at |
datetime | |
updated_at |
datetime | |
updated_by |
number |
Setting | |
---|---|
Pagination Limit (when page parameter is set) |
50 per page |
Default Sort Order | By insertion order |
Related Resource | Key | Relationship to CustomerAsset | Property |
---|---|---|---|
Contact | contact_id |
Belongs To | Contact |
ContactLocation | location_id |
Belongs To | ContactLocation |
CustomerAssetTemplate | template_id |
Belongs To | CustomerAssetTemplate |
CustomerAssetCategory | category_id |
Belongs To | CustomerAssetCategory |
ServiceWorksheet | customer_asset_id |
Owns Many | ServiceWorksheet |
CustomerAssetFile | asset_id |
Owns Many | CustomerAssetFile |
CompanyForm | customer_asset_id |
Owns Many | CompanyForm |
UserAsset | asset_id |
Belongs To | UserAsset |
Checklist | checklist_id |
Owns Many | Checklist |
FormChildTemplate | child_template_id |
Owns Many | FormChildTemplate |