Save the draft of a template
Fast: only the syntax is checked (template_syntax_error, with line and column). Send the revision you read: if someone else (your agent or a person in the preview) saved meanwhile, the answer is template_draft_conflict and nothing changes: read it again and merge. Sending the same save twice answers the first one.
PUT
https://api.invox.page/v1/templates/{id}/draftAuthorization
Path parameters
Header parameters
Request body JSON required
Returns
200
Saved: the template and the new revision.
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
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_archived: The template is archived · template_draft_conflict: The draft changed since you read it
JSON
422
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