Templates

Save or update a template

Send id to update, leave it out for a new one. A new one needs room in the plan; an update never does, otherwise you would be stuck with what you have the moment you hit the ceiling.

Needs a key scoped write or full.

post/api/templates

Request

  • Base URL: https://morfee.furo.solutions
  • URL: https://morfee.furo.solutions/api/templates
  • Auth: one of:
    • API key in header X-Api-Key
    • HTTP bearer

Request body

hbsstring required

The template that gets rendered. Required.

bindingsobject[] required

What the builder needs to open this template again. Send [] if you have none: the handler requires the field to be a list, so leaving it out is a 400.

idstring

Send it to update an existing template. An id belonging to another organization is a 400.

namestring

Falls back to the id.

sampleunknown
sourcestring

Your original HTML, kept untouched.

folderIdstring nullable

Put it on this shelf. null takes it out of every folder. Leave the field out entirely and it stays where it is, which is what the builder does.

replaceLogicboolean

Only needed to overwrite a template that has logic in it with something that has none. Refused with 409 would_drop_logic without it, because that is nearly always a design landing on top of a working template rather than a new version of it.

Response

Saved.

okboolean

Changes

No recorded changes to this operation across all 1 revision of this API.