# Edit a thread

> Rename, archive or lock a thread.

Source: https://docs.buildcord.dev/nodes/server/edit-thread/

`server.threadEdit` changes a thread.

## Settings

| Setting | What it does |
| --- | --- |
| Thread | The thread to change. Defaults to `{thread}`. |
| New name | The new name. Leave it empty to keep the current one. |
| Archived | **Yes** hides the thread from the channel's list, **No** brings it back, and **Unchanged** leaves it as it is. |
| Locked | **Yes** stops anyone but moderators from posting, **No** opens it again, and **Unchanged** leaves it as it is. |

## Ways out

`out`. Turn on **If it fails** for a red way out.

## Notes

- The bot needs the Manage Threads permission.
- The canvas lists what will change, such as "Rename to Help, archive". It shows "Nothing changed yet" when every setting is empty.

## Example

When a support thread is solved, archive and lock it.

## Related

- [Create a thread](https://docs.buildcord.dev/nodes/server/create-thread)
- [Delete a thread](https://docs.buildcord.dev/nodes/server/delete-thread)
