What is the Rest API to create multiple Spaces in Confluence

Kumar February 12, 2020

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
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 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
AUG Leaders

Atlassian Community Events