Forums

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

Retrieve trashed spaces via REST API

Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2025

Hello community. 

I have an automation (python) creating spaces for users when they request them via service desk. Works as intended, with only one single issue: 

If a space is in trash and not yet deleted, the key of that space is blocked for new space creations. That is quite expected. Yet, i find no way to validate a given space key before creating the space to report it as unavailable before POSTing the creation request? I'm looking at the documentation and both REST API versions, but i cannot find a solution. 

So, TL;DR: Anyone know a way via REST to retrieve spacekeys of spaces currently in the trash?

1 answer

1 accepted

5 votes
Answer accepted
Mikael Sandberg
Community Champion
March 27, 2025

Unfortunately, currently there is no API call that can get you spaces in trash, Get Spaces can only get current and archived spaces.

Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2025

I was afraid that this would be the answer. Thank you for providing another set of eyes to confirm :)

Like Mikael Sandberg likes this

Suggest an answer

Log in or Sign up to answer