Skip to content

Create a project from a template

POST
/project-templates/{templateId}/instantiate
Code sample: Shell / cURL
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).

templateId
required

Project template identifier (CUID2).

string
>= 1 characters

Project template identifier (CUID2).

Media typeapplication/json

The new project’s fields; the template’s structure is applied over it.

object
aliases
Array<string>
businessStatusId

Defaults to the workspace’s default project status when omitted.

string
clientId
string
code
string
color
string
defaultBillingRateType

Kept for compatibility only: it no longer prices orders, which take their company’s rate.

string
Allowed values: NONE ORDER MEMBER ACTIVITY_TYPE
defaultHourlyRate

Kept for compatibility only: it no longer prices orders, which take their company’s rate.

number
defaultTimeOrderId

Order preselected when logging time against a task in this project.

string
description

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.

string
endDate

ISO 8601 date-time.

string
icon
string
name
required
string
>= 1 characters <= 200 characters
prefix
string
<= 10 characters
primaryUrl
string format: uri
startDate

ISO 8601 date-time.

string
status

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.

string
Allowed values: ACTIVE ARCHIVED
typeId
string
workflowId

The workflow whose statuses are the board’s columns, from GET /workflows. Defaults to the default workflow.

string
>= 1 characters

The created project and what the template applied.

Media typeapplication/json
object
data
required

The project created from a template and what the template applied to it.

object
applied
required

How much structure the template applies to a project.

object
automations
required
integer
>= -9007199254740991 <= 9007199254740991
customFields
required
integer
>= -9007199254740991 <= 9007199254740991
statuses
required
integer
>= -9007199254740991 <= 9007199254740991
tasks
required
integer
>= -9007199254740991 <= 9007199254740991
views
required
integer
>= -9007199254740991 <= 9007199254740991
name
required
string
projectId
required
string
skippedAutomations
required
Array<object>

A captured automation that failed validation on instantiation (e.g. a stale member, label or field reference) and was not created.

object
name
required
string
reason
required
string

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.

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

Invalid input.

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.