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
- 200
- 400
- 401
- 403
The updated template. See Templates.TemplateDetailDto.
{templateDto}'s Id does not match an existing template (NotFound); MissingRequiredField ("Name"); DuplicateResource ("Name"); InvalidOperation (duplicate ExtendedPropertyId entries); or any failure during the cascading update (transaction reverted, accumulated error codes returned).
Caller is not authenticated.
Caller does not have Update permission on the Template module.