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?
Community moderators have prevented the ability to post new answers.
Unfortunately, currently there is no API call that can get you spaces in trash, Get Spaces can only get current and archived spaces.
I was afraid that this would be the answer. Thank you for providing another set of eyes to confirm :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, if it helps anyone, DELETE calls to trashed spaces work even though GET calls don't. So you can download the spaces from Space Reports, grab the trashed ones, and delete via API.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Price, this topic has been locked because the thread has become a bit dated. If you’d like to keep the conversation going or have additional questions, we encourage you to start a new topic. You can read more about necro posting (“raising threads from the dead”) in our Community Guidelines.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.