Planning
List planned work
Returns every allocation that overlaps the given date range, ordered by start date, in a
compact form. The result is not paginated. When project_id is given, only that project's
allocations are returned and the date range may be left out; without it the range can span at
most 366 days. Without the time-tracking.view-all permission only the authenticated
employee's allocations are returned.
query Parameters
fromStart of the range (Y-m-d). Required unless project_id is given, and always together with to.
toEnd of the range (Y-m-d). Required unless project_id is given, and always together with from.
employee_idsOnly return the allocations of these employees. Accepts a comma-separated list of UUIDs.
project_idOnly return the allocations planned on this project.
project_phase_idOnly return the allocations planned on this phase.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List planned work › Responses
Plan work
Plans a block of work for an employee. minutes_per_day is the time the employee spends on
it on each day between starts_on and ends_on, not the total of the block. A block spans
at most 30 days. Planning work on a project also adds the employee to that project.
On a recurring project the block has to fall within the project's run: a block that ends
after it extends the project when the authenticated employee has the project.edit
permission and is refused otherwise, a block that starts before it is always refused.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Plan work › Request Body
employee_idUUID of the employee the work is planned for.
descriptionDescription of the planned work.
starts_onFirst day of the block (Y-m-d).
ends_onLast day of the block (Y-m-d).
minutes_per_dayPlanned minutes per day, from 1 to 1440.
project_idUUID of the project the work belongs to.
project_phase_idUUID of a phase of that project. Required on a fixed project, left out on a recurring one.
time_category_idUUID of the time category the work falls under.
Plan work › Responses
PlanningAllocationResource
iddescriptionstarts_onends_onminutes_per_dayScheduled minutes for every day in the range, not the total of the block.
scheduled_minutesWhat the block adds up to: the minutes per day on every day in the range.
created_atupdated_atGet planned work
Returns a single allocation by ID, with the phases of its project. Without the
time-tracking.view-all permission only the authenticated employee's own allocations can be
read.
path Parameters
planningAllocationThe planning allocation UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get planned work › Responses
PlanningAllocationResource
iddescriptionstarts_onends_onminutes_per_dayScheduled minutes for every day in the range, not the total of the block.
scheduled_minutesWhat the block adds up to: the minutes per day on every day in the range.
created_atupdated_atUpdate planned work
Updates an allocation. Only the fields present in the request are changed. Send starts_on
and ends_on together. The same rules as for planning work apply: at most 30 days, and on a
recurring project within (or extending) the project's run.
path Parameters
planningAllocationThe planning allocation UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update planned work › Request Body
employee_idUUID of the employee the work is planned for.
descriptionDescription of the planned work.
starts_onFirst day of the block (Y-m-d).
ends_onLast day of the block (Y-m-d).
minutes_per_dayPlanned minutes per day, from 1 to 1440.
project_idUUID of the project the work belongs to. null takes the block off its project and phase.
project_phase_idUUID of a phase of that project. Left out on a recurring project. On a fixed project it is required when the block moves to another project, otherwise leave it out to keep the current phase.
time_category_idUUID of the time category the work falls under.
Update planned work › Responses
PlanningAllocationResource
iddescriptionstarts_onends_onminutes_per_dayScheduled minutes for every day in the range, not the total of the block.
scheduled_minutesWhat the block adds up to: the minutes per day on every day in the range.
created_atupdated_atDelete planned work
Deletes an allocation.
path Parameters
planningAllocationThe planning allocation UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete planned work › Responses
PlanningAllocationResource
iddescriptionstarts_onends_onminutes_per_dayScheduled minutes for every day in the range, not the total of the block.
scheduled_minutesWhat the block adds up to: the minutes per day on every day in the range.
created_atupdated_atList the employees on the schedule
Returns every employee that can be planned, with the minutes they are available per weekday.
Without the time-tracking.view-all permission only the authenticated employee is returned.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List the employees on the schedule › Responses
Array of PlanningEmployeeResource
idfirst_namelast_namefull_namedeactivated_atSet when the employee is deactivated: no sign in, no subscription slot, not selectable.
functionis_service_accountService accounts are for machine to machine API access
Available minutes per weekday, keyed monday through sunday. It is the capacity a
day's planned work is weighed against.
List planning on a project
Returns the planned blocks on the project, earliest first. The result is not paginated. Filter on a phase or a date range to read only part of the project; a block is in a range when it touches it.
path Parameters
projectThe project UUID
query Parameters
project_phase_idOnly return the blocks planned on this phase.
fromOnly return blocks that end on or after this date (Y-m-d).
toOnly return blocks that start on or before this date (Y-m-d).
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List planning on a project › Responses
Array of PlanningAllocationListResource
iddescriptionstarts_onends_onminutes_per_dayScheduled minutes for every day in the range, not the total of the block.
scheduled_minutesWhat the block adds up to: the minutes per day on every day in the range.
Get planning on a project
Returns a single planned block on the project. Every employee who may read the hours of the project can read it, also when it is planned for another employee.
path Parameters
projectThe project UUID
planningAllocationIdUUID of the planned block.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Get planning on a project › Responses
PlanningAllocationResource
iddescriptionstarts_onends_onminutes_per_dayScheduled minutes for every day in the range, not the total of the block.
scheduled_minutesWhat the block adds up to: the minutes per day on every day in the range.
created_atupdated_atList the projects on the schedule
Returns a paginated list of the one-off projects for the project planning. Projects without planned phases come first, followed by the planned projects ordered by their last planned day, latest first. Planning a phase can change that day, so a project may move between pages while the planning changes. Recurring projects run in periods instead of phases and are not included.
query Parameters
searchSearch across the project name and company name.
pagePage number of the paginated result set.
per_pageNumber of items per page. Defaults to the endpoint's own page size; capped at 500.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List the projects on the schedule › Responses
Array of PlanningProjectResource