Clienvy API documentation

Time tracking employees


List employees with their time tracking defaults

GET
https://api.clienvy.io/employee/v1
/time-tracking-settings/employees

Returns every active employee with their default purchase and sale hourly rates and the minutes they are available per weekday. The rates are the defaults an employee starts with on a project. The availability is used as capacity in the planning.

List employees with their time tracking defaults › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

List employees with their time tracking defaults › Responses

Array of TimeTrackingEmployeeResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
purchase_hourly_rate
​number
sale_hourly_rate
​number
​object

Available minutes per weekday, keyed monday through sunday.


Update an employee's time tracking defaults

PUT
https://api.clienvy.io/employee/v1
/time-tracking-settings/employees/{employee}

Sets the default hourly rates and the minutes the employee is available on each day of the week. Only what is sent is changed. Send both rates together. The availability needs a value for every weekday, with 0 for a day the employee does not work.

Update an employee's time tracking defaults › path Parameters

employee
​string · uuid · required

The employee UUID

Update an employee's time tracking defaults › Headers

X-Organization-Id
​string · uuid · required

UUID of the organization (tenant) the request operates on.

Update an employee's time tracking defaults › Request Body

purchase_hourly_rate
​number · decimal

Default cost (purchase) hourly rate, at least 1. Required when sale_hourly_rate is sent.

sale_hourly_rate
​number · decimal

Default billable (sale) hourly rate, at least 1. Required when purchase_hourly_rate is sent.

​object

Available minutes per weekday, from 0 to 1440, keyed monday through sunday. Every weekday is required.

Update an employee's time tracking defaults › Responses

TimeTrackingEmployeeResource

id
​string · uuid
first_name
​string
last_name
​string
full_name
​string
purchase_hourly_rate
​number
sale_hourly_rate
​number
​object

Available minutes per weekday, keyed monday through sunday.