Skip to main content
POST
Save Templates

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

user_id
integer
required

ID of the user saving templates (URL path parameter)

Body

application/json
templates
array

Array of template objects to save; each may include an id if updating an existing template (required)

referral_template_id
integer

ID of a referral template to ensure remains visible at the top of the user's template list

Example:

999

is_an_edit
boolean

When true, marks previous template versions as deleted in the user's library after saving new versions

Response

Returns {success: true, templates: [...]} with the user's created templates

success
boolean

Always true

templates
object[]

Updated list of templates created by and associated with the user