import-project-template
Merge a template's tasks, sections, and comments into an existing project by importing via template ID, URL, or CSV.
Instructions
Import a template into an existing project, adding its tasks, sections and comments to whatever is already there. Source it by template ID/URL or by passing CSV content from export-project-template. To start a new project from a template, create the project with add-projects first, then import into it. This writes immediately and cannot be undone, so only run it against a project the user named.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Locale for the imported content when using `templateId`. Defaults to "en". | |
| projectId | Yes | The ID of the existing project to import the template into. | |
| templateId | No | The template to import — either a gallery slug ("product-launch"), a personal template ID ("UT_28Ex..."), or a full Todoist template URL, which is reduced to the ID automatically. Gallery templates work for anyone; personal templates only for the account that owns them. There is no way to list templates through this server, so only use the ID or URL the user supplied. Provide either this or `csvFileContent`, not both. | |
| csvFileContent | No | Raw CSV template content, as produced by export-project-template. Provide either this or `templateId`, not both. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | Yes | Tasks created by the import. | |
| comments | Yes | Comments created by the import. | |
| sections | Yes | Sections created by the import. | |
| totalCount | Yes | The total number of objects created by the import. |