This is an Enterprise only private endpoint. Checkout the Enterprise Pricing to get access.
Duplicate an existing studio template. You can duplicate it within the same workspace or to another workspace where you are the owner.
https://api.orshot.com/v1/studio/templates/:templateId/duplicate| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | Integer | Yes | The unique ID of the template to duplicate |
| Parameter | Type | Required | Description |
|---|---|---|---|
workspaceId | String | No | Target workspace ID. Defaults to current workspace if omitted. User must be the owner of target workspace. |
name | String | No | Name for the new template. Defaults to "Copy of original_name". |
description | String | No | Description for the new template. Defaults to original description. |
embed_user_id | String | No | Assign the duplicated template to an embed user. Accepts either an external user ID (resolved using your workspace's embed configuration) or an Orshot internal ID (prefixed with eui_). |
await fetch("https://api.orshot.com/v1/studio/templates/123/duplicate", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer <ORSHOT_API_KEY>",
},
body: JSON.stringify({
workspaceId: "target-workspace-id", // Optional
name: "New Template Copy", // Optional
description: "Duplicated for Q2 campaign", // Optional
embed_user_id: "your-external-user-id" // Optional
})
});