Project tasks
The tasks on a project’s board: the to-dos the team works through, each in a section, with assignees, dates, a priority, a label and its own subtasks. These are not work types: work types are the kinds of work time is logged as, while a task is a piece of work on the board that time can also be logged against. This page also covers subtasks and the labels a project’s tasks can carry.
Who can use it
Section titled “Who can use it”Reading tasks, subtasks and labels needs the permission to view projects, and covers only the projects the person can see (administrators see every project; a member or manager sees the business’s public projects and the private projects they are on; see Projects). Someone who may see a project sees all of its tasks and subtasks, with no field hidden. Client portal users are always refused. Creating tasks and subtasks needs the permission to create tasks; changing them (marking complete, moving, archiving, converting a subtask) needs the permission to edit tasks; deleting them needs the permission to delete tasks; adding or removing assignees also needs the permission to assign task members. Labels follow the project permissions instead: creating a label needs the permission to create projects, changing one the permission to edit projects, and deleting one the permission to delete projects. Administrators hold every permission; the built-in Member and Manager profiles hold the task permissions by default. A person without the permission an endpoint needs gets 403.
The task object
Section titled “The task object”One task on a project’s board.
| Field | Type | Description |
|---|---|---|
id |
string | The task’s id. Time entries name it as their task. Read only. |
name |
string | Task name, 1–1000 characters, unique within its section. |
description |
string | The task description, as formatted text (HTML). Null when empty. Can be null. |
project |
object | The project: { id, name, code }. Read only. |
section |
object | The board section the task is in: { id, name }. |
isCompleted |
boolean | True when the task is marked complete. Completing a task can move it to the project’s completed-tasks section (see Project sections). |
completedAt |
datetime | When the task was marked complete. Null while it is open. Read only. Can be null. |
completedBy |
object | The team member who marked it complete: { id, name }. Null while it is open. Read only. Can be null. |
assignees |
array of object | The team members the task is assigned to, each { id, name } with the team member id. Empty when nobody is. |
clientAssignees |
array of object | People from the business’s clients the task is assigned to, each { id, name } with the person’s id from People. |
startDate |
datetime | When work on the task starts, as a moment. The app picks a day and, optionally, a time of day. Null when not set. Can be null. |
dueDate |
datetime | When the task is due, as a moment. Never earlier than startDate. Null when not set. Can be null. |
priority |
string | high, medium or low (shown as Normal in the app), or null when no priority is set. Can be null. |
label |
object | The task’s label: { id, name }, one of the project’s labels. Null when it has none. Can be null. |
estimatedHours |
decimal | Estimated time in hours (“Estimated Time (H)” in the app). Null when not set. Can be null. |
actualHours |
decimal | Hours of time entries logged on this task, to two decimals. Time logged on its subtasks is not included; each subtask has its own. Read only. |
commentCount |
integer | How many comments the task has, replies not counted. Read only. |
attachmentCount |
integer | How many files are attached to the task. Read only. |
subtasks |
array of object | The task’s subtasks in board order, each { id, name, isCompleted }. A task has at most 200. Read or change them through Subtasks. Read only. |
isArchived |
boolean | True when the task is archived: off the board but kept and restorable. Archiving does not change whether it is completed. |
archivedAt |
datetime | When the task was archived. Null when it is not archived. Read only. Can be null. |
createdBy |
object | The team member who created the task: { id, name }. Null when the task was not created by a team member. Read only. Can be null. |
createdAt |
datetime | When the task was created. Read only. |
updatedAt |
datetime | When the task last changed. A change to one of its subtasks does not count. Read only. |
The subtask object
Section titled “The subtask object”One subtask of a task.
| Field | Type | Description |
|---|---|---|
id |
string | The subtask’s id. Time entries name it as their subtask. Read only. |
name |
string | Subtask name, 1–1000 characters, unique within its task. |
description |
string | The subtask description, as formatted text (HTML). Null when empty. Can be null. |
task |
object | The task the subtask belongs to: { id, name }. Read only. |
project |
object | The project: { id, name, code }. Read only. |
isCompleted |
boolean | True when the subtask is marked complete. |
completedAt |
datetime | When the subtask was marked complete. Null while it is open. Read only. Can be null. |
completedBy |
object | The team member who marked it complete: { id, name }. Null while it is open. Read only. Can be null. |
assignees |
array of object | The team members the subtask is assigned to, each { id, name } with the team member id. Empty when nobody is. |
clientAssignees |
array of object | People from the business’s clients the subtask is assigned to, each { id, name } with the person’s id from People. |
startDate |
datetime | When work on the subtask starts, as a moment. The app picks a day and, optionally, a time of day. Null when not set. Can be null. |
dueDate |
datetime | When the subtask is due, as a moment. Never earlier than startDate. Null when not set. Can be null. |
priority |
string | high, medium or low (shown as Normal in the app), or null when no priority is set. Can be null. |
label |
object | The subtask’s label: { id, name }, one of the project’s labels. Null when it has none. Can be null. |
estimatedHours |
decimal | Estimated time in hours (“Estimated Time (H)” in the app). Null when not set. Can be null. |
actualHours |
decimal | Hours of time entries logged on this subtask, to two decimals. Read only. |
commentCount |
integer | How many comments the subtask has, replies not counted. Read only. |
attachmentCount |
integer | How many files are attached to the subtask. Read only. |
createdBy |
object | The team member who created the subtask: { id, name }. Null when the subtask was not created by a team member. Read only. Can be null. |
createdAt |
datetime | When the subtask was created. Read only. |
updatedAt |
datetime | When the subtask last changed. Read only. |
The task label object
Section titled “The task label object”One of the labels a project’s tasks and subtasks can carry.
| Field | Type | Description |
|---|---|---|
id |
string | The label’s id. Read only. |
name |
string | Label name, unique within the project. |
color |
string | The label’s colour as a hex code such as #7C3AED, as it shows on task cards. |
project |
object | The project whose tasks can carry the label: { id, name, code }. Read only. |
createdAt |
datetime | When the label was created. Read only. |
updatedAt |
datetime | When the label last changed. Read only. |
List tasks
Section titled “List tasks”Returns the project’s tasks in board order: section by section in the sections’ order, and in each section as the cards are arranged. Archived tasks and tasks in archived sections are left out unless asked for. Each task carries a short list of its subtasks; the subtasks themselves are read through Subtasks.
GET /v1/projects/:id/tasksParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
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 | Only tasks whose name, or the name of one of their subtasks, contains this text. |
filterSectionIds |
query | string | No | Comma-separated section ids: only tasks in these sections. |
filterAssigneeIds |
query | string | No | Comma-separated team member ids: tasks assigned to any of them. |
filterClientAssigneeIds |
query | string | No | Comma-separated People ids: tasks assigned to any of them. |
filterLabelIds |
query | string | No | Comma-separated label ids: tasks with any of these labels. |
priority |
query | string | No | high, medium or low. |
isCompleted |
query | boolean | No | true: completed tasks only; false: open tasks only; leave out for both. |
isArchived |
query | boolean | No | false (default): tasks on the board; true: archived tasks, and tasks in archived sections, only. |
from |
query | date | No | Only tasks due on or after this day. |
to |
query | date | No | Only tasks due on or before this day. |
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: board order), dueDate, name, createdAt or updatedAt. Tasks with no due date come last when sorting by dueDate. |
sortOrder |
query | string | No | asc (default) or desc. |
Rules
403when the person may not view projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.400when a filter id list is not comma-separated ids, a value is not one of the listed values, or from is after to.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks?filterAssigneeIds=cm1a7rt0p0002mz08k4h1w9ce&isCompleted=false&limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks?filterAssigneeIds=cm1a7rt0p0002mz08k4h1w9ce&isCompleted=false&limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero", "description": "<p>New hero with the spring campaign photo and a single call to action.</p>", "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "section": { "id": "cm2a3b4c50041uv08d1e2f3gg", "name": "In progress" }, "isCompleted": false, "completedAt": null, "completedBy": null, "assignees": [ { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" } ], "clientAssignees": [], "startDate": "2026-11-16T09:00:00.000Z", "dueDate": "2026-11-27T17:00:00.000Z", "priority": "high", "label": { "id": "cm2b4c5d60043vw08e2f3g4hh", "name": "Design" }, "estimatedHours": 12, "actualHours": 7.25, "commentCount": 4, "attachmentCount": 2, "subtasks": [ { "id": "cm2k3l4m50047wx08j8k9l0mm", "name": "Hero copy", "isCompleted": true }, { "id": "cm2k3l4m50048wx08j8k9l0mn", "name": "Hero image crops", "isCompleted": false } ], "isArchived": false, "archivedAt": null, "createdBy": { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" }, "createdAt": "2026-11-10T08:31:12.440Z", "updatedAt": "2026-11-19T16:05:47.213Z" } ], "totalCount": 6, "page": 1, "limit": 1}Get a task
Section titled “Get a task”Returns one task of the project, archived or not.
GET /v1/projects/:id/tasks/:taskIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
taskId |
path | string | Yes | The task’s id. |
Rules
403when the person may not view projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the task is not one of this project’s tasks.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30045vw08i7j8k9ll" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30045vw08i7j8k9ll", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero", "description": "<p>New hero with the spring campaign photo and a single call to action.</p>", "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "section": { "id": "cm2a3b4c50041uv08d1e2f3gg", "name": "In progress" }, "isCompleted": false, "completedAt": null, "completedBy": null, "assignees": [ { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" } ], "clientAssignees": [], "startDate": "2026-11-16T09:00:00.000Z", "dueDate": "2026-11-27T17:00:00.000Z", "priority": "high", "label": { "id": "cm2b4c5d60043vw08e2f3g4hh", "name": "Design" }, "estimatedHours": 12, "actualHours": 7.25, "commentCount": 4, "attachmentCount": 2, "subtasks": [ { "id": "cm2k3l4m50047wx08j8k9l0mm", "name": "Hero copy", "isCompleted": true }, { "id": "cm2k3l4m50048wx08j8k9l0mn", "name": "Hero image crops", "isCompleted": false } ], "isArchived": false, "archivedAt": null, "createdBy": { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" }, "createdAt": "2026-11-10T08:31:12.440Z", "updatedAt": "2026-11-19T16:05:47.213Z" }}Create a task
Section titled “Create a task”Adds a task to a section of the project’s board, at the bottom of the section unless placement says top. Only sectionId and name are required. The task starts open, unassigned unless assignees are sent, with no priority, label or dates, and the token’s person as its creator. Subtasks are added afterwards through Subtasks.
POST /v1/projects/:id/tasksParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
sectionId |
body | string | Yes | The section to add the task to; one of this project’s current sections. |
name |
body | string | Yes | Task name, 1–1000 characters, unique within the section. |
description |
body | string | No | description as formatted text (HTML). |
assigneeIds |
body | array of string | No | Team member ids to assign, as an array. |
clientAssigneeIds |
body | array of string | No | Ids of people from People to assign, as an array. |
startDate |
body | datetime | No | When work starts (a moment). |
dueDate |
body | datetime | No | When it is due (a moment), not earlier than startDate. |
priority |
body | string | No | high, medium or low. |
labelId |
body | string | No | The id of one of the project’s labels. |
estimatedHours |
body | decimal | No | Estimated time in hours, 0 or more. |
placement |
body | string | No | bottom (default) or top of the section. |
Rules
403when the person may not create tasks, or is a client portal user.403whenassigneeIdsorclientAssigneeIdsis sent by a person who may not assign task members.404when the project does not exist in this business or the person cannot see it.404whensectionIdis not one of this project’s sections.409when the section is archived: restore it first.400when the name is empty or longer than 1000 characters, placement is nottoporbottom, or the section already holds 500 tasks.409when the section already has a task with that name.400whenstartDateis afterdueDate, a date is not a valid moment, priority is not one of the listed values, orestimatedHoursis negative.404when a label id is not one of this project’s labels, an assignee id is not a team member of this business, or a client assignee id is not a person in this business’s People.- Every team member newly assigned gets an in-app notification and an email, unless they made the change themselves.
- Answers 201 with the new task.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"sectionId":"cm2a3b4c50040uv08d1e2f3gf","name":"Footer links audit","assigneeIds":["cm1b8su1q0006na08l5i2x0df"],"dueDate":"2026-12-04T17:00:00.000Z","priority":"medium"}'const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ sectionId: "cm2a3b4c50040uv08d1e2f3gf", name: "Footer links audit", assigneeIds: [ "cm1b8su1q0006na08l5i2x0df", ], dueDate: "2026-12-04T17:00:00.000Z", priority: "medium", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm2j1k2l30049vw08i7j8k9lp", "name": "Footer links audit", "description": null, "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "section": { "id": "cm2a3b4c50040uv08d1e2f3gf", "name": "To do" }, "isCompleted": false, "completedAt": null, "completedBy": null, "assignees": [ { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" } ], "clientAssignees": [], "startDate": null, "dueDate": "2026-12-04T17:00:00.000Z", "priority": "medium", "label": null, "estimatedHours": null, "actualHours": 0, "commentCount": 0, "attachmentCount": 0, "subtasks": [], "isArchived": false, "archivedAt": null, "createdBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "createdAt": "2026-11-20T11:12:30.051Z", "updatedAt": "2026-11-20T11:12:30.051Z" }}Update a task
Section titled “Update a task”Changes the fields sent and leaves the rest as they are. Send sectionId to move the task to the bottom of another section of the same project. Send isCompleted true to mark the task complete or false to reopen it: completing records the token’s person as completedBy and the moment as completedAt, and, when the project has a completed-tasks section, moves the task to the top of that section; reopening clears both and leaves the task where it is. Send isArchived true to take the task off the board and false to restore it. A request that changes nothing saves nothing and answers 200.
PATCH /v1/projects/:id/tasks/:taskIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
taskId |
path | string | Yes | The task’s id. |
name |
body | string | No | New name, 1–1000 characters, unique within the section. |
sectionId |
body | string | No | Move the task to this section of the same project. |
description |
body | string | No | New description as formatted text (HTML), or null to clear it. |
assigneeIds |
body | array of string | No | The complete list of team member ids the task is assigned to, as an array. Members not in the list are unassigned; an empty array unassigns everyone. Leave out to keep the assignees. |
clientAssigneeIds |
body | array of string | No | The complete list of People ids assigned, as an array, replacing the current list in the same way. |
startDate |
body | datetime | No | When work starts (a moment). Null clears it. |
dueDate |
body | datetime | No | When it is due (a moment), not earlier than startDate. Null clears it. |
priority |
body | string | No | high, medium or low, or null for no priority. |
labelId |
body | string | No | The id of one of the project’s labels, or null to remove the label. |
estimatedHours |
body | decimal | No | Estimated time in hours, 0 or more, or null to clear it. |
isCompleted |
body | boolean | No | true marks the task complete; false reopens it. |
isArchived |
body | boolean | No | true archives the task; false restores it. |
Rules
403when the person may not edit tasks, or is a client portal user.403whenassigneeIdsorclientAssigneeIdschanges the assignees and the person may not assign task members.404when the project does not exist in this business or the person cannot see it.404when the task is not one of this project’s tasks.404whensectionIdis not one of this project’s sections.400when the body is empty, or the name is empty or longer than 1000 characters.409when another task in the (new) section already has that name, or the section the task would move to is archived or already holds 500 tasks.400whenstartDateis afterdueDate, a date is not a valid moment, priority is not one of the listed values, orestimatedHoursis negative.404when a label id is not one of this project’s labels, an assignee id is not a team member of this business, or a client assignee id is not a person in this business’s People.- Marking a task complete notifies the people assigned to it.
- Every team member newly assigned gets an in-app notification and an email, unless they made the change themselves.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30045vw08i7j8k9ll" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"isCompleted":true}'const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30045vw08i7j8k9ll", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ isCompleted: true, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero", "description": "<p>New hero with the spring campaign photo and a single call to action.</p>", "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "section": { "id": "cm2a3b4c50043uv08d1e2f3gi", "name": "Done" }, "isCompleted": true, "completedAt": "2026-11-20T11:20:09.604Z", "completedBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "assignees": [ { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" } ], "clientAssignees": [], "startDate": "2026-11-16T09:00:00.000Z", "dueDate": "2026-11-27T17:00:00.000Z", "priority": "high", "label": { "id": "cm2b4c5d60043vw08e2f3g4hh", "name": "Design" }, "estimatedHours": 12, "actualHours": 7.25, "commentCount": 4, "attachmentCount": 2, "subtasks": [ { "id": "cm2k3l4m50047wx08j8k9l0mm", "name": "Hero copy", "isCompleted": true }, { "id": "cm2k3l4m50048wx08j8k9l0mn", "name": "Hero image crops", "isCompleted": false } ], "isArchived": false, "archivedAt": null, "createdBy": { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" }, "createdAt": "2026-11-10T08:31:12.440Z", "updatedAt": "2026-11-20T11:20:09.604Z" }}Delete a task
Section titled “Delete a task”Deletes the task with its subtasks, comments and attachments. This cannot be undone; archive the task instead to keep it. Time already logged against the task or its subtasks is kept on the project, with no task.
DELETE /v1/projects/:id/tasks/:taskIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
taskId |
path | string | Yes | The task’s id. |
Rules
403when the person may not delete tasks, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the task is not one of this project’s tasks.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30049vw08i7j8k9lp" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30049vw08i7j8k9lp", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Task deleted"}Subtasks
Section titled “Subtasks”List subtasks
Section titled “List subtasks”Returns the project’s subtasks, task by task in board order and, within a task, in the order the task shows them. Subtasks of archived tasks are left out unless isArchived is true.
GET /v1/projects/:id/subtasksParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
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 | Only subtasks whose name contains this text. |
filterTaskIds |
query | string | No | Comma-separated task ids: only subtasks of these tasks. |
filterAssigneeIds |
query | string | No | Comma-separated team member ids: subtasks assigned to any of them. |
isCompleted |
query | boolean | No | true: completed subtasks only; false: open subtasks only; leave out for both. |
isArchived |
query | boolean | No | false (default): subtasks of tasks on the board; true: subtasks of archived tasks only. |
from |
query | date | No | Only subtasks due on or after this day. |
to |
query | date | No | Only subtasks due on or before this day. |
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), dueDate, name, createdAt or updatedAt. |
sortOrder |
query | string | No | asc (default) or desc. |
Rules
403when the person may not view projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.400when a value is not one of the listed values or from is after to.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks?filterTaskIds=cm2j1k2l30045vw08i7j8k9ll&limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks?filterTaskIds=cm2j1k2l30045vw08i7j8k9ll&limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm2k3l4m50047wx08j8k9l0mm", "name": "Hero copy", "description": "<p>Headline and two lines of supporting copy.</p>", "task": { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero" }, "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "isCompleted": true, "completedAt": "2026-11-18T14:22:03.918Z", "completedBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "assignees": [ { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" } ], "clientAssignees": [ { "id": "cm1q2r3s40019pq08z0a1b2cc", "name": "Alex Kim" } ], "startDate": null, "dueDate": "2026-11-19T17:00:00.000Z", "priority": null, "label": null, "estimatedHours": 2, "actualHours": 1.5, "commentCount": 1, "attachmentCount": 0, "createdBy": { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" }, "createdAt": "2026-11-10T08:33:40.007Z", "updatedAt": "2026-11-18T14:22:03.918Z" } ], "totalCount": 2, "page": 1, "limit": 1}Get a subtask
Section titled “Get a subtask”Returns one subtask of the project.
GET /v1/projects/:id/subtasks/:subtaskIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
subtaskId |
path | string | Yes | The subtask’s id. |
Rules
403when the person may not view projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the subtask is not one of this project’s subtasks.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50047wx08j8k9l0mm" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50047wx08j8k9l0mm", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2k3l4m50047wx08j8k9l0mm", "name": "Hero copy", "description": "<p>Headline and two lines of supporting copy.</p>", "task": { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero" }, "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "isCompleted": true, "completedAt": "2026-11-18T14:22:03.918Z", "completedBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "assignees": [ { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" } ], "clientAssignees": [ { "id": "cm1q2r3s40019pq08z0a1b2cc", "name": "Alex Kim" } ], "startDate": null, "dueDate": "2026-11-19T17:00:00.000Z", "priority": null, "label": null, "estimatedHours": 2, "actualHours": 1.5, "commentCount": 1, "attachmentCount": 0, "createdBy": { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" }, "createdAt": "2026-11-10T08:33:40.007Z", "updatedAt": "2026-11-18T14:22:03.918Z" }}Create a subtask
Section titled “Create a subtask”Adds a subtask to one of the project’s tasks, at the bottom of the task’s subtasks unless placement says top. Only taskId and name are required. The subtask starts open. Adding an open subtask to a completed task does not reopen the task.
POST /v1/projects/:id/subtasksParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
taskId |
body | string | Yes | The task to add the subtask to; one of this project’s tasks. |
name |
body | string | Yes | Subtask name, 1–1000 characters, unique within the task. |
description |
body | string | No | description as formatted text (HTML). |
assigneeIds |
body | array of string | No | Team member ids to assign, as an array. |
clientAssigneeIds |
body | array of string | No | Ids of people from People to assign, as an array. |
startDate |
body | datetime | No | When work starts (a moment). |
dueDate |
body | datetime | No | When it is due (a moment), not earlier than startDate. |
priority |
body | string | No | high, medium or low. |
labelId |
body | string | No | The id of one of the project’s labels. |
estimatedHours |
body | decimal | No | Estimated time in hours, 0 or more. |
placement |
body | string | No | bottom (default) or top of the task’s subtasks. |
Rules
403when the person may not create tasks, or is a client portal user.403whenassigneeIdsorclientAssigneeIdsis sent by a person who may not assign task members.404when the project does not exist in this business or the person cannot see it.404whentaskIdis not one of this project’s tasks.400when the name is empty or longer than 1000 characters, placement is nottoporbottom, or the task already has 200 subtasks.409when the task already has a subtask with that name.400whenstartDateis afterdueDate, a date is not a valid moment, priority is not one of the listed values, orestimatedHoursis negative.404when a label id is not one of this project’s labels, an assignee id is not a team member of this business, or a client assignee id is not a person in this business’s People.- Every team member newly assigned gets an in-app notification and an email, unless they made the change themselves.
- Answers 201 with the new subtask.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"taskId":"cm2j1k2l30045vw08i7j8k9ll","name":"Mobile layout check","assigneeIds":["cm1b8su1q0006na08l5i2x0df"]}'const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ taskId: "cm2j1k2l30045vw08i7j8k9ll", name: "Mobile layout check", assigneeIds: [ "cm1b8su1q0006na08l5i2x0df", ], }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm2k3l4m50049wx08j8k9l0mp", "name": "Mobile layout check", "description": null, "task": { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero" }, "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "isCompleted": false, "completedAt": null, "completedBy": null, "assignees": [ { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" } ], "clientAssignees": [], "startDate": null, "dueDate": null, "priority": null, "label": null, "estimatedHours": null, "actualHours": 0, "commentCount": 0, "attachmentCount": 0, "createdBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "createdAt": "2026-11-20T11:24:51.733Z", "updatedAt": "2026-11-20T11:24:51.733Z" }}Update a subtask
Section titled “Update a subtask”Changes the fields sent and leaves the rest as they are. Send isCompleted true to mark the subtask complete or false to reopen it. When the last open subtask of a task is marked complete, the task is marked complete too, by the same person, and moves to the project’s completed-tasks section if it has one. A request that changes nothing saves nothing and answers 200.
PATCH /v1/projects/:id/subtasks/:subtaskIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
subtaskId |
path | string | Yes | The subtask’s id. |
name |
body | string | No | New name, 1–1000 characters, unique within the task. |
description |
body | string | No | New description as formatted text (HTML), or null to clear it. |
assigneeIds |
body | array of string | No | The complete list of team member ids the subtask is assigned to, as an array. Members not in the list are unassigned; an empty array unassigns everyone. Leave out to keep the assignees. |
clientAssigneeIds |
body | array of string | No | The complete list of People ids assigned, as an array, replacing the current list in the same way. |
startDate |
body | datetime | No | When work starts (a moment). Null clears it. |
dueDate |
body | datetime | No | When it is due (a moment), not earlier than startDate. Null clears it. |
priority |
body | string | No | high, medium or low, or null for no priority. |
labelId |
body | string | No | The id of one of the project’s labels, or null to remove the label. |
estimatedHours |
body | decimal | No | Estimated time in hours, 0 or more, or null to clear it. |
isCompleted |
body | boolean | No | true marks the subtask complete; false reopens it. |
Rules
403when the person may not edit tasks, or is a client portal user.403whenassigneeIdsorclientAssigneeIdschanges the assignees and the person may not assign task members.404when the project does not exist in this business or the person cannot see it.404when the subtask is not one of this project’s subtasks.400when the body is empty, or the name is empty or longer than 1000 characters.409when another subtask of the same task already has that name.400whenstartDateis afterdueDate, a date is not a valid moment, priority is not one of the listed values, orestimatedHoursis negative.404when a label id is not one of this project’s labels, an assignee id is not a team member of this business, or a client assignee id is not a person in this business’s People.- Marking a subtask complete notifies the people assigned to it.
- Every team member newly assigned gets an in-app notification and an email, unless they made the change themselves.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50047wx08j8k9l0mm" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"dueDate":"2026-11-21T17:00:00.000Z","estimatedHours":3}'const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50047wx08j8k9l0mm", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ dueDate: "2026-11-21T17:00:00.000Z", estimatedHours: 3, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2k3l4m50047wx08j8k9l0mm", "name": "Hero copy", "description": "<p>Headline and two lines of supporting copy.</p>", "task": { "id": "cm2j1k2l30045vw08i7j8k9ll", "name": "Homepage hero" }, "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "isCompleted": true, "completedAt": "2026-11-18T14:22:03.918Z", "completedBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "assignees": [ { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" } ], "clientAssignees": [ { "id": "cm1q2r3s40019pq08z0a1b2cc", "name": "Alex Kim" } ], "startDate": null, "dueDate": "2026-11-21T17:00:00.000Z", "priority": null, "label": null, "estimatedHours": 3, "actualHours": 1.5, "commentCount": 1, "attachmentCount": 0, "createdBy": { "id": "cm1b8su1q0006na08l5i2x0df", "name": "Sam Ortiz" }, "createdAt": "2026-11-10T08:33:40.007Z", "updatedAt": "2026-11-20T11:27:15.008Z" }}Delete a subtask
Section titled “Delete a subtask”Deletes the subtask with its comments and attachments. Time already logged against it stays on its task.
DELETE /v1/projects/:id/subtasks/:subtaskIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
subtaskId |
path | string | Yes | The subtask’s id. |
Rules
403when the person may not delete tasks, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the subtask is not one of this project’s subtasks.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50049wx08j8k9l0mp" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50049wx08j8k9l0mp", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Subtask deleted"}Convert a subtask to a task
Section titled “Convert a subtask to a task”Turns a subtask into a task of its own, at the top of the section its task is in. The new task keeps the subtask’s name, dates, priority, label and estimated time, and starts open; it has a new id, and the subtask is deleted with its description, assignees, comments and attachments. Time logged on the subtask stays on its former parent task.
POST /v1/projects/:id/subtasks/:subtaskId/convert-to-taskParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
subtaskId |
path | string | Yes | The subtask’s id. |
Rules
403when the person may not edit tasks, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the subtask is not one of this project’s subtasks.409when the section already has a task with the subtask’s name.- Answers 201 with the new task.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50048wx08j8k9l0mn/convert-to-task" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50048wx08j8k9l0mn/convert-to-task", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 201
{ "data": { "id": "cm2j1k2l30050vw08i7j8k9lq", "name": "Hero image crops", "description": null, "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "section": { "id": "cm2a3b4c50041uv08d1e2f3gg", "name": "In progress" }, "isCompleted": false, "completedAt": null, "completedBy": null, "assignees": [], "clientAssignees": [], "startDate": null, "dueDate": "2026-11-24T17:00:00.000Z", "priority": null, "label": null, "estimatedHours": 1, "actualHours": 0, "commentCount": 0, "attachmentCount": 0, "subtasks": [], "isArchived": false, "archivedAt": null, "createdBy": { "id": "cm1a7rt0p0002mz08k4h1w9ce", "name": "Jordan Lee" }, "createdAt": "2026-11-20T11:31:02.660Z", "updatedAt": "2026-11-20T11:31:02.660Z" }}Labels
Section titled “Labels”List labels
Section titled “List labels”Returns the labels the project’s tasks and subtasks can carry, in the order the project shows them.
GET /v1/projects/:id/labelsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
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 | Only labels whose name contains this text. |
updatedSince |
query | datetime | No | Only records changed at or after this moment. Records deleted since then are not reported. |
Rules
403when the person may not view projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels?limit=1" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels?limit=1", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm2b4c5d60043vw08e2f3g4hh", "name": "Design", "color": "#7C3AED", "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "createdAt": "2026-08-28T09:25:11.502Z", "updatedAt": "2026-08-28T09:25:11.502Z" } ], "totalCount": 5, "page": 1, "limit": 1}Create a label
Section titled “Create a label”Adds a label to the project.
POST /v1/projects/:id/labelsParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
name |
body | string | Yes | Label name, unique within the project. |
color |
body | string | Yes | Hex colour code, such as #7C3AED. |
Rules
403when the person may not create projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.400when the name is empty or the colour is not a hex colour code.409when the project already has a label with that name.- Answers 201 with the new label.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Copy","color":"#0EA5E9"}'const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Copy", color: "#0EA5E9", }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm2b4c5d60044vw08e2f3g4hi", "name": "Copy", "color": "#0EA5E9", "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "createdAt": "2026-11-20T11:35:44.120Z", "updatedAt": "2026-11-20T11:35:44.120Z" }}Update a label
Section titled “Update a label”Renames a label or changes its colour. Tasks and subtasks that carry it keep it.
PATCH /v1/projects/:id/labels/:labelIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
labelId |
path | string | Yes | The label’s id. |
name |
body | string | No | New name, unique within the project. |
color |
body | string | No | New hex colour code. |
Rules
403when the person may not edit projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the label is not one of this project’s labels.400when the body is empty, the name is empty or the colour is not a hex colour code.409when another label of the project has that name.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels/cm2b4c5d60043vw08e2f3g4hh" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"UI design"}'const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels/cm2b4c5d60043vw08e2f3g4hh", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "UI design", }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm2b4c5d60043vw08e2f3g4hh", "name": "UI design", "color": "#7C3AED", "project": { "id": "cm1d4e5f60023rs08a1b2c3dd", "name": "Website relaunch", "code": "103" }, "createdAt": "2026-08-28T09:25:11.502Z", "updatedAt": "2026-11-20T11:37:02.488Z" }}Delete a label
Section titled “Delete a label”Deletes a label. Tasks and subtasks that carried it are left with no label.
DELETE /v1/projects/:id/labels/:labelIdParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The project’s id. |
labelId |
path | string | Yes | The label’s id. |
Rules
403when the person may not delete projects, or is a client portal user.404when the project does not exist in this business or the person cannot see it.404when the label is not one of this project’s labels.
Example request
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels/cm2b4c5d60044vw08e2f3g4hi" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels/cm2b4c5d60044vw08e2f3g4hi", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Label deleted"}