Update document template

Update document template in the credential-bound company. Send an optional Idempotency-Key to store the terminal response for safe retries for 24 hours. Requires the templates:write OAuth scope.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Body Params

Fields accepted to update document template. The schema identifies required and optional values.

string
custom_field_visibility
array of strings
length ≤ 500

Namespaced custom-field toggles, split off in
prepareForValidation() (dotted keys can't ride the array:

custom_field_visibility
custom_slots
array of strings | null

Placement-B slot → custom-field-key mapping (spec §5.3, PR-4).
Slot names must be known slots, per-slot lists respect the
slot capacity, and every field key must belong to a registered
(or once-existing — the editor round-trips persisted maps)
document-level custom field. Slots the ACTIVE layout doesn't
declare are pruned in validated(), not rejected — a layout
switch must never brick the next save.

custom_slots
boolean
style
object
field_visibility
array of booleans

Rule shape: when the entity registers a field whitelist, lock
the array keys to that whitelist via array:<csv>; otherwise
accept any-keyed array. Single declaration so the rule isn't
silently re-defined later in the array.

field_visibility
contents
array of objects
contents
Headers
string
length ≤ 191

Optional unique key whose request hash and terminal response are stored durably for 24 hours.

Responses

Language
Credentials
OAuth2
Missing 1 required scope
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
*/*