# Edit a template.

Editing templates is a process similar to creating templates. There are two ways to edit a template.

1. For templates you have created yourself, or templates that are not locked, you can add or edit fields as you would do when [creating a template](/in-the-template-editor/create-template.md) initially. (In a locked template, the fields are all grayed out and not clickable.)
2. If you want to edit a locked template, you will have to duplicate the locked template. To duplicate, click on the second button next to Template in the editor.

![](/files/-LQ-Fn_bGh9G6twub8km)

Once you have duplicated the template, rename your duplicate and assign it a different URI.Then click *Create*.

After you have created the new template, you can change fields, add fields, or delete fields.


---

# 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://docs.tropy.org/in-the-template-editor/edit-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.
