Create a project from a template
curl --request POST \ --url https://example.com/api/v1/project-templates/example/instantiate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "aliases": [ "example" ], "businessStatusId": "example", "clientId": "example", "code": "example", "color": "example", "defaultBillingRateType": "NONE", "defaultHourlyRate": 1, "defaultTimeOrderId": "example", "description": "example", "endDate": "example", "icon": "example", "name": "example", "prefix": "example", "primaryUrl": "https://example.com", "startDate": "example", "status": "ACTIVE", "typeId": "example", "workflowId": "example" }'Requires the projects.create permission. The body is the same as POST /projects; the project then takes the template’s workflow when it still exists, its shared views are replaced, captured statuses are matched by id, then by name, and the template adds its custom fields and automations, and creates its seed tasks. The caller owns every instantiated automation. A automation that fails validation after its ids are remapped (e.g. a member who left, a deleted label) is skipped rather than aborting the rest of the template; the response’s skippedAutomations names each one and why. Seed tasks keep their assignee, labels and subtasks and fall due the captured number of days after the project’s startDate (today when it has none).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project template identifier (CUID2).
Project template identifier (CUID2).
Request Body
Section titled “Request Body”The new project’s fields; the template’s structure is applied over it.
object
Defaults to the workspace’s default project status when omitted.
Kept for compatibility only: it no longer prices orders, which take their company’s rate.
Kept for compatibility only: it no longer prices orders, which take their company’s rate.
Order preselected when logging time against a task in this project.
Project description as Markdown. 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.
ISO 8601 date-time.
ISO 8601 date-time.
ACTIVE, the default, creates a working project. ARCHIVED adds a company’s card with no active work: it needs clientId, takes no workflowId, starts from no template and stays off boards, pickers and new orders until PATCH /projects/{id} sets status to ACTIVE.
The workflow whose statuses are the board’s columns, from GET /workflows. Defaults to the default workflow.
Responses
Section titled “Responses”The created project and what the template applied.
object
The project created from a template and what the template applied to it.
object
How much structure the template applies to a project.
object
A captured automation that failed validation on instantiation (e.g. a stale member, label or field reference) and was not created.
object
Example generated
{ "data": { "applied": { "automations": 1, "customFields": 1, "statuses": 1, "tasks": 1, "views": 1 }, "name": "example", "projectId": "example", "skippedAutomations": [ { "name": "example", "reason": "example" } ] }}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" }}Invalid input.
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