Work types
The business’s list of work types: the kinds of work time is logged as, such as Design or Meetings. Each has a default billable rate and settings that apply when it is added to a project.
Who can use it
Section titled “Who can use it”Every work type endpoint, reading included, needs the permission to manage business settings, which by default only administrators hold. A member or manager without it gets 403 here, but still sees the names of the work types on their projects, through Project work types and time entries. billableRate is shown only to people who may see team rates, and setting or changing it also needs the permission to edit team rates.
The work type object
Section titled “The work type object”One work type in the business’s list.
| Field | Type | Description |
|---|---|---|
id |
string | The work type’s id. Read only. |
name |
string | Name, 1-120 characters, unique in the business. |
billableRate |
decimal | The work type’s default billable rate per hour (“Default rate” in the app), used where a project has no rate of its own for this work type. Null when there is no default, in which case the person’s own rate applies. Null when the person may not see team rates, even if a default is set. Can be null. |
currency |
string | Currency of billableRate: the business’s currency. Read only. |
isBillableByDefault |
boolean | Whether time on this work type is billable when the work type is added to a project. Each project can change it afterwards. |
isAddedToNewProjects |
boolean | Whether the work type is added automatically to every new project. |
isArchived |
boolean | True when the work type is archived: it is kept for history, no new time can be logged to it, and it is not offered on projects. |
isInUse |
boolean | True when the work type has logged time, a budget line or a project using it. A work type in use cannot be deleted; archive it instead. Read only. |
position |
integer | Where the work type sits in the business’s list, counting from 1. Read only. |
createdAt |
datetime | When it was created. Read only. |
updatedAt |
datetime | When it last changed. Read only. |
Endpoints
Section titled “Endpoints”List work types
Section titled “List work types”Returns the business’s work types in the order the business set.
GET /v1/work-typesParameters
| 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. |
search |
query | string | No | Text in the name. |
isArchived |
query | boolean | No | true: archived only; false: current only; absent: both. |
updatedSince |
query | datetime | No | Only records changed at or after this moment. Records deleted since then are not reported. |
sortField |
query | string | No | position (default), name, createdAt or updatedAt. |
sortOrder |
query | string | No | asc (default) or desc. |
Rules
403when the person may not manage business settings.
Example request
curl "https://api.onesuite.io/v1/work-types?isArchived=false&limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/work-types?isArchived=false&limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm0w9t4yu0005po98iu76yt54", "name": "UI Design", "billableRate": 130, "currency": "USD", "isBillableByDefault": true, "isAddedToNewProjects": true, "isArchived": false, "isInUse": true, "position": 3, "createdAt": "2026-03-04T12:00:18.441Z", "updatedAt": "2026-10-21T07:33:50.006Z" } ], "totalCount": 7, "page": 1, "limit": 1}Get a work type
Section titled “Get a work type”Returns one work type.
GET /v1/work-types/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Work type id. |
Rules
403when the person may not manage business settings.404when the work type does not exist in this business.
Example request
curl "https://api.onesuite.io/v1/work-types/cm0w9t4yu0005po98iu76yt54" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/work-types/cm0w9t4yu0005po98iu76yt54", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm0w9t4yu0005po98iu76yt54", "name": "UI Design", "billableRate": 130, "currency": "USD", "isBillableByDefault": true, "isAddedToNewProjects": true, "isArchived": false, "isInUse": true, "position": 3, "createdAt": "2026-03-04T12:00:18.441Z", "updatedAt": "2026-10-21T07:33:50.006Z" }}Create a work type
Section titled “Create a work type”Adds a work type at the end of the business’s list. Only name is required. Unless sent, the work type is billable by default, not added to new projects, not archived, and has no default rate.
POST /v1/work-typesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
name |
body | string | Yes | Name, 1–120 characters, unique in the business. |
billableRate |
body | decimal | No | Default billable rate per hour, in the business’s currency. Leave out for no default. |
isBillableByDefault |
body | boolean | No | Whether time is billable when the work type is added to a project. Default true. |
isAddedToNewProjects |
body | boolean | No | Whether to add the work type to every new project. Default false. |
isArchived |
body | boolean | No | Create it archived. Default false. |
Rules
403when the person may not manage business settings.403whenbillableRateis sent by a person who may not edit team rates.400when the name is empty or longer than 120 characters.409when a current work type already has that name.409when an archived work type has that name: restore it with Update a work type instead.
Example request
curl "https://api.onesuite.io/v1/work-types" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"UI Design","billableRate":130,"isAddedToNewProjects":true}'const response = await fetch("https://api.onesuite.io/v1/work-types", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "UI Design", billableRate: 130, isAddedToNewProjects: true, }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm0w9t4yu0005po98iu76yt54", "name": "UI Design", "billableRate": 130, "currency": "USD", "isBillableByDefault": true, "isAddedToNewProjects": true, "isArchived": false, "isInUse": false, "position": 8, "createdAt": "2026-11-20T11:05:40.220Z", "updatedAt": "2026-11-20T11:05:40.220Z" }}Update a work type
Section titled “Update a work type”Changes the fields sent and leaves the rest as they are. Send isArchived true to archive the work type and false to restore it. A request that changes nothing saves nothing and answers 200.
PATCH /v1/work-types/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Work type id. |
name |
body | string | No | New name, 1–120 characters, unique in the business. |
billableRate |
body | decimal | No | New default billable rate per hour, or null to remove the default. |
isBillableByDefault |
body | boolean | No | Whether time is billable when the work type is added to a project. Projects that already use it keep their own setting. |
isAddedToNewProjects |
body | boolean | No | Whether to add the work type to every new project. Existing projects are not changed. |
isArchived |
body | boolean | No | true archives the work type; false restores it. |
repriceLoggedTime |
body | object | No | Use with a billableRate change to also re-price time already logged at this default rate: { "fromDate": "YYYY-MM-DD", or null for all logged time, "includeApprovedTime": boolean }. Without it, the new rate applies to new time only. Time priced by a project or person rate is not touched. Invoiced time and time in a locked period are never re-priced; approved time only when includeApprovedTime is true and the person may approve everyone’s time. |
Rules
403when the person may not manage business settings.404when the work type does not exist in this business.403whenbillableRateis changed by a person who may not edit team rates.409when the new name is taken by another work type, current or archived.400when the body is empty.
Example request
curl "https://api.onesuite.io/v1/work-types/cm0w9t4yu0005po98iu76yt54" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"billableRate":135}'const response = await fetch("https://api.onesuite.io/v1/work-types/cm0w9t4yu0005po98iu76yt54", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ billableRate: 135, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm0w9t4yu0005po98iu76yt54", "name": "UI Design", "billableRate": 135, "currency": "USD", "isBillableByDefault": true, "isAddedToNewProjects": true, "isArchived": false, "isInUse": true, "position": 3, "createdAt": "2026-03-04T12:00:18.441Z", "updatedAt": "2026-11-20T11:07:12.884Z" }}Delete a work type
Section titled “Delete a work type”Deletes a work type that nothing uses. A work type with logged time, a budget line or a project using it (isInUse true) cannot be deleted; archive it instead.
DELETE /v1/work-types/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | Work type id. |
Rules
403when the person may not manage business settings.404when the work type does not exist in this business.409when the work type is in use: archive it instead.
Example request
curl "https://api.onesuite.io/v1/work-types/cm6z8x2cv0011bn34mq56wr78" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/work-types/cm6z8x2cv0011bn34mq56wr78", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Work type deleted"}