> For the complete documentation index, see [llms.txt](https://help.mimeeq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.mimeeq.com/api/3d-templates/duplicate-3d-template.md).

# Duplicate 3D Template

Duplicate a 3D template with its blocks.

Use this to start new hotspot content from an existing template. Take `templateId` from List 3D Templates.

### Behaviour

The copy is `INACTIVE` and named after the original with a `_1` suffix, added again until the name is unique: a second copy of `Info` is named `Info_1_1`. Rename it with Update 3D Template. Each call makes another copy. Your Mimeeq licence must allow adding your own products; otherwise the copy is refused.

The response is the copy as stored; if it cannot be read back, it holds only the copy's `templateId`. An unknown template answers `404 template_3d_not_found`.

Requires the `templates3d:write` scope.

```json
{"openapi":"3.1.0","info":{"title":"Mimeeq External API","version":"1.2.0"},"tags":[{"name":"3D Templates","description":"Manage the global 3D templates in your Mimeeq account. A 3D template is hotspot content: what a shopper sees when they open a hotspot on a 3D product, built from ordered text, document and gallery blocks.\n\nGlobal templates belong to your account and many products can use the same one; Get 3D Template lists them. Product-level templates, made for a single product in the Mimeeq app, are not part of this API. Use this section to keep hotspot content in step with another system, such as product copy, manuals and media. Hotspots and their templates are attached to products in the Mimeeq app; this API does not attach them.\n\nDocuments and gallery images are files from your media library (see Files), and gallery blocks hold the same items as Galleries.\n\n## What you can do\n\n| Task | Reference |\n| --- | --- |\n| Find available 3D templates | [List 3D Templates](https://help.mimeeq.com/api/3d-templates/list-3d-templates) |\n| Add a new 3D template | [Create 3D Template](https://help.mimeeq.com/api/3d-templates/create-3d-template) |\n| Read one 3D template | [Get 3D Template](https://help.mimeeq.com/api/3d-templates/get-3d-template) |\n| Change 3D template | [Update 3D Template](https://help.mimeeq.com/api/3d-templates/update-3d-template) |\n| Remove a 3D template | [Delete 3D Template](https://help.mimeeq.com/api/3d-templates/delete-3d-template) |\n| Copy 3D template | [Duplicate 3D Template](https://help.mimeeq.com/api/3d-templates/duplicate-3d-template) |\n\n## Before you start\n\nYour API key needs `templates3d:read` to list and read templates, and `templates3d:write` to create, update and duplicate them (it also allows reading). Deleting a template needs `templates3d:delete`; write access alone does not delete.\n\n## Important behaviour\n\nTemplate names are unique, ignoring case. An update that sends `blocks` replaces the whole block list, and array order is the display order. Block text reads as formatted `{ html, text }` but is written as plain text; a language sent back unchanged keeps its formatting.\n\nEvery document and media-library gallery file must be one of your files; they are checked before anything is written.\n\nNew templates are `INACTIVE` unless you send `status`, and copies are always `INACTIVE`. A deleted template moves to the trash, where it can be restored in the Mimeeq app; a template that products still use cannot be deleted."}],"servers":[{"url":"https://admin.mimeeqapi.com","description":"Production API"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key sent as a bearer token (mk_live_… / mk_test_…)."}},"schemas":{"Templates3dMutation":{"type":"object","properties":{"data":{"type":"object","properties":{"templateId":{"type":"string","pattern":"^TPL-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"3D template identifier (TPL-<uuid>)."},"name":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE"]},"createdAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"modifiedAt":{"anyOf":[{"type":"string"},{"type":"null"}]},"blocks":{"type":"array","items":{"type":"object","properties":{"blockId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string","enum":["DOCUMENT","GALLERY","TEXT"]},"text":{"anyOf":[{"anyOf":[{"type":"object","properties":{"html":{"type":"string","description":"Draft.js content rendered as HTML."},"text":{"type":"string","description":"Plain text extracted from Draft.js blocks."}},"required":["html","text"],"additionalProperties":false,"title":"Single language"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"html":{"type":"string","description":"Draft.js content rendered as HTML."},"text":{"type":"string","description":"Plain text extracted from Draft.js blocks."}},"required":["html","text"],"additionalProperties":false},"title":"All languages"}]},{"type":"null"}],"description":"Formatted block text: one `{ html, text }` with `lang`, a `{ language: { html, text } }` map without it; null when the block has none."},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"directoryPath":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","directoryPath"],"additionalProperties":false}},"gallery":{"anyOf":[{"type":"object","properties":{"numColumns":{"type":"number","description":"Columns of the gallery grid, 1–4. The viewer shows at most 2 on phones. 4 when never set."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"mediaType":{"type":"string","enum":["IMAGE","VIDEO"]},"mediaSource":{"type":"string","enum":["CUSTOM","MEDIA_LIBRARY"]},"caption":{"anyOf":[{"anyOf":[{"type":"string","title":"Translated text"},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"title":"All languages"}]},{"type":"null"}],"description":"Translated text when `lang` is set, otherwise the full `{ language: text }` map. Languages with no text are omitted, and a field with no text at all is null."},"fileId":{"anyOf":[{"type":"string"},{"type":"null"}]},"filePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"anyOf":[{"type":"string"},{"type":"null"}]},"loop":{"type":"boolean","description":"Loop the video; false when never set."},"autoplay":{"type":"boolean","description":"Start the video muted and playing; false when never set."}},"required":["id","mediaType","mediaSource","caption","fileId","filePath","url","loop","autoplay"],"additionalProperties":false}}},"required":["numColumns","items"],"additionalProperties":false},{"type":"null"}]}},"required":["blockId","name","type","text","documents","gallery"],"additionalProperties":false}},"connectedProducts":{"type":"array","items":{"type":"object","properties":{"productId":{"type":"string","description":"Product identifier (PROD-<uuid>), for Get Product."},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"anyOf":[{"type":"string","enum":["ACTIVE","INACTIVE"]},{"type":"null"}]}},"required":["productId","name","status"],"additionalProperties":false},"description":"Products whose hotspots use the template. While it is not empty the template cannot be deleted."}},"required":["templateId"],"additionalProperties":false}},"required":["data"],"additionalProperties":false,"description":"Data schema used by Create 3D Template (POST /v1/3d-templates). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ."},"PublicError":{"description":"An API error response. Use code and the HTTP status to classify the failure, message and optional details for context, and requestId when reporting it. Edge firewall responses may omit requestId.","type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","description":"Present on every error the API itself returns; absent when the edge firewall rejected the request."},"details":{"description":"Optional error-specific details (e.g. per-field validation reasons)."}}}}},"paths":{"/v1/3d-templates/{templateId}/duplicate":{"post":{"summary":"Duplicate 3D Template","tags":["3D Templates"],"description":"Duplicate a 3D template with its blocks.\n\nUse this to start new hotspot content from an existing template. Take `templateId` from List 3D Templates.\n\n## Behaviour\n\nThe copy is `INACTIVE` and named after the original with a `_1` suffix, added again until the name is unique: a second copy of `Info` is named `Info_1_1`. Rename it with Update 3D Template. Each call makes another copy. Your Mimeeq licence must allow adding your own products; otherwise the copy is refused.\n\nThe response is the copy as stored; if it cannot be read back, it holds only the copy's `templateId`. An unknown template answers `404 template_3d_not_found`.\n\nRequires the `templates3d:write` scope.","responses":{"200":{"description":"Successful response.","headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Templates3dMutation"}}}},"400":{"description":"Invalid request data.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}}},"403":{"description":"The API key lacks the required scope (`scope_denied`), the operation is not permitted for this account (`operation_not_permitted`), or the account is inactive (`account_inactive`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"404":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"429":{"description":"The API key exceeded its request rate (`rate_limit_exceeded`) or its monthly quota (`quota_exceeded`). Both carry `Retry-After`; the `RateLimit-*` headers accompany `rate_limit_exceeded` only, since a spent quota says nothing about the bucket.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicError"}}},"headers":{"RateLimit-Limit":{"description":"Requests that can be admitted at once (the tier burst).","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Tokens left after this request.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the bucket is full again.","schema":{"type":"integer"}}}}},"parameters":[{"name":"templateId","in":"path","required":true,"schema":{"type":"string","pattern":"^TPL-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","description":"3D template identifier (TPL-<uuid>)."}}]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.mimeeq.com/api/3d-templates/duplicate-3d-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
