Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST API to create personal space

I would like to use the Confluence REST API to create a personal space for a user that is not me. However, the very straightforward JSON string of

-d '{"key":"~generic.user","name":"Generic User"}'

fails because of "Invalid space key". Obviously, both the tilde and the period are invalid, but I assumed that the _private option would account for that. Otherwise, why have a special URL just for personal spaces?

So, what am I doing wrong?

3 answers

Hi Robert,

I don't believe that administrators can create a personal spaces for a users. This guide shows how a user can create one for themselves. Cheers!

So perhaps they should just remove that option from the REST API?

I have been tasked with testing changes to the "default personal space template". If the only personal space I can create is mine, it means I need to delete my existing personal space first. And I'd rather not do that.

In any other environment, I could create a "dummy" account, log into that account, and test it that way. But our system is "locked down" so that you cannot log into dummy accounts.

So my test plan was going to be, create the dummy account, create a personal space for it (without logging in, hence the REST API) and that navigating there by URL.


0 votes

Hi Robert,

Per api documentation:

Create private space

Creates a new space that is only visible to the creator. This method is the same as the Create space method with permissions set to the current user only. 

I believe to achieve what you want to do, you need to create a space and set the permissions only to the user you want it to be the personal space, see the example on

Also note that the Key and Name parameters are how you want the space to be identified, so there can not be an auto-handling to it.

I have no idea how Confluence does it, but clearly they do not use their own API, because they can have tilde and periods in the space name. I have decided to write this one off, as the scenario it addresses does not justify the effort required to achieve it.

0 votes

Hi @Robert Egan 

You can use the legacy RPC API methods to create personal spaces.

There's addition information in this community post:

I hope that helps.

Kind regards,
Thiago Masutti

Thanks, but I have decided to write this one off, as the scenario it addresses does not justify the effort required to achieve it.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Miss the Confluence demos at Team 21? Watch them here!

Phew, Atlassian Team 2021 blew by. With dozens of demos and a handful of keynotes, you may have missed some of the awesome Confluence Cloud sessions. Don't' worry, you can watch them all here or on Y...

282 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you