Tasks

Create task

Creates a task within a task list. Either linkedCardId or name must be provided. Requires board editor permissions.

post/task-lists/{taskListId}/tasks

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/task-lists/{taskListId}/tasks
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Api-Key

Path parameters

taskListIdstring required
Example:1357158568008091264

ID of the task list to create task in

Request body

linkedCardIdstring

ID of the card linked to the task

positionnumber required

Position of the task within the task list

namestring nullable

Name/title of the task (required if linkedCardId is not provided)

isCompletedboolean

Whether the task is completed

Example request

{
  "linkedCardId": "1357158568008091265",
  "position": 65536,
  "name": "Write unit tests"
}

Response

Task created successfully

Example response

{
  "item": {
    "id": "1357158568008091264",
    "taskListId": "1357158568008091265",
    "linkedCardId": "1357158568008091266",
    "assigneeUserId": "1357158568008091267",
    "position": 65536,
    "name": "Write unit tests",
    "createdAt": "2024-01-01T00:00:00.000Z",
    "updatedAt": "2024-01-01T00:00:00.000Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.