Create internal work tasks from a ticket
curl --request POST \ --url https://example.com/api/v1/tickets/example/work-tasks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "requestKey": "example", "tasks": [ { "description": "example", "projectId": "example", "title": "example" } ] }'Creates between 1 and 20 client-invisible work tasks, each at its project’s default column, and links them all to the ticket as one all-or-nothing operation; a failure creates nothing. The request is idempotent by requestKey: repeating it with the same tasks returns the tasks the first request created (replayed: true, status 200) and creates nothing, even if two identical requests race or the ticket was merged into another afterwards; the same key with different tasks answers 409. The ticket must not be merged into another or in a terminal status, and no project may be personal, archived, the workspace’s inbox project, or — for a ticket belonging to a client — another client’s project (a clientless/internal project is still a valid target). A request that creates tasks posts one internal note on the ticket listing all of them; a replay posts none. A ticket’s status follows its board only while it has exactly one linked task. Requires the tickets.manage permission and a ticket within the caller’s scope.
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
Idempotency key of 8 to 128 letters, digits, dots, colons, dashes or underscores, generated by the caller (a UUID is fine). Repeating a request with the same key and the same tasks returns the tasks the first request created and creates nothing; the same key with different tasks is refused with CONFLICT.
Between 1 and 20 tasks to create and link to the ticket, in order.
object
Task description as Markdown, at most 20000 characters once stored as HTML. GitHub-Flavored Markdown, converted to sanitized HTML for storage. Survives the round trip: headings (the web editor edits h1-h2 and demotes deeper levels to paragraphs), bold, italic, strikethrough, underline as , inline code, fenced code blocks with a language, links, bullet, numbered and nested lists, task lists, blockquotes, horizontal rules, hard line breaks, tables with header rows (merged cells and complex tables use sanitized inline HTML), images served from /api/v1/files/, member mentions written as @Name, and a Loom, Cap (cap.so or the organization’s own Cap server), Figma, YouTube, Google Docs or GitHub pull-request link standing alone in its paragraph, which becomes an embed. Inline HTML passes through the same sanitizer as the editor. Lost: external image URLs (dropped by the sanitizer), link titles, text alignment.
Project the task is created in, at that project’s default column. Not a personal project, not the inbox project, and not another client’s project.
Title of the internal work task.
Example generated
{ "requestKey": "example", "tasks": [ { "description": "example", "projectId": "example", "title": "example" } ]}Responses
Section titled “Responses”The request key had already been honoured; the tasks it created.
object
The internal work tasks created from a ticket by one idempotent request.
object
True when the request key had already been honoured and nothing new was created.
The tasks the request created, in request order.
An internal work task linked to a ticket, with where it sits on its board.
object
TicketPromotion link id.
Member who linked the task to the ticket.
Workspace-scoped number of the work task.
Project whose board holds the task, or null when it sits on no board.
Name of the board column the task is in.
The linked internal work task.
Example
{ "data": { "tasks": [ { "statusCategory": "BACKLOG" } ] }}The tasks created and linked to the ticket.
object
The internal work tasks created from a ticket by one idempotent request.
object
True when the request key had already been honoured and nothing new was created.
The tasks the request created, in request order.
An internal work task linked to a ticket, with where it sits on its board.
object
TicketPromotion link id.
Member who linked the task to the ticket.
Workspace-scoped number of the work task.
Project whose board holds the task, or null when it sits on no board.
Name of the board column the task is in.
The linked internal work task.
Example
{ "data": { "tasks": [ { "statusCategory": "BACKLOG" } ] }}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" }}Conflict.
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