Skip to content

Preview moving a task to another project

POST
/tasks/{id}/move/preview
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/api/v1/tasks/example/move/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "fingerprint": "example", "projectId": "example", "targetStatusId": "example" }'

Shows what moving the task and its subtasks to another project would do, and writes nothing: how each status maps onto the target workflow, the custom field values the target does not attach (deleted on apply), and what blocks the move. Send targetStatusId to choose the status the task lands in. Responds 404 when the member does not reach the task or the target project. Requires the tasks.manage permission.

id
required

Resource identifier (CUID2).

string
>= 1 characters

Resource identifier (CUID2).

Media typeapplication/json
object
fingerprint

The fingerprint of the preview. Sent to apply, the move is refused when the task or the target changed since the preview.

string
>= 1 characters
projectId
required

The project the task moves to.

string
>= 1 characters
targetStatusId

A status of the target project’s workflow for the task to land in. Without it the status maps automatically: the same status, then the one with the same name, then the nearest category. Subtasks always map automatically.

string
>= 1 characters

Example generated

{
"fingerprint": "example",
"projectId": "example",
"targetStatusId": "example"
}

The preview.

Media typeapplication/json
object
data
required
object
blockers
required

Reasons the move cannot be applied; empty when it can.

Array<string>
fingerprint
required
string
fromProject
required
object
id
required
string
name
required
string
lostValues
required

Custom field values the target project does not attach; applying the move deletes them.

Array<object>
object
fieldId
required
string
fieldName
required
string
valueCount
required
integer
>= -9007199254740991 <= 9007199254740991
statusMapping
required
Array<object>
object
basis
required
string
Allowed values: same name category none chosen
fromStatus
required
string | null
fromStatusId
required
string | null
taskCount
required
integer
>= -9007199254740991 <= 9007199254740991
toStatus
required
string | null
toStatusId
required
string | null
targetStatuses
required

Statuses of the target workflow, in board order.

Array<object>
object
category
required
string
Allowed values: BACKLOG UNSTARTED STARTED COMPLETED
id
required
string
name
required
string
taskCount
required

The task and every subtask that moves with it.

integer
>= -9007199254740991 <= 9007199254740991
taskId
required
string
toProject
required
object
id
required
string
name
required
string

Example

{
"data": {
"statusMapping": [
{
"basis": "same"
}
],
"targetStatuses": [
{
"category": "BACKLOG"
}
]
}
}

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

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.