---
title: "Copy a template"
method: POST
path: "/api/templates/{id}/copy"
tags: ["Templates"]
---

# Copy a template

`POST /api/templates/{id}/copy`

## Request

- Base URL: `https://morfee.furo.solutions`
- URL: `https://morfee.furo.solutions/api/templates/{id}/copy`
- Auth: one of:
  - API key in header `X-Api-Key`
  - HTTP bearer

A copy with an id of its own. Worth doing before a risky change: nothing warns a flow that the template behind its id has been edited.

Needs a key scoped `write` or `full`.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string: Falls back to "<name> (copy)".

## Response `200`

The copy.

- object
  - `ok` boolean
  - `template` TemplateMeta: A template as the list hands it over: everything except the template body itself.
    - `id` string, required: The id to render with. Lower case, digits and dashes.
    - `name` string, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `createdBy` string, nullable: The email address that saved it first.
    - `folderId` string, nullable: null means it is in no folder.
    - `bindingCount` integer: How many fields are pointed at.
    - `listCount` integer: How many of those are lists.
    - `byHand` boolean: True when the template has logic in it but no bindings: written directly rather than built by pointing at a design. The builder cannot rebuild such a template and opens it read only.
    - `sizeKb` integer

## Other responses

- `401`: No key, an unknown key or a revoked one.
- `402`: The ceiling of the plan, or a plan whose end date has passed. The message says which, and the hint points at /billing.
- `403`: The key is real and the organization is right, but the scope on it does not cover this. The message names the scope the key has, what that scope may do, and how to get a wider one, because the thing reading it is usually the thing that has to act on it.
- `404`: Not there, or not yours. Both give the same answer on purpose: a different one would let a caller find out which ids exist in another organization.

---

[API](https://skmtc.dev/furo/apis/morfee.md) · [All operations](https://skmtc.dev/furo/apis/morfee/llms.txt) · [OpenAPI document](https://skmtc.dev/furo/apis/morfee/revisions/83f95f89653f?raw)
