Skip to main content
POST
Add a task

Authorizations

Authorization
string
header
required

A group API key, sent as Authorization: Bearer sw_live_…. Keys from staging and the demo start sw_test_ instead. A group admin creates keys in Settings → Integrations → API keys.

Body

application/json

A field not listed here is refused with a 400.

boardId
string<uuid>
required

A board from GET /task-boards.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
title
string
required
Required string length: 1 - 255
columnId
string<uuid>

A column on that board. Leave it out to add the task to the board’s first column.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
description
string | null

Notes, up to 5,000 characters. Shown in Scoutworks. Free text never leaves through the API, so it is not returned.

Maximum string length: 5000
priority
enum<string>

Defaults to medium.

Available options:
low,
medium,
high,
urgent
dueDate
string<date-time> | null

When it is due, ISO 8601. Null for no due date.

labelIds
string<uuid>[]

Labels from the task’s board (GET /task-boards). Replaces the task’s labels; an id not on the board is refused.

Maximum array length: 20
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
{key}
any

Response

The task an earlier request with the same Idempotency-Key added.

data
object
required