Skip to content

Employees

Employees: position, location, hiring details.

Module: HR (hr).

  • GET /api/v1/employees - List with filters, sorting and pagination (scope hr:read)
  • GET /api/v1/employees/{id} - A record by id (scope hr:read)
  • POST /api/v1/employees - Create a record (scope hr:write)
  • PATCH /api/v1/employees/{id} - Modify the submitted fields (scope hr:write)
  • DELETE /api/v1/employees/{id} - Delete or deactivate (scope hr:write)
  • POST /api/v1/employees/{id}/set_allowance - The employee’s leave days for a type and a year. (scope leave:write)
  • POST /api/v1/employees/{id}/add_activity - Adds an activity to the employee’s calendar. (scope scheduling:write)
  • POST /api/v1/employees/{id}/assign - The employee’s department and manager. (scope hr:write)
  • POST /api/v1/employees/{id}/set_schedule - Replaces the typical schedule and regenerates future shifts. (scope roster:write)
  • POST /api/v1/employees/{id}/add_repeat - Adds a recurring shift and generates its days. The typical schedule stays untouched. (scope roster:write)
  • POST /api/v1/employees/{id}/stop_repeat - Stops a recurring shift from tomorrow on. (scope roster:write)
  • id (string, uuid; read): Unique identifier (UUID).
  • party_id (string, uuid; read)
  • location_id (string, uuid; write): Main location
  • job_title (string; write): Position
  • hire_date (string, date; write): Hire date
  • terminate_date (string, date; write): Termination date
  • is_active (boolean; write): Whether the record is active.
  • custom_fields (object; read): Custom fields (key-value object). Definitions are created in the ERP; see the guide on docs.rivil.app.
  • created_at (string, date-time; read): Creation date (ISO 8601).
  • full_name (string; write, required): Full name
  • email (string, email; write): Email
  • phone (string; write): Phone
  • payload_user_id (string, uuid; write): Login account
  • updated_at (string, date-time; read): Last modification date (ISO 8601).
  • photo_key (string; read)
  • accepts_clients (boolean; write): Takes appointments (can be booked)
  • max_parallel (integer; read)
  • department_id (string, uuid; write): Department
  • manager_id (string, uuid; write): Line manager
  • employees.created
  • employees.updated
  • employees.deleted

Accepts custom fields in custom_fields. docs.rivil.app documents the capability; the list for your company is in the ERP, under Settings, API.