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

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

Are there any APIs which can be used to archive confluence spaces in bulk

I have a list of confluence spaces which I want to Archive. Are there any APIs through which we can archive them?

1 answer

I have tried to use below from one of the atlassian docs:

url --request PUT \
 --url 'https://your-domain.atlassian.net/wiki/rest/api/space/{spaceKey}' \
 --user 'email@example.com:' \
 --header 'Accept: application/json' \
 --header 'Content-Type: application/json' \
 --data '{"status": "archived"}'


But it is giving me 500 internal server error. However the GET request is working fine.

Suggest an answer

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

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

375 views 15 12
Read article

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