Forums

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

Confluence REST API - how to create a space blueprint without the home page auto-deleted?

Jason Winstan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2018

 Hey everyone - so I want to create a software project space, for example, and the following REST call and JSON creates a space of that category. The problem is the the home page gets immediately deleted when the space gets created, causing all of the template pages to lose their ancestor. How do I specify in JSON the home page ID?

I've been looking for a solution for weeks on and off. I'd love some help - I spent countless hours researching this and would like to move on.

{
"name": "Testing X1",
"description": "",
"context": {},
"permissions": "",
"spaceBlueprintId": "670ab6c0-c751-41db-966e-3110eb611561",
"spaceKey": "TX1"
}

 

 

 

Here is the space blueprint information:

{
"id": "670ab6c0-c751-41db-966e-3110eb611561",
"moduleCompleteKey": "com.atlassian.confluence.plugins.confluence-software-project:sp-space-blueprint",
"i18nNameKey": "Software project space",
"pluginClone": true,
"homePageId": "f663c4cf-d168-4961-8541-baaf2afd5e28",
"dialogWizard": {
"key": "sp-space-blueprint-wizard",
"pages": [
{
"id": "spSpaceId",
"templateKey": "Confluence.SpaceBlueprints.SoftwareProject.Dialog.dialogForm",
"titleKey": "confluence.blueprints.space.sp.dialog.create.title",
"descriptionHeaderKey": "confluence.blueprints.space.sp.dialog.create.heading",
"descriptionContentKey": "confluence.blueprints.space.sp.dialog.create.description",
"last": true
}
]
},
"promotedBps": [
"com.atlassian.confluence.plugins.confluence-software-blueprints:requirements-blueprint",
"com.atlassian.confluence.plugins.confluence-business-blueprints:meeting-notes-blueprint",
"com.atlassian.confluence.plugins.confluence-business-blueprints:file-list-blueprint",
"com.atlassian.confluence.plugins.confluence-software-blueprints:decisions-blueprint",
"com.atlassian.confluence.plugins.confluence-software-blueprints:retrospectives-blueprint",
"com.atlassian.confluence.plugins.confluence-software-blueprints:jira-sprints-blueprint"
],
"category": "software-project"
},

1 answer

0 votes
Gonchik Tsymzhitov
Community Champion
April 12, 2019

Hi! 

Is it actual?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events