Employees
Employees: position, location, hiring details.
Module: HR (hr).
Endpoints
Section titled “Endpoints”GET /api/v1/employees- List with filters, sorting and pagination (scopehr:read)GET /api/v1/employees/{id}- A record by id (scopehr:read)POST /api/v1/employees- Create a record (scopehr:write)PATCH /api/v1/employees/{id}- Modify the submitted fields (scopehr:write)DELETE /api/v1/employees/{id}- Delete or deactivate (scopehr:write)POST /api/v1/employees/{id}/set_allowance- The employee’s leave days for a type and a year. (scopeleave:write)POST /api/v1/employees/{id}/add_activity- Adds an activity to the employee’s calendar. (scopescheduling:write)POST /api/v1/employees/{id}/assign- The employee’s department and manager. (scopehr:write)POST /api/v1/employees/{id}/set_schedule- Replaces the typical schedule and regenerates future shifts. (scoperoster:write)POST /api/v1/employees/{id}/add_repeat- Adds a recurring shift and generates its days. The typical schedule stays untouched. (scoperoster:write)POST /api/v1/employees/{id}/stop_repeat- Stops a recurring shift from tomorrow on. (scoperoster:write)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).party_id(string, uuid; read)location_id(string, uuid; write): Main locationjob_title(string; write): Positionhire_date(string, date; write): Hire dateterminate_date(string, date; write): Termination dateis_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 nameemail(string, email; write): Emailphone(string; write): Phonepayload_user_id(string, uuid; write): Login accountupdated_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): Departmentmanager_id(string, uuid; write): Line manager
Events
Section titled “Events”employees.createdemployees.updatedemployees.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.