Preview moving a project to another workflow
curl --request POST \ --url https://example.com/api/v1/projects/example/workflow/preview \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "mapping": { "additionalProperty": "example" }, "workflowId": "example" }'Shows what moving the project to another workflow would do, and writes nothing: for each status its tasks hold (subtasks included), the target status the tasks land in and why, how many tasks move, the target workflow’s statuses and what blocks the change. Send mapping to choose where a status lands. Responds 404 when the member does not reach the project or the workflow does not exist. Requires the projects.manage permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Request Body
Section titled “Request Body”object
Statuses mapped by hand, keyed by the id of a status the project’s tasks hold, each to a status of the target workflow by id or name. A status left out maps automatically: the one with the same name, then the first of the nearest category.
object
The workflow the project moves to, from GET /workflows.
Example generated
{ "mapping": { "additionalProperty": "example" }, "workflowId": "example"}Responses
Section titled “Responses”The preview.
object
object
Reasons the change cannot be applied; empty when it can.
object
One row per status the project’s tasks hold, in board order.
object
Why the status lands there: chosen by hand, or suggested by the same name or the nearest category; none when nothing fits.
Every task of the project that moves, subtasks included.
The statuses of the target workflow, in board order.
object
object
Example
{ "data": { "rows": [ { "basis": "same" } ] }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The change is refused.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC