Skip to content

Project work types

The work types a project uses. For each one: whether its time is billable, its billable rate on this project, its budget line, and who may track time to it.

Reading: a person who may view projects reads the work types of every project they can see (see Projects); a person without that permission still reads the work types of the projects they are on, so they can log time. Client portal users are always refused. billableRate is null unless the person may see team rates. Budget figures follow the person’s access to the project’s budget (see Projects); with limited access they are always null here. Adding, changing and removing work types needs the permission to edit projects, and setting a rate also needs the permission to edit team rates. Administrators hold every permission.

One work type on one project.

Field Type Description
id string The id of this work type’s place on the project. Endpoints address it by the project id and the work type id. Read only.
project object The project: { id, name, code }. Read only.
workType object The work type, from the business’s list: { id, name }. Read only.
isBillable boolean Whether time logged to this work type on this project is billable.
billableRate decimal This project’s billable rate per hour for the work type, used when the project’s rateType is workType or automatic. Null when the project has no rate of its own for it: the work type’s own billable rate (its default rate) applies, then the person’s. Null unless the person may see team rates. Can be null.
currency string ISO 4217 currency code of billableRate and budgetAmount: the project’s currency. Read only.
budgetHours decimal Hours budget for this work type when the project’s budget type is hoursPerWorkType. Null for other budget types. Null unless the person has full access to the project’s budget. Can be null.
budgetAmount decimal Fee budget for this work type when the project’s budget type is feesPerWorkType, in the project’s currency. Null for other budget types. Null unless the person has full access to the project’s budget. Can be null.
isTrackingLimited boolean false: everyone on the project may track time to this work type. true: only the team members in allowedMembers may; an empty list means nobody can.
allowedMembers array of object When isTrackingLimited is true, the team members who may track time to this work type, each { id, name }.
hasTrackedTime boolean True when time has been logged to this work type on this project. It can then be archived on the project but not deleted from it. Read only.
isArchived boolean True when the work type has been removed from the project’s list; the row is kept for its history. Archived rows are listed only when asked for with isArchived=true.
isWorkTypeArchived boolean True when the work type itself is archived in the business’s list, so no new time can be logged to it on any project. Read only.
position integer Where the work type sits in the project’s list of work types, counting from 1.
createdAt datetime When the work type was added to the project. Read only.
updatedAt datetime When this row last changed. Read only.

Returns the work types on the project, in the project’s order. A project that has never had its own list gets the business’s default work types the first time this is read, so every row has an id.

GET /v1/projects/:id/work-types

Parameters

Parameter In Type Required Description
id path string Yes Project id.
page query integer No Page number, from 1. Default 1.
limit query integer No Rows per page. Default 20, at most 1000.
isArchived query boolean No true: only work types removed from the project; false (default): only current ones.
updatedSince query datetime No Only records changed at or after this moment. Records deleted since then are not reported.

Rules

  • 404 when the project does not exist or the person cannot see it.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm3p8k2qz0004ab12cd34ef56/work-types?limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm5w3e1rt0009gh12jk34lm56",
"project": {
"id": "cm3p8k2qz0004ab12cd34ef56",
"name": "Website relaunch",
"code": "WEB-24"
},
"workType": {
"id": "cm0w9t4yu0005po98iu76yt54",
"name": "UI Design"
},
"isBillable": true,
"billableRate": 150,
"currency": "USD",
"budgetHours": null,
"budgetAmount": null,
"isTrackingLimited": false,
"allowedMembers": [],
"hasTrackedTime": true,
"isArchived": false,
"isWorkTypeArchived": false,
"position": 1,
"createdAt": "2026-08-28T09:14:04.003Z",
"updatedAt": "2026-09-15T08:41:19.270Z"
}
],
"totalCount": 4,
"page": 1,
"limit": 1
}

Returns the work types on every project the person can see, in one list.

GET /v1/project-work-types

Parameters

Parameter In Type Required Description
page query integer No Page number, from 1. Default 1.
limit query integer No Rows per page. Default 20, at most 1000.
filterProjectIds query string No Comma-separated project ids.
filterWorkTypeIds query string No Comma-separated work type ids.
isArchived query boolean No true: only work types removed from their project; false (default): only current ones.
updatedSince query datetime No Only records changed at or after this moment. Records deleted since then are not reported.

Rules

  • 403 for client portal users.

Example request

Terminal window
curl "https://api.onesuite.io/v1/project-work-types?filterWorkTypeIds=cm0w9t4yu0005po98iu76yt54&limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm5w3e1rt0009gh12jk34lm56",
"project": {
"id": "cm3p8k2qz0004ab12cd34ef56",
"name": "Website relaunch",
"code": "WEB-24"
},
"workType": {
"id": "cm0w9t4yu0005po98iu76yt54",
"name": "UI Design"
},
"isBillable": true,
"billableRate": 150,
"currency": "USD",
"budgetHours": null,
"budgetAmount": null,
"isTrackingLimited": false,
"allowedMembers": [],
"hasTrackedTime": true,
"isArchived": false,
"isWorkTypeArchived": false,
"position": 1,
"createdAt": "2026-08-28T09:14:04.003Z",
"updatedAt": "2026-09-15T08:41:19.270Z"
}
],
"totalCount": 9,
"page": 1,
"limit": 1
}

Returns one work type on the project, archived or not. workTypeId is the work type’s id, not the id of its place on the project.

GET /v1/projects/:id/work-types/:workTypeId

Parameters

Parameter In Type Required Description
id path string Yes Project id.
workTypeId path string Yes Work type id.

Rules

  • 404 when the project does not exist, the person cannot see it, or the work type is not on it.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm3p8k2qz0004ab12cd34ef56/work-types/cm0w9t4yu0005po98iu76yt54" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": {
"id": "cm5w3e1rt0009gh12jk34lm56",
"project": {
"id": "cm3p8k2qz0004ab12cd34ef56",
"name": "Website relaunch",
"code": "WEB-24"
},
"workType": {
"id": "cm0w9t4yu0005po98iu76yt54",
"name": "UI Design"
},
"isBillable": true,
"billableRate": 150,
"currency": "USD",
"budgetHours": null,
"budgetAmount": null,
"isTrackingLimited": false,
"allowedMembers": [],
"hasTrackedTime": true,
"isArchived": false,
"isWorkTypeArchived": false,
"position": 1,
"createdAt": "2026-08-28T09:14:04.003Z",
"updatedAt": "2026-09-15T08:41:19.270Z"
}
}

Adds a work type from the business’s list to the project. Adding one that was removed from the project earlier brings it back with its history.

POST /v1/projects/:id/work-types

Parameters

Parameter In Type Required Description
id path string Yes Project id.
workTypeId body string Yes Id of a work type from the business’s list.
isBillable body boolean No Whether time on this work type is billable on this project. Default: the work type’s isBillableByDefault.
billableRate body decimal No This project’s billable rate per hour for the work type. Null: no rate of its own on this project, so the work type’s own billable rate (its default rate) applies, then the person’s.
budgetHours body decimal No Hours budget for this work type. Only when the project’s budget type is hoursPerWorkType.
budgetAmount body decimal No Fee budget for this work type. Only when the project’s budget type is feesPerWorkType, and only for a billable work type.
isTrackingLimited body boolean No true: only the team members in allowedMemberIds may track time to this work type; false: everyone on the project may.
allowedMemberIds body array of string No Ids of the team members allowed to track time to this work type when isTrackingLimited is true.
position body integer No Where the work type sits in the project’s list, counting from 1.
repriceLoggedTime body object No Use when this request changes the rate or billability, to also re-price time already logged: { "fromDate": "YYYY-MM-DD", or null for all logged time, "includeApprovedTime": boolean }. Without it, the change applies to new time only. Invoiced time and time on a locked day are never re-priced; approved time only when includeApprovedTime is true and the person may approve everyone’s time.

Rules

  • 403 when the person may not edit projects, or is a client portal user.
  • 403 when billableRate is changed by a person who may not edit team rates.
  • 403 when budgetHours or budgetAmount is sent and the person may not change this project’s budget.
  • 400 when budgetHours or budgetAmount does not match the project’s budget type, or budgetAmount is set on a non-billable work type.
  • 404 when an allowedMemberId is not a team member of this business.
  • 404 when the project does not exist or the person cannot see it.
  • 201: a rate or billability set here applies to new time only, unless repriceLoggedTime is sent.
  • 404 when workTypeId is not one of this business’s work types.
  • 400 when the work type is archived in the business’s list: restore it first.
  • 409 when the work type is already on the project.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm3p8k2qz0004ab12cd34ef56/work-types" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"workTypeId":"cm0w9t4yu0005po98iu76yt54","billableRate":150}'

Example response — status 201

{
"data": {
"id": "cm5w3e1rt0009gh12jk34lm56",
"project": {
"id": "cm3p8k2qz0004ab12cd34ef56",
"name": "Website relaunch",
"code": "WEB-24"
},
"workType": {
"id": "cm0w9t4yu0005po98iu76yt54",
"name": "UI Design"
},
"isBillable": true,
"billableRate": 150,
"currency": "USD",
"budgetHours": null,
"budgetAmount": null,
"isTrackingLimited": false,
"allowedMembers": [],
"hasTrackedTime": false,
"isArchived": false,
"isWorkTypeArchived": false,
"position": 1,
"createdAt": "2026-11-20T10:52:44.310Z",
"updatedAt": "2026-11-20T10:52:44.310Z"
}
}

Changes the fields sent and leaves the rest as they are. Send isArchived true to remove the work type from the project’s list, even when time has been logged to it; false brings it back.

PATCH /v1/projects/:id/work-types/:workTypeId

Parameters

Parameter In Type Required Description
id path string Yes Project id.
workTypeId path string Yes Work type id.
isArchived body boolean No true removes the work type from the project’s list; false brings it back.
isBillable body boolean No Whether time on this work type is billable on this project.
billableRate body decimal No This project’s billable rate per hour for the work type. Null: no rate of its own on this project, so the work type’s own billable rate (its default rate) applies, then the person’s.
budgetHours body decimal No Hours budget for this work type. Only when the project’s budget type is hoursPerWorkType.
budgetAmount body decimal No Fee budget for this work type. Only when the project’s budget type is feesPerWorkType, and only for a billable work type.
isTrackingLimited body boolean No true: only the team members in allowedMemberIds may track time to this work type; false: everyone on the project may.
allowedMemberIds body array of string No Ids of the team members allowed to track time to this work type when isTrackingLimited is true.
position body integer No Where the work type sits in the project’s list, counting from 1.
repriceLoggedTime body object No Use when this request changes the rate or billability, to also re-price time already logged: { "fromDate": "YYYY-MM-DD", or null for all logged time, "includeApprovedTime": boolean }. Without it, the change applies to new time only. Invoiced time and time on a locked day are never re-priced; approved time only when includeApprovedTime is true and the person may approve everyone’s time.

Rules

  • 403 when the person may not edit projects, or is a client portal user.
  • 403 when billableRate is changed by a person who may not edit team rates.
  • 403 when budgetHours or budgetAmount is sent and the person may not change this project’s budget.
  • 400 when budgetHours or budgetAmount does not match the project’s budget type, or budgetAmount is set on a non-billable work type.
  • 404 when an allowedMemberId is not a team member of this business.
  • 404 when the project does not exist or the person cannot see it.
  • 200: a rate or billability set here applies to new time only, unless repriceLoggedTime is sent.
  • 404 when the work type is not on the project.
  • 400 when bringing back a work type that is archived in the business’s list.
  • 200 without saving anything when the request changes nothing.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm3p8k2qz0004ab12cd34ef56/work-types/cm0w9t4yu0005po98iu76yt54" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"isBillable":false}'

Example response — status 200

{
"data": {
"id": "cm5w3e1rt0009gh12jk34lm56",
"project": {
"id": "cm3p8k2qz0004ab12cd34ef56",
"name": "Website relaunch",
"code": "WEB-24"
},
"workType": {
"id": "cm0w9t4yu0005po98iu76yt54",
"name": "UI Design"
},
"isBillable": false,
"billableRate": 150,
"currency": "USD",
"budgetHours": null,
"budgetAmount": null,
"isTrackingLimited": false,
"allowedMembers": [],
"hasTrackedTime": true,
"isArchived": false,
"isWorkTypeArchived": false,
"position": 1,
"createdAt": "2026-08-28T09:14:04.003Z",
"updatedAt": "2026-11-20T10:55:02.118Z"
}
}

Removes the work type from the project. The row is kept as archived (isArchived true), so the project keeps its own list instead of falling back to the business’s default work types.

DELETE /v1/projects/:id/work-types/:workTypeId

Parameters

Parameter In Type Required Description
id path string Yes Project id.
workTypeId path string Yes Work type id.

Rules

  • 403 when the person may not edit projects.
  • 404 when the work type is not on the project.
  • 409 when time has been logged to this work type on this project; archive it with Update a project work type (isArchived true) instead.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm3p8k2qz0004ab12cd34ef56/work-types/cm0w9t4yu0006po98iu76yt55" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Work type removed from the project"
}