Changes data

quotecloud_archive_or_restore_template

Archive a published company template version as unpublished, or restore an unpublished version as the family publication while demoting the prior publication to legacy. This changes company-wide template availability, requires templates:write, manageDocumentTemplates, templates.metadata, and explicit ADR-009 confirmation. System templates are immutable and return 403.

Inputs

templateIdRequired
A Convex template document ID or company-scoped display ID. string
operationRequired
one of: archive, restore
confirmTokenOptional
One-time code from the preview. Send it with otherwise identical inputs to run the change. string