# Publishing templates

<mark style="background-color:purple;">Please note that the publishing feature is available in private workspaces on Draftme Enterprise plan</mark>

### Publish

When your template is ready, publish it.

<figure><img src="/files/Sa0WzjFPqZWdDdvfln85" alt="" width="375"><figcaption></figcaption></figure>

The status of the template will change to ‘Published’ in the upper bar.

A published template becomes available to all the users in your workspace.

<figure><img src="/files/qdDBmsDyX50T3HfSM6VM" alt="" width="375"><figcaption></figcaption></figure>

Note: Users with the ordinary ‘User’ role can only use templates, i.e. create their own documents on the basis of the template.

They cannot modify a template even in case an expert shares a template with them adding the editor rights.

### Unpublish

To make the template unavailable, unpublish it.

The status of the template will change to ‘Draft’ in the upper bar.

The template will immediately diappear from the template section.

All the documents previously created on the basis on this template will still remain in the system.

### Update template

If you wish to update a published or unpublished template, just start editing it.

When you make the first change, the status of the template will change to ‘In progress’.

<figure><img src="/files/rLaSQiLKl0XIqpbNM7UE" alt=""><figcaption></figcaption></figure>

Continue editing. The changes you make in the published template will not be visible to the users until you publish the template again.

Publishing the template will apply the changes and make a new version of the template available to users.

### Update document

There is a connection between the document and its template.

Once the template has been re-published, all the documents created from this template can been updated as well to apply new changes from the template.

The update can be done manually upon opening the document. If an update is available, you will see a notification:

<figure><img src="/files/rkgp5M264OEqk09EbtnE" alt=""><figcaption></figcaption></figure>

If you close the notification without taking action, you will see the notification again next time you open the document.

When you apply the changes, the system runs a compare between the last published and the most recently published versions of the template including the fields.

The fields you previously completed in the questionnaire will usually be saved as before. If the fields were deleted from the template or their type was changed, the fields will either be deleted from the document or their value be deleted.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.draftme.ai/help/creating-dynamic-templates/publishing-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
