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'
}
}
}
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.