> ## Documentation Index > Fetch the complete documentation index at: https://docs.mapp.com/llms.txt > Use this file to discover all available pages before exploring further. # Copy a CMS template > Every call creates a new object. ## OpenAPI ````json POST /cmsTemplates/copy { "openapi": "3.0.4", "info": { "title": "Engage public API", "version": "1" }, "servers": [ { "url": "https://your-engage-domain.com/api/rest" } ], "tags": [ { "name": "Address Attributes" }, { "name": "Async" }, { "name": "Audit Log" }, { "name": "Automation" }, { "name": "Blacklist" }, { "name": "CMS (legacy)" }, { "name": "CMS Blocks" }, { "name": "CMS Frameworks" }, { "name": "CMS Messages" }, { "name": "CMS Templates" }, { "name": "Contact" }, { "name": "Content" }, { "name": "Coupon" }, { "name": "Draft Message" }, { "name": "Ecommerce" }, { "name": "Group" }, { "name": "Group Attributes" }, { "name": "Landing Page" }, { "name": "Member Attributes" }, { "name": "Membership" }, { "name": "Message" }, { "name": "Meta" }, { "name": "Mobile Push" }, { "name": "Prepared Message" }, { "name": "Process" }, { "name": "Profile Attributes" }, { "name": "Related Data" }, { "name": "Segmentation" }, { "name": "System" }, { "name": "System User" }, { "name": "Usage Statistics" }, { "name": "User" }, { "name": "Whiteboard" } ], "paths": { "/cmsTemplates/copy": { "post": { "tags": [ "CMS Templates" ], "summary": "Creates a copy of an existing template, identified by its numeric ID.", "description": "Every call creates a new object.", "operationId": "cmsTemplatesCopy", "parameters": [ { "name": "templateId", "in": "query", "description": "The numeric ID of the template.", "required": true, "schema": { "type": "integer", "format": "int64" } }, { "name": "newName", "in": "query", "description": "The name of the copy. If omitted, the source object's name is reused.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "The newly copied template.\n\nExample response:\n```json\n{\n \"id\": 9168,\n \"name\": \"November newsletter\",\n \"description\": \"Monthly newsletter template\",\n \"content\": \"
Welcome to our newsletter
\",\n \"renderedContent\": null,\n \"variables\": \"{\\\"BLOCKVAR_9405-387799208771704-175632977801977_buttonColor_ENDBLOCKVAR\\\": {\\\"id\\\": \\\"325a8b38-e9aa-47f4-a47b-f0300e837fec\\\", \\\"name\\\": \\\"Button Colour\\\", \\\"type\\\": \\\"text\\\", \\\"value\\\": \\\"#0055AA\\\", \\\"group\\\": \\\"Button\\\", \\\"order\\\": 1, \\\"inline\\\": \\\"false\\\"}}\",\n \"autoUpdate\": false,\n \"encoding\": \"UTF-8\"\n }\n ],\n \"fallbackContent\": null,\n \"groupId\": null,\n \"messageCategoryId\": null,\n \"createDate\": 1792998000000,\n \"modifyDate\": 1793001600000,\n \"version\": 1\n}\n```", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Template" } } } }, "400": { "description": "Error. All errors are returned as HTTP 400; errorCode in the body says what went wrong: INVALID_PARAMETER or MISSING_PARAMETER (a parameter is missing or invalid), NO_SUCH_OBJECT (no object with this ID in your account), PERMISSION_DENIED (your user lacks the CMS permission for this action), UNEXPECTED_ERROR (backend error). Example: {\"errorActor\": \"CLIENT\", \"errorCode\": \"NO_SUCH_OBJECT\", \"message\": \"...\", \"objectType\": null, \"propertyName\": null, \"propertyValue\": null}", "content": { "application/json": {} } } } } } }, "components": { "schemas": { "Template": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "description": { "type": "string" }, "content": { "type": "string" }, "tags": { "type": "string" }, "encoding": { "type": "string" }, "imageHandlingMode": { "enum": [ "host", "inline", "none" ], "type": "string" }, "variables": { "type": "string" }, "lifecycleStatus": { "enum": [ "ACTIVE", "ARCHIVED" ], "type": "string" }, "status": { "enum": [ "FINISHED", "WORKINPROGRESS" ], "type": "string" }, "framework": { "$ref": "#/components/schemas/FrameworkSummary" }, "blocks": { "type": "array", "items": { "$ref": "#/components/schemas/BlockInstance" } }, "fallbackContent": { "type": "string" }, "groupId": { "type": "integer", "format": "int64" }, "messageCategoryId": { "type": "integer", "format": "int64" }, "createDate": { "type": "integer", "format": "int64" }, "modifyDate": { "type": "integer", "format": "int64" }, "version": { "type": "integer", "format": "int32" } } }, "FrameworkSummary": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "lifecycleStatus": { "enum": [ "ACTIVE", "ARCHIVED" ], "type": "string" } } }, "BlockInstance": { "type": "object", "properties": { "blockInstanceId": { "type": "string" }, "blockId": { "type": "integer", "format": "int64" }, "name": { "type": "string" }, "description": { "type": "string" }, "content": { "type": "string" }, "renderedContent": { "type": "string" }, "variables": { "type": "string" }, "autoUpdate": { "type": "boolean", "default": false }, "encoding": { "type": "string" } } } } } } ````