Create a document template
POST
/api/v1/document-templatesAuthorization
AuthorizationOAuth2 access token · headerrequiredAuthorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.
Scopes:
api.accessHeader parameters
Idempotency-KeystringrequiredReplays the first answer for a repeated request
min length 8 · max length 128
Request body
requiredapplication/jsonlayoutobjectrequiredShow propertiesHide properties
fieldsobject[]requiredmax items 100
Show propertiesHide properties
Array of
objectkeystringrequiredmatches ^[a-z][a-z0-9_]{0,62}$
labelstringrequiredmin length 1 · max length 120
footerstringmax length 1000 · default: ""
pageSizestringdefault: "A4"
Allowed:
A4Lettertitlestringrequiredmin length 1 · max length 200
namestringrequiredmin length 1 · max length 120
objectIdstringrequiredmin length 1 · max length 255
versionintegermin 1 · max 2147483647 · default: 1
Responses
201
The template was created
idstringrequiredmin length 1 · max length 255
400
The request body, query or parameters were refused
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring401
The access token is missing, invalid or revoked
errorstringrequired403
The tenant's module is off, or the token's scope or the member's role does not permit the action
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring404
No such record, or none the caller may read
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring409
The operation conflicts with the current state
codestringrequiredAllowed:
invalid_inputnot_foundconflictforbiddendetailanyerrorstringrequiredreasonstring413
The request exceeds the route's body limit
errorstringrequired500
An unexpected failure
errorstringrequired