UserAsset
Resource
Customer Assets
Module
Endpoints | URI | Access Control | Description |
---|---|---|---|
get | GET /api/UserAsset/get |
Authentication only | Constrain to companies that have had a link accepted by this user, or locations belonging to the user himself |
find | GET /api/UserAsset/find |
Authentication only | |
save | POST /api/UserAsset/save |
Authentication only | |
save-batch | POST /api/UserAsset/save-batch |
Admin or Module WRITE | |
delete | POST /api/UserAsset/delete |
Authentication only |
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 UserAsset | Property |
---|---|---|---|
User | user_id |
Belongs To | User |
UserLocation | location_id |
Belongs To | UserLocation |
UserAssetCategory | category_id |
Belongs To | UserAssetCategory |
ServiceWorksheet | customer_asset_id |
Owns Many | ServiceWorksheet |
CustomerAssetFile | asset_id |
Owns Many | CustomerAssetFile |
CompanyForm | customer_asset_id |
Owns Many | CompanyForm |