---
title: "Duplicate template"
method: POST
path: "/duplicateGoogleDocTemplate"
tags: ["Templates"]
---

# Duplicate template

`POST /duplicateGoogleDocTemplate`

Creates a copy of the Google Doc template associated with an automation. The new template is saved to your Google Drive.

## Query parameters

- `automationId` string, required
- `newTemplateName` string

## Response `200`

Template duplicated

- object
  - `message` string
  - `newTemplateId` string — Google Doc ID of the new template.
  - `url` string, uri — URL to edit the new template.

## Other responses

- `400` — Invalid request parameters
- `404` — Resource not found

---

[API](https://skmtc.dev/docsautomator/apis/docsautomator-api.md) · [All operations](https://skmtc.dev/docsautomator/apis/docsautomator-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docsautomator/docsautomator-api/revisions/3ec829ff5817/schema)
