Skip to main content

Update Template

POST 

/api/templates/updatetemplate

Tier: Public — stable, supported for third-party integration.

Renames a template and replaces its extended-property set, cascading the change to every entity/SKU/item currently using the template.

Not a simple row update: runs in one explicit transaction. Extended properties omitted from UpdateTemplateDto.TemplateExtendedPropertyList are hard-deleted from the template (no soft delete); new ones are added with empty values on every entity/SKU/item using the template. If the template's TemplateType is Item, all SKUs on the template are re-synced and, for any SKU whose properties changed, every item of that SKU is also re-synced — this may be long-running for large item populations. Any exception during the cascade reverts the whole transaction.

Request

Responses

The updated template. See Templates.TemplateDetailDto.