# Save and publish your template

Save changes, publish a template version, and unpublish it.

While designing a template, you can save and preview changes before making it available for use. **Save** stores your edits; **Publish** allows that version to receive PDF jobs from Run or the API. The controls sit together in the editor, but serve different steps.

## 1. Save your edits

Select the version in the top bar, then choose **Save**. The button is available when there are unsaved changes and you have an editable view.

> [!NOTE] Information
>
> Saving records a point in the [version’s history](/docs/publishing/history/). You can keep editing afterwards; saving does not publish the template.

<figure class="doc-sim data-assets-illustration workflow-illustration" aria-label="Editor → Save stores changes in the selected version">
<div class="sim-stage"><div class="sim-panel"><div class="ds-head"><strong>My template · v2</strong><div class="wf-actions"><span class="sim-control sim-focus">Save</span><span class="sim-control sim-dark">Publish</span></div></div><div class="wf-rows"><div class=""><span>Version 2</span><small>Editing</small></div><div class=""><span>Status</span><small>Draft</small></div></div></div></div>
<figcaption>Editor → Save stores changes in the selected version</figcaption>
</figure>

## 2. Publish a version for PDF jobs

After saving, choose **Publish** in the toolbar. Publication applies to the **selected version**, rather than every version of the template.

Once published, its button becomes **Unpublish**. Open [Run](/docs/renders/playground/), select that version, and supply data to generate a PDF.

<figure class="doc-sim data-assets-illustration workflow-illustration" aria-label="Publish → the version is available for rendering">
<div class="sim-stage"><div class="sim-panel"><div class="ds-head"><strong>My template · v2</strong><div class="wf-actions"><span class="sim-control">Save</span><span class="sim-control sim-focus sim-dark">Publish</span></div></div><div class="wf-rows"><div class=""><span>Version 2</span><small>Editing</small></div><div class=""><span>Status</span><small>Draft</small></div></div></div></div>
<figcaption>Publish → the version is available for rendering</figcaption>
</figure>

## 3. Develop a template that is already in use

> [!WARNING] Warning
>
> Published makes a version available for rendering; it does not lock its content. Saving changes to a version in use can affect subsequent jobs targeting that version.

To prepare a new design while the existing one remains available, [create a version from it](/docs/publishing/versions/). Edit and publish the new version, then switch your PDF workflow to its number when ready.

<figure class="doc-sim data-assets-illustration workflow-illustration" aria-label="Keep using v1 while preparing changes in v2">
<div class="sim-stage"><div class="sim-panel"><div class="ds-head"><strong>Versions</strong><div class="wf-actions"></div></div><div class="wf-rows"><div class=""><span>Version 1</span><small>Published</small></div><div class="sim-focus"><span>Version 2</span><small>Draft · new design</small></div></div></div></div>
<figcaption>Keep using v1 while preparing changes in v2</figcaption>
</figure>

## 4. Return a version to Draft

Select a published version and choose **Unpublish** to return it to Draft. Its content remains available for editing and preview, but it no longer meets the publication requirement for new render jobs.

> [!WARNING] Warning
>
> If your workflow targets this number, switch to another published version first. Unpublishing does not delete the template or its previously generated PDFs.

<figure class="doc-sim data-assets-illustration workflow-illustration" aria-label="Unpublish → Draft · editing and preview remain available">
<div class="sim-stage"><div class="sim-panel"><div class="ds-head"><strong>My template · v2</strong><div class="wf-actions"><span class="sim-control">Save</span><span class="sim-control sim-focus sim-dark">Unpublish</span></div></div><div class="wf-rows"><div class=""><span>Version 2</span><small>Editing</small></div><div class=""><span>Status</span><small>Published</small></div></div></div></div>
<figcaption>Unpublish → Draft · editing and preview remain available</figcaption>
</figure>
