---
title: "Save an existing project as a template"
method: POST
path: "/templates"
tags: ["templates"]
---

# Save an existing project as a template

`POST /templates`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/templates`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Plan: `templates` (PRO+).

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `projectId` string, uuid, required
  - `name` string, required
  - `description` string

## Response `200`

Created

- ProjectTemplate
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `organizationId` string, uuid, nullable: null = system-built-in template (available on all plans).
  - `taskCount` integer
  - `milestoneCount` integer
  - `createdById` string, uuid, nullable
  - `createdAt` string, date-time, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `402`: Plan gate - feature not available on current plan
- `403`: Forbidden - insufficient role

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
