How we can archive Confluence content like archive content in Space using the REST API? In Space, I noticed we can leave a note when archiving the Space content.
Related to the question in Is there a way to restore archived page via REST API?
Saw in the PUT Update Page REST API, it can change 'deleted' Confluence Page's status to 'current'. Is there any REST API or Graphql mutation method that able to change archived content (page, database, smartlink, whiteboard) status to 'current'?
You can archive pages although it is experimental: https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-archive-post
I don't know about "restore", but maybe manipulating the page's status (or state) field can work (less likely).
It seems indeed you can and looks that I missed that info. I was searching on API v2 instead of 1. Nice catch Aron!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alex Koxaras _Relational_ Note that API v2 is somewhat limited compared to v1, even if v1 is already considered "legacy".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Crystal Pang and welcome to the community,
Not to my knowledge. If you could archive or restore archived pages, that API would be in there somewhere.
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.
Exactly
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any other method to restore archive pages like using GraphQL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you already seen this? https://developer.atlassian.com/cloud/confluence/graphql/#queries_page
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.
@Alex Koxaras _Relational_ Unfortunately the https://developer.atlassian.com/cloud/confluence/graphql/#mutations_updateCurrentPage can only update the content page body.
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.