Productsup

Duplicate an export template

Creates a deep copy of an export template, including all attributes, analyzer tests, tags, custom form fields, and marketing data. The duplicate receives a (Copy) name suffix and Draft status. The operation runs asynchronously and returns 202 Accepted with a Content-Location header pointing to the operation resource. Poll GET /V2/operations/{operationId} for progress and the result. **Publishing required.** The new export template is a draft. It becomes available in the Productsup platform only after you publish it with `POST /V2/export-templates/{id}/publish`. When the caller is not an internal user, the internal-only tags (`non_billable_channel_type`, `main_channel_type_id`, `category_specific_export_is_parent`) are not copied: the duplicate is billable and of the standard export type. The capability tags (`export_feedback_compatible`, `channel_health_compatible`), `raw_sql` analyzer tests and `metadata` are not copied either.

POST
/V2/export-templates/{id}/duplicate
AuthorizationBearer <token>

Productsup Keycloak JWT bearer token.

In: header

Path Parameters

id*integer

Export template ID to duplicate

Response Body

application/json

application/json

application/json

curl -X POST "https://export-template-api.productsup.com/V2/export-templates/0/duplicate"
{
  "operationId": "01980f10-5b04-7845-b0d5-66861c6cabb0",
  "status": "queued"
}
{
  "errors": {
    "message": "Resource access denied."
  }
}
{
  "errors": {
    "message": "Resource access denied."
  }
}