Fleet and equipment: due dates
What expires on each item (type_code from assets.deadline_types), with due_date, repeat_months, remind_days and status (open, done). The complete action closes a due date and opens the next one. Filter with filter[asset_id].
Module: Fleet and equipment (assets).
Endpoints
Section titled “Endpoints”GET /api/v1/asset_deadlines- List with filters, sorting and pagination (scopeassets:read)GET /api/v1/asset_deadlines/{id}- A record by id (scopeassets:read)POST /api/v1/asset_deadlines- Create a record (scopeassets:write)PATCH /api/v1/asset_deadlines/{id}- Modify the submitted fields (scopeassets:write)DELETE /api/v1/asset_deadlines/{id}- Delete or deactivate (scopeassets:write)POST /api/v1/asset_deadlines/{id}/complete- Marks the due date as done and opens the next one (scopeassets:write)POST /api/v1/asset_deadlines/{id}/create_task- Creates a task from the due date (scopeassets:write, tasks:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).asset_id(string; write, required)type_code(string; write, required)due_date(string, date; write)repeat_months(number; write)remind_days(number; write)status(string; read)done_at(string, date; read)cost(number; read)note(string; write)notified_at(string, date-time; read)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).due_km(number; write)repeat_km(number; write)remind_km(number; write)done_km(integer; read)expense_id(string, uuid; read)
Events
Section titled “Events”asset_deadlines.createdasset_deadlines.updatedasset_deadlines.deleted