Sari la conținut

Flotă și echipamente: bunuri

Mașinile și echipamentele companiei: kind (vehicle, equipment), type_code din nomenclatorul assets.types, status (active, in_service, retired), locație și angajatul care le are.

Modul: Flotă și echipamente (assets).

  • GET /api/v1/assets - Listare cu filtre, sortare și paginare (scope assets:read)
  • GET /api/v1/assets/{id} - O înregistrare după id (scope assets:read)
  • POST /api/v1/assets - Creează o înregistrare (scope assets:write)
  • PATCH /api/v1/assets/{id} - Modifică câmpurile trimise (scope assets:write)
  • DELETE /api/v1/assets/{id} - Șterge sau dezactivează (scope assets:write)
  • POST /api/v1/assets/{id}/assign - Predă bunul unei persoane sau îl primește înapoi (scope assets:write)
  • POST /api/v1/assets/{id}/add_document - Atașează un document bunului (poliță, talon, certificat) (scope assets:write)
  • POST /api/v1/assets/{id}/remove_document - Șterge un document al bunului (scope assets:write)
  • id (string, uuid; citire): Identificator unic (UUID).
  • name (string; scriere, obligatoriu)
  • kind (string; scriere)
  • type_code (string; scriere)
  • code (string; scriere)
  • serial (string; scriere)
  • plate (string; scriere)
  • vin (string; scriere)
  • year (number; scriere)
  • location_id (string; scriere)
  • holder_employee_id (string; scriere)
  • status (string; scriere)
  • purchased_at (string, date; scriere)
  • purchase_value (number; scriere)
  • currency (string; scriere): Moneda (cod ISO, ex. RON).
  • odometer (number; scriere)
  • note (string; scriere)
  • version (integer; citire)
  • created_by (string; citire)
  • created_at (string, date-time; citire): Data creării (ISO 8601).
  • updated_at (string, date-time; citire): Data ultimei modificări (ISO 8601).
  • resource_id (string; scriere)
  • assets.created
  • assets.updated
  • assets.deleted