Replace an export template
Replaces an export template using full-replace semantics: after the operation completes, the server state matches the request payload exactly. Attributes are matched by name. Omitted attributes and analyzer tests are deleted, and analyzer tests are replaced per attribute. 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. Returns 404 if the export template does not exist; no operation is created. **Publishing required.** This request stores a draft. The change becomes available in the ProductsUp platform only after you publish the export template with `POST /V1/export-templates/{id}/commit`. Analyzer test assignments in the payload are the exception — they take effect immediately, without publishing.
Authorization
bearerAuth ProductsUp Keycloak JWT bearer token.
In: header
Path Parameters
Export template ID
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://export-template-api.productsup.com/V2/export-templates/0" \ -H "Content-Type: application/json" \ -d '{ "name": "Google Shopping Feed" }'{
"operationId": "01980f10-5b04-7845-b0d5-66861c6cabb0",
"status": "queued"
}{
"message": "Invalid JSON payload"
}{
"errors": {
"message": "Resource access denied."
}
}{
"code": "NOT_FOUND",
"message": "Export template with ID 12345 not found."
}How is this guide?