archive spaces

adi_bengaldotan
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!
November 26, 2024

If I need to archive a list of spaces, how can i do it automacially instead of manually one by one? 

2 answers

1 vote
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 27, 2024

You can update a space by using this REST API endpoint. I think, to archive a space, you should set the "status" field to "archive". (To be sure, first archive a space manually, then GET it through the REST API and check the "status" field what is the expected value there.)

Then you can write a little script (in Python or any other language) which iterates over the spaces you want to archive and update them one by one.

It should be fairly easy.

1 vote
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 26, 2024

Hello @adi_bengaldotan 

Welcome to the Atlassian community.

You can use the Confluence Cloud REST API:

https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get

Or you can navigate to the Spaces page and select the Archived filter there:

Screenshot 2024-11-26 at 4.49.32 PM.png

 

In both cases if you don't have permissions to view the space then the results you get may be incomplete.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 27, 2024

My apologies, in my haste I didn't read your post accurately. My answer is just for getting a list of archived spaces, not for archiving a list of spaces.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events