Fleet and equipment: items
Company vehicles and equipment: kind (vehicle, equipment), type_code from the assets.types list, status (active, in_service, retired), location and the employee who holds them.
Module: Fleet and equipment (assets).
Endpoints
Section titled “Endpoints”GET /api/v1/assets- List with filters, sorting and pagination (scopeassets:read)GET /api/v1/assets/{id}- A record by id (scopeassets:read)POST /api/v1/assets- Create a record (scopeassets:write)PATCH /api/v1/assets/{id}- Modify the submitted fields (scopeassets:write)DELETE /api/v1/assets/{id}- Delete or deactivate (scopeassets:write)POST /api/v1/assets/{id}/assign- Hands the item to a person or takes it back (scopeassets:write)POST /api/v1/assets/{id}/add_document- Attaches a document to the item (policy, registration, certificate) (scopeassets:write)POST /api/v1/assets/{id}/remove_document- Deletes a document of the item (scopeassets:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).name(string; write, required)kind(string; write)type_code(string; write)code(string; write)serial(string; write)plate(string; write)vin(string; write)year(number; write)location_id(string; write)holder_employee_id(string; write)status(string; write)purchased_at(string, date; write)purchase_value(number; write)currency(string; write): Currency (ISO code, e.g. RON).odometer(number; write)note(string; write)version(integer; read)created_by(string; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).resource_id(string; write)
Events
Section titled “Events”assets.createdassets.updatedassets.deleted