Skip to content

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.

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.

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.

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.

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.

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/tasks

Parameters

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

  • 403 when the person may not view projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 400 when 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

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks?filterAssigneeIds=cm1a7rt0p0002mz08k4h1w9ce&isCompleted=false&limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

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
}

Returns one task of the project, archived or not.

GET /v1/projects/:id/tasks/:taskId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
taskId path string Yes The task’s id.

Rules

  • 403 when the person may not view projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the task is not one of this project’s tasks.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30045vw08i7j8k9ll" \
-H "X-API-Key: $ONESUITE_TOKEN"

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"
}
}

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/tasks

Parameters

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

  • 403 when the person may not create tasks, or is a client portal user.
  • 403 when assigneeIds or clientAssigneeIds is sent by a person who may not assign task members.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when sectionId is not one of this project’s sections.
  • 409 when the section is archived: restore it first.
  • 400 when the name is empty or longer than 1000 characters, placement is not top or bottom, or the section already holds 500 tasks.
  • 409 when the section already has a task with that name.
  • 400 when startDate is after dueDate, a date is not a valid moment, priority is not one of the listed values, or estimatedHours is negative.
  • 404 when 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

Terminal window
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"}'

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"
}
}

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/:taskId

Parameters

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

  • 403 when the person may not edit tasks, or is a client portal user.
  • 403 when assigneeIds or clientAssigneeIds changes the assignees and the person may not assign task members.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the task is not one of this project’s tasks.
  • 404 when sectionId is not one of this project’s sections.
  • 400 when the body is empty, or the name is empty or longer than 1000 characters.
  • 409 when 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.
  • 400 when startDate is after dueDate, a date is not a valid moment, priority is not one of the listed values, or estimatedHours is negative.
  • 404 when 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

Terminal window
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}'

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"
}
}

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/:taskId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
taskId path string Yes The task’s id.

Rules

  • 403 when the person may not delete tasks, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the task is not one of this project’s tasks.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/tasks/cm2j1k2l30049vw08i7j8k9lp" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Task deleted"
}

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/subtasks

Parameters

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

  • 403 when the person may not view projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 400 when a value is not one of the listed values or from is after to.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks?filterTaskIds=cm2j1k2l30045vw08i7j8k9ll&limit=1" \
-H "X-API-Key: $ONESUITE_TOKEN"

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
}

Returns one subtask of the project.

GET /v1/projects/:id/subtasks/:subtaskId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
subtaskId path string Yes The subtask’s id.

Rules

  • 403 when the person may not view projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the subtask is not one of this project’s subtasks.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50047wx08j8k9l0mm" \
-H "X-API-Key: $ONESUITE_TOKEN"

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"
}
}

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/subtasks

Parameters

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

  • 403 when the person may not create tasks, or is a client portal user.
  • 403 when assigneeIds or clientAssigneeIds is sent by a person who may not assign task members.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when taskId is not one of this project’s tasks.
  • 400 when the name is empty or longer than 1000 characters, placement is not top or bottom, or the task already has 200 subtasks.
  • 409 when the task already has a subtask with that name.
  • 400 when startDate is after dueDate, a date is not a valid moment, priority is not one of the listed values, or estimatedHours is negative.
  • 404 when 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

Terminal window
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"]}'

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"
}
}

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/:subtaskId

Parameters

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

  • 403 when the person may not edit tasks, or is a client portal user.
  • 403 when assigneeIds or clientAssigneeIds changes the assignees and the person may not assign task members.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the subtask is not one of this project’s subtasks.
  • 400 when the body is empty, or the name is empty or longer than 1000 characters.
  • 409 when another subtask of the same task already has that name.
  • 400 when startDate is after dueDate, a date is not a valid moment, priority is not one of the listed values, or estimatedHours is negative.
  • 404 when 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

Terminal window
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}'

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"
}
}

Deletes the subtask with its comments and attachments. Time already logged against it stays on its task.

DELETE /v1/projects/:id/subtasks/:subtaskId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
subtaskId path string Yes The subtask’s id.

Rules

  • 403 when the person may not delete tasks, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the subtask is not one of this project’s subtasks.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50049wx08j8k9l0mp" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Subtask deleted"
}

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-task

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
subtaskId path string Yes The subtask’s id.

Rules

  • 403 when the person may not edit tasks, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the subtask is not one of this project’s subtasks.
  • 409 when the section already has a task with the subtask’s name.
  • Answers 201 with the new task.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/subtasks/cm2k3l4m50048wx08j8k9l0mn/convert-to-task" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN"

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"
}
}

Returns the labels the project’s tasks and subtasks can carry, in the order the project shows them.

GET /v1/projects/:id/labels

Parameters

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

  • 403 when the person may not view projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.

Example request

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

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
}

Adds a label to the project.

POST /v1/projects/:id/labels

Parameters

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

  • 403 when the person may not create projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 400 when the name is empty or the colour is not a hex colour code.
  • 409 when the project already has a label with that name.
  • Answers 201 with the new label.

Example request

Terminal window
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"}'

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"
}
}

Renames a label or changes its colour. Tasks and subtasks that carry it keep it.

PATCH /v1/projects/:id/labels/:labelId

Parameters

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

  • 403 when the person may not edit projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the label is not one of this project’s labels.
  • 400 when the body is empty, the name is empty or the colour is not a hex colour code.
  • 409 when another label of the project has that name.

Example request

Terminal window
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"}'

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"
}
}

Deletes a label. Tasks and subtasks that carried it are left with no label.

DELETE /v1/projects/:id/labels/:labelId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
labelId path string Yes The label’s id.

Rules

  • 403 when the person may not delete projects, or is a client portal user.
  • 404 when the project does not exist in this business or the person cannot see it.
  • 404 when the label is not one of this project’s labels.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/labels/cm2b4c5d60044vw08e2f3g4hi" \
-X DELETE \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"message": "Label deleted"
}