Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a "Personal Space" in Confluence (6.10.1) using the API

Bill October 3, 2018

Attempting to create personal spaces for new users that join the company in an automated way (spaces that are prefixed with a ~).

I've got a code snippet that works.... but the space type keeps being set to global even though I've explicitly declare the type to be personal.

 

I'm willing to bet that my payload isn't correct and I've been unable to find anything online which yields good results so far.

POST'ing to the /space endpoint with the following payload:

{
'key': 'newuser',
'name':'Home Page for newuser',
'type':'personal',
'description': {
'plain': {
'value': 'Personal Space for newuser.',
'representation': 'plain'
}
}
}

 

1 answer

1 accepted

0 votes
Answer accepted
Chii
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2018

The REST api currently does not allow for the creation of personal spaces. 

 

You may have to use the (now deprecated) soap api : https://developer.atlassian.com/server/confluence/remote-confluence-methods/#spaces , which has an endpoint for creating personal spaces.

Bill October 4, 2018

Seems silly, but alright. Thanks for the response.

Sachin October 5, 2018

Hi @Chii,

What is solution to create personal Space programmatically then?

Bill October 10, 2018

There is no way to create personal spaces programmatically.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events