Skip to content

Move a task within a project

PATCH
/projects/{id}/tasks/{taskId}/position
Code sample: Shell / cURL
curl --request PATCH \
--url https://example.com/api/v1/projects/example/tasks/example/position \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "position": "example", "status": "example" }'

Moves a task on its project’s board. status (a status of the project’s workflow, by name or id) changes the task’s one status through the same path as PATCH /tasks/{id}: entering a completed status completes the task (422 DEPENDENCY_BLOCKED when an unfinished blocking dependency refuses it), leaving it reopens the task, and a status that names a role hands the task to it. position reorders the card in its column (invalid keys return 400). Any other body key returns 400. Responds 404 when the task is not this project’s. Requires the tasks.manage permission.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

taskId
required

Task identifier.

string
>= 1 characters

Task identifier.

Media typeapplication/json
object
position

Canonical LexoRank position, such as 0|hzzzzz:.

string
>= 1 characters
status

Target status of the project’s workflow, by name (matched without case) or id. Omitted, the task keeps its status.

string
>= 1 characters

Example generated

{
"position": "example",
"status": "example"
}

The task’s status and position after the move, and what the status change did.

Media typeapplication/json
object
data
required
object
position
required
string | null
projectId
required
string
status
required
Any of:
object
id
required
string
name
required
string
statusChange
required
Any of:
object
cascadedSubtaskIds
required
Array<string>
changed
required
boolean
fromStatus
required
Any of:
object
id
required
string
name
required
string
role
required
object
kind
required
string
key
additional properties
toStatus
required
object
id
required
string
name
required
string
taskId
required
string

Example generated

{
"data": {
"position": "example",
"projectId": "example",
"status": {
"id": "example",
"name": "example"
},
"statusChange": {
"cascadedSubtaskIds": [
"example"
],
"changed": true,
"fromStatus": {
"id": "example",
"name": "example"
},
"role": {
"kind": "example"
},
"toStatus": {
"id": "example",
"name": "example"
}
},
"taskId": "example"
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Blocked by an unfinished dependency.

Media typeapplication/json

Completion refused by an unfinished blocking dependency.

object
error
required
object
blockingTasks
required

Unfinished tasks this task is waiting on.

Array<object>
object
id
required
string
number
required
integer
>= -9007199254740991 <= 9007199254740991
title
required
string
code
required
string
Allowed value: DEPENDENCY_BLOCKED
message
required
string
status
required
number
Allowed value: 422

Example

{
"error": {
"code": "DEPENDENCY_BLOCKED",
"status": 422
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.