How do I change a space key?
Asked by NM:

Is there a hack to change the space key? I know that it is fixed but what if we want to change it after creation without having to copy/delete spaces?


Answers:
author: AnnWorley
body: Here are some options:

[How to copy or rename a space in Confluence](https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html)


author: Bill Bailey
body: There is no way I know of to change a space key. The name can be changed, but the key stays fixed troughout the life of the space. You are correct that the only way to "change" the space key would be to copy the space to a new space with the desired key.


author: Martin M?ller-Lindenlauf
body: I used a workaround: created a new empty space with the desired key, then moved all pages from the old space to the new one. If there are many pages just below the main page, it may be helpfull to make them a child of just one (maybe empty) page within the old space first (which is possible by drag and drop) and then move this page to the new space.

comments: author: Dorte Jacobsen
body: How did you then manage links? In your new space, do all links not go to the old space still?


author: Martin M?ller-Lindenlauf
body: If you work with confluence links they should adapt automatically. Not exolicitly testet now, but I do not remember any problems and I often use links.


author: Rainee Rohrbacher
body: This will also affect anyone who has pages bookmarked or linked outside of confluence to anything. The new URL with the updated space key has to be used. The space key is in every page URL.


author: Moritz W
body: [@Rainee Rohrbacher](/t5/user/viewprofilepage/user-id/2438937)the problem can be solved by using the share function on Confluence pages. This will generate a shortened link that doesn't care if the space or page name changes.


author: calvin.dike
body: You can use this to change the space key.

Copy the space with this plugin. While copying the space you'll be prompted to type in the name of the space and space key. After changing those, export the space you copied with the new space key and import it to the confluence instance you want.

Download the Copy Space for Confluence plugin and install it

[https://marketplace.atlassian.com/apps/212/copy-space-for-confluence?hosting=server\&tab=overview](https://marketplace.atlassian.com/apps/212/copy-space-for-confluence?hosting=server&tab=overview)

For manual installation;

Administration \> Global configuration \> Manage add-ons \> Upload add-on \> browse (select the jar file you downloaded) \> Upload

To use plugin;

Spaces \> Space directory \> click on the space you want \> Space tools \> Content Tools \> Apps \> type in new space name and key (you can check the boxes to copy the options specified) \> Save

Your Space Directory should have your copied space with the new name and space key. Now you can delete the space with the old name.

You're welcome.

comments: author: Maria Murphy
body: This is no longer supported.


author: Wolfgang Kaml
body: Unclear whether for Cloud or OnPrem, though with Confluence 7.x and later no longer being supported, maybe this was an OnPrem tool to begin with.


author: Ashish Wani
body: You can not change the space key once it is set while creating a space.


Tags: space-key