Replace Form Template
Replaces an existing DOCX template’s content in place, addressed by its
stable FM-XXXX number. The uploaded file becomes a new version under the
SAME template — same number, templateKey, display name, and category — so
the template’s identity is unchanged and forms-logic rules (which reference
the number) keep working. Use this to correct or update an existing
template without re-pointing the rules that depend on it.
Same-type only. The target number must be a .docx template and the
replacement must be .docx; a static PDF form is replaced via
PUT /forms/static/{number}. This prevents a replace from silently flipping a
form’s file type under the same number.
Validation otherwise matches Upload Form Template: every embedded smart tag
must resolve to an available, smart-tag-enabled field for the template’s
category, named by its current hashed identity (the retired legacy
AIIFmv1<ReferenceId> naming is rejected with an error naming the
replacement) — otherwise the entire replace is rejected with a per-tag 400
and no new version is written. category is not part of the request — a
replace never re-scopes; the new content is validated against the template’s
existing category.
Required permission: forms:update
Authorizations
API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.
Path Parameters
Company identifier
The form template's stable FM-XXXX number (as returned by the Upload Form
Template endpoint). It identifies the template across all of its versions and
is the same value forms-logic rules reference.
Body
Response
New version created. The response is the new checkpoint's summary — note
number and templateKey are unchanged from the previous version.
A single form-template checkpoint.
Stable identifier of the template across its versions.
Identifier of this specific checkpoint (version) of the template.
Display name (derived from the uploaded file name).
Human-facing form number (e.g. FM-0010).
The form category assigned to the template.
event, quote-flow, quote-bind-flow, unknown Internal storage key of the checkpoint's document.
