Save the draft through a preview link (scope edit or publish)
The same save as PUT /v1/templates/{id}/draft, with the same conflict rule. A view link cannot save (missing_scope).
PUT
https://api.invox.page/v1/template_previews/{secret}/draftPath parameters
Request body JSON required
Returns
200
Saved: the template and the new revision.
400
validation_failed: The request is not valid · malformed_request: The request body is not valid JSON
JSON
403
missing_scope: The credential lacks the permission this operation requires
JSON
404
preview_link_invalid: This preview link is not valid · 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