---
title: "Clone Template"
method: POST
path: "/api/MobileApp/templates/clone"
tags: ["MobileApp"]
---

# Clone Template

`POST /api/MobileApp/templates/clone`

## Request

- Base URL: `https://api.leapsurgebi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.leapsurgebi.com/api/MobileApp/templates/clone`
- Auth: OAuth 2
  - Password
  - Token URL: `/auth/token`
- TypeScript: <https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/docs/api/MobileApp/templates/clone/post.ts> (a function with typed inputs; its response is checked against the schema)

Clone a template within the same customer scope.

Request body:
- `app_code`: The application code of the template to be cloned.
- `source_template_code`: The template code of the template to be cloned.
- `new_template_name`: The desired name for the cloned template.
- `status`: The desired status for the cloned template.
- `modified_by`: The username of the user performing the clone operation.
- `modified_on`: The timestamp of the clone operation.

Response:
- `template_code`: The template code of the cloned template.
- `template_name`: The name of the cloned template.
- `cloned_from`: The template code of the source template.
- `counts`: A dictionary containing the counts of pages, filters, recipient list items, and schedules cloned.
- `status`: The status of the cloned template.
- `created_user`: The username of the user who created the cloned template.
- `date_of_creation`: The timestamp of the creation of the cloned template.
- `modified_user`: The username of the user who last modified the cloned template.
- `date_of_modification`: The timestamp of the last modification of the cloned template.

Raises:
- 400: Invalid Customer Key or source template code.
- 404: Source template not found.
- 500: Internal Server Error.

## Headers

- `Customer-Key` string, required

## Request body

- TemplateCloneRequest
  - `app_code` string, required
  - `source_template_code` string, required
  - `new_template_name` string, required
  - `status` boolean, nullable
  - `modified_by` string, required
  - `modified_on` string, date-time, required
  - `reset_schedule_state` boolean
  - `recompute_next_from_start` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-24** `23b42df3193a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/changes/api/MobileApp/templates/clone/post.md)

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) - [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) - [OpenAPI document](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/revisions/13653cb8ee76?raw)
