- Documentation
- Use cases
- Look up where templates come from and what applying one does
Look up where templates come from and what applying one does
See who a template comes from, what applying a template creates, how updates reach your copy, and the errors an apply can return.
Where templates come from
The template detail header shows who a template comes from. Templates you save from your own published workflows show Yours; see Save a workflow as a template to create one. On the Templates page, only templates TaskJuice publishes carry a badge.
| Badge | Who authored it | Re-publishable by you |
|---|---|---|
| Yours | Your account, by saving a published workflow as a template | Yes |
| From TaskJuice | TaskJuice | No |
| By organization | Another organization, listed in the community gallery | No |
Updates to a template you applied
When a template you applied gets a new revision, your copy shows Template update available in the editor. Steps you have not changed take the update; a step you changed and the update also changes is listed for you to choose which version to keep. This works the same for your own templates and for a template another organization listed in the community gallery, for as long as it stays listed.
What happens when you apply a template
The template detail page shows an Apply template button once the template has at least one published revision. Applying it asks only which workspace to put the copy in. Nothing else is asked up front.
On success, the template's graph is cloned into a new, independent workflow in the workspace you chose, and it opens in the editor as a draft. The Template applied message offers See what's left, which opens the workflow's setup page: it lists each connection to add and each step to fill in before the workflow can go live. You can also finish everything in the editor, where Publish names whatever is still missing.
Failure cases
| Code | HTTP | When it happens |
|---|---|---|
template.not_found | 404 | The template has no published revision yet, does not exist, or belongs to another organization and is not listed in the community gallery. |
Invalid request bodies return HTTP 422 with a fieldErrors array, where each entry is { field, code, message } so you can map the error back to the offending field.
Related
- Find and apply a template walks through applying a template end to end.
- Save a workflow as a template is how every template in your list gets created.
- Expressions explains how a step references the trigger and earlier steps.