Hello Atlassian Community,
I need to update the status of a Confluence space from "Current" to "Archived" using the Confluence REST API, but I’m having trouble finding the right endpoint . I would appreciate any guidance on how to achieve this.
I tried this one : rest/api/space/${spaceKey}
And this one : rest/api/content/193515306
They both update the spaces but they don't update the "status" attribute.
Questions:
Thank you for your help and guidance!
Hi Aron,
Thank you for your quick reply. Indeed, all the endpoints work perfectly except for the "Update Archive Space" endpoint, which returns a 404 response, as shown in the screenshot.
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.
The REST API doc says that 404 is returned if:
Returned if there is no space with the given key, or if the calling user does not have permission to view it.
Are you sure that the user account you use for the request has the permission to archive that particular space? (Can you archive the same from the web UI logged in with that account?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Yes I have admin account and I can both archive and restore any space. I believe it is a version mismatch since I didn't find the endpoint you shared with for my current Confluence version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah. I guess you should ask Atlassian, they can give you the reliable answer regarding the versions.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.