Skip to content

Project sections

A project’s task board is split into sections, such as To do, In progress and Done. Each section holds the project’s tasks in board order; sections are shown left to right (or top to bottom in the list view) in the order of their position.

Reading sections 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). Client portal users are always refused. Adding a section needs the permission to create sections. Renaming, moving, archiving and restoring a section need the permission to edit sections. Deleting a section deletes its tasks too, so it needs the permission to delete tasks. Administrators hold every permission; the built-in Member and Manager profiles hold all four by default. Nothing in a section is hidden from someone who may see the project. A person without the permission an endpoint needs gets 403.

One section of a project’s task board.

Field Type Description
id string The section’s id. Read only.
name string Section name, 1–255 characters, unique within the project.
project object The project the section belongs to: { id, name, code }. Read only.
position integer Where the section sits on the board, counting from 1 at the left. Archived sections keep their position.
taskCount integer How many tasks are in the section, archived tasks left out. Subtasks are not counted. Read only.
completedTaskCount integer How many of those tasks are completed. Read only.
isCompletedTasksSection boolean True when this is the section the project’s Mark as complete action moves completed tasks into. At most one section of a project has it; it is chosen in the project’s settings. Read only.
isArchived boolean True when the section is archived: it and the tasks it archived with it are off the board, kept and restorable.
archivedAt datetime When the section was archived. Null when it is not archived. Read only. Can be null.
createdAt datetime When the section was created. Read only.
updatedAt datetime When the section last changed. Adding, editing or moving a task does not change it. Read only.

Returns the project’s sections in board order. Archived sections are left out unless asked for.

GET /v1/projects/:id/sections

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 sections whose name contains this text.
isArchived query boolean No false (default): current sections only; true: archived sections only.
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

  • 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/sections?limit=2" \
-H "X-API-Key: $ONESUITE_TOKEN"

Example response — status 200

{
"data": [
{
"id": "cm2a3b4c50040uv08d1e2f3gf",
"name": "To do",
"project": {
"id": "cm1d4e5f60023rs08a1b2c3dd",
"name": "Website relaunch",
"code": "103"
},
"position": 1,
"taskCount": 9,
"completedTaskCount": 0,
"isCompletedTasksSection": false,
"isArchived": false,
"archivedAt": null,
"createdAt": "2026-08-28T09:20:40.902Z",
"updatedAt": "2026-08-28T09:20:40.902Z"
},
{
"id": "cm2a3b4c50041uv08d1e2f3gg",
"name": "In progress",
"project": {
"id": "cm1d4e5f60023rs08a1b2c3dd",
"name": "Website relaunch",
"code": "103"
},
"position": 2,
"taskCount": 14,
"completedTaskCount": 3,
"isCompletedTasksSection": false,
"isArchived": false,
"archivedAt": null,
"createdAt": "2026-08-28T09:20:41.118Z",
"updatedAt": "2026-11-03T15:02:19.770Z"
}
],
"totalCount": 4,
"page": 1,
"limit": 2
}

Returns one section of the project, archived or not.

GET /v1/projects/:id/sections/:sectionId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
sectionId path string Yes The section’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 section is not one of this project’s sections.

Example request

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

Example response — status 200

{
"data": {
"id": "cm2a3b4c50041uv08d1e2f3gg",
"name": "In progress",
"project": {
"id": "cm1d4e5f60023rs08a1b2c3dd",
"name": "Website relaunch",
"code": "103"
},
"position": 2,
"taskCount": 14,
"completedTaskCount": 3,
"isCompletedTasksSection": false,
"isArchived": false,
"archivedAt": null,
"createdAt": "2026-08-28T09:20:41.118Z",
"updatedAt": "2026-11-03T15:02:19.770Z"
}
}

Adds a section to the project’s board, at the right-hand end unless position says otherwise. The new section is empty.

POST /v1/projects/:id/sections

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
name body string Yes Section name, 1–255 characters, unique within the project.
position body integer No Where to put the section, counting from 1 at the left. Sections from that place on move one to the right. Leave out to add it at the end.

Rules

  • 403 when the person may not create sections, 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 longer than 255 characters, or position is not a whole number of 1 or more.
  • 409 when the project already has a section with that name, archived sections included.
  • Answers 201 with the new section.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/sections" \
-X POST \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Client review"}'

Example response — status 201

{
"data": {
"id": "cm2a3b4c50042uv08d1e2f3gh",
"name": "Client review",
"project": {
"id": "cm1d4e5f60023rs08a1b2c3dd",
"name": "Website relaunch",
"code": "103"
},
"position": 5,
"taskCount": 0,
"completedTaskCount": 0,
"isCompletedTasksSection": false,
"isArchived": false,
"archivedAt": null,
"createdAt": "2026-11-20T10:41:07.315Z",
"updatedAt": "2026-11-20T10:41:07.315Z"
}
}

Changes the fields sent and leaves the rest as they are: rename the section, move it to another position on the board, or archive or restore it. Archiving a section also archives its current tasks; restoring it brings back exactly those tasks, while a task that was archived on its own stays archived. A request that changes nothing saves nothing and answers 200.

PATCH /v1/projects/:id/sections/:sectionId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
sectionId path string Yes The section’s id.
name body string No New name, 1–255 characters, unique within the project.
position body integer No New place on the board, counting from 1 at the left. The sections in between shift by one. A number past the end puts the section last.
isArchived body boolean No true archives the section with its current tasks; false restores it.

Rules

  • 403 when the person may not edit sections, 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 section is not one of this project’s sections.
  • 400 when the body is empty, the name is empty or longer than 255 characters, or position is not a whole number of 1 or more.
  • 409 when another section of the project already has the new name.

Example request

Terminal window
curl "https://api.onesuite.io/v1/projects/cm1d4e5f60023rs08a1b2c3dd/sections/cm2a3b4c50041uv08d1e2f3gg" \
-X PATCH \
-H "X-API-Key: $ONESUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Doing","position":3}'

Example response — status 200

{
"data": {
"id": "cm2a3b4c50041uv08d1e2f3gg",
"name": "Doing",
"project": {
"id": "cm1d4e5f60023rs08a1b2c3dd",
"name": "Website relaunch",
"code": "103"
},
"position": 3,
"taskCount": 14,
"completedTaskCount": 3,
"isCompletedTasksSection": false,
"isArchived": false,
"archivedAt": null,
"createdAt": "2026-08-28T09:20:41.118Z",
"updatedAt": "2026-11-20T10:44:52.006Z"
}
}

Deletes the section together with every task and subtask in it, archived ones included, with their comments and attachments. This cannot be undone; archive the section instead to keep its tasks. Time already logged against those tasks is kept on the project, with no task.

DELETE /v1/projects/:id/sections/:sectionId

Parameters

Parameter In Type Required Description
id path string Yes The project’s id.
sectionId path string Yes The section’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 section is not one of this project’s sections.
  • Only the section is deleted: the project and its other sections are untouched.

Example request

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

Example response — status 200

{
"message": "Section deleted"
}