Create a template
With a name and a paper; optionally starting from another template (yours, or a shared system:*), or with its source and manifest. A source is checked for syntax on save; everything else is checked when it is validated and published. At most 20 active templates per organization.
POST
https://api.invox.page/v1/templatesAuthorization
Header parameters
Request body JSON required
Returns
200
A retry: the template created by the first request.
JSON
201
The template.
JSON
400
organization_required: This credential needs to say which organization it acts on · validation_failed: The request is not valid · malformed_request: The request body is not valid JSON · idempotency_key_required: This write needs an Idempotency-Key header
JSON
401
unauthenticated: No credential was sent · invalid_credential: The credential is not valid
JSON
403
missing_scope: The credential lacks the permission this operation requires · organization_mismatch: The X-Organization header names another organization than the key's · organization_archived: The organization is archived
JSON
404
not_found: The resource does not exist in this organization · template_not_found: The template does not exist in this organization
JSON
409
template_limit_reached: The organization reached its limit of templates · template_name_taken: An active template already has this name
JSON
422
idempotency_key_reused: This Idempotency-Key was already used with a different request · template_syntax_error: The template has a syntax error
JSON
429
rate_limited: Too many requests
JSON
500
internal_error: The service failed
JSON
503
service_unavailable: The service cannot answer right now
JSON