Skip to content
Taylorz CRM Developers
Esc
↑↓navigate↵open⌘Jpreview

Create a document template

POST/api/v1/document-templates
Authorization
AuthorizationOAuth2 access token · headerrequired

Authorization-code grant with PKCE. Clients are public and hold no secret. Discovery is published at /.well-known/oauth-authorization-server/api/auth.

Scopes:api.access
Header parameters
Idempotency-Keystringrequired

Replays the first answer for a repeated request

min length 8 · max length 128
Request body
requiredapplication/json
layoutobjectrequired
Show properties
fieldsobject[]required
max items 100
Show properties
Array of object
keystringrequired
matches ^[a-z][a-z0-9_]{0,62}$
labelstringrequired
min length 1 · max length 120
footerstring
max length 1000 · default: ""
pageSizestring
default: "A4"
Allowed:A4Letter
titlestringrequired
min length 1 · max length 200
namestringrequired
min length 1 · max length 120
objectIdstringrequired
min length 1 · max length 255
versioninteger
min 1 · max 2147483647 · default: 1
Responses
201

The template was created

idstringrequired
min length 1 · max length 255
400

The request body, query or parameters were refused

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
401

The access token is missing, invalid or revoked

errorstringrequired
403

The tenant's module is off, or the token's scope or the member's role does not permit the action

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
404

No such record, or none the caller may read

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
409

The operation conflicts with the current state

codestringrequired
Allowed:invalid_inputnot_foundconflictforbidden
detailany
errorstringrequired
reasonstring
413

The request exceeds the route's body limit

errorstringrequired
500

An unexpected failure

errorstringrequired
Request
curl -X POST '/api/v1/api/v1/document-templates' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Idempotency-Key: stringst' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "layout": {
    "fields": [
      {
        "key": "string",
        "label": "string"
      }
    ],
    "footer": "",
    "pageSize": "A4",
    "title": "string"
  },
  "name": "string",
  "objectId": "string",
  "version": 1
}'
Response
{
  "id": "string"
}

Was this page helpful?