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

What is the Rest API to create multiple Spaces in Confluence

Hi All,

I have the Rest API Code to create Single Space in Confluence, but I am looking for a Rest API Script to create multiple spaces in Confluence like more there 10 Spaces at a time.

Reason: I have to perform Application Performance Test so I have execute the Code through JMETER.

Example: API used for single Space is as bellow:


{

"name": "WXY",
"key": "XYZ",
"description": {
"plain": {
"value": "This is an example space2",
"representation": "plain"
}
},
"metadata": {}
},

 

Please help me for multiple creation.

1 answer

0 votes
Thomas Deiler Community Leader Feb 12, 2020

Dear @Kumar ,

there is no API call for this. You have to loop yourself around multiple times with

POST /rest/api/space

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,561 views 6 7
Join discussion

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