Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Confluence REST API Create Space -- Not Visible

Josh Collins July 28, 2015

I'm creating a new Confluence Space via the Rest API (following the example in the documentation).

I posted:

{ 
    "key":"TST2", 
    "name":"Test Space 2", 
    "type":"global",
    "description":
		{
			"plain": 
				{ 
					"value": "Test Space 2",
					"representation": "plain" 
				} 
		}
}

Problem is the new space doesn't show up in the Space Directory.  I can't find anything datawise that differentiates this space from a manually created one.

 

Any ideas?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 2015

My guess is that it could be because there are no permissions assigned to the space.  Therefore it would only be visible by a member of the confluence-administrators group (until the proper permissions are assigned).

0 votes
Jonathan Simonoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 28, 2015

I've got two suggestions.  One is that there may be a "private" field that is getting automatically set to true.  ("Private" is a check box when you create a space.)  That seems unlikely, but possible.  More likely, I think, is that this is an indexing problem, so that the new space isn't being added to the search index. (A surprising number of things in Confluence, perhaps including the space directory, operate out of the search index, and many times the solution to problems involves reindexing.)

TAGS
AUG Leaders

Atlassian Community Events