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. |
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
})
});