# How to archive and restore archived Confluence content via REST API?

**URL:** <https://community.developer.atlassian.com/t/how-to-archive-and-restore-archived-confluence-content-via-rest-api/82062>\
**Category:** Confluence Cloud\
**Tags:** confluence-cloud, rest-api, forge\
**Created:** [July 24, 2024, 9:16am UTC](https://community.developer.atlassian.com/t/how-to-archive-and-restore-archived-confluence-content-via-rest-api/82062 "2024-07-24T09:16:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrystalPang](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@CrystalPang](https://community.developer.atlassian.com/u/CrystalPang)\
**Post date:** [July 24, 2024, 9:16am UTC](https://community.developer.atlassian.com/t/how-to-archive-and-restore-archived-confluence-content-via-rest-api/82062/1 "2024-07-24T09:16:22Z")

</div>

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, but the Archive Page API only accept page ID.

[https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-archive-post](https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-archive-post)

Also, related to the question in [Is there a way to restore archived page via REST API?](https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-restore-archived-page-via-REST-API/qaq-p/1927298) Is there REST API or GraphQL API mutation that can restore an archived content (page, smartlink, database, whiteboard)?

![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/7/e/7eb98a1798331d188c4a9b1ee8ea2e2b8e6e9390.png)

Saw in the [PUT Update Page](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put) REST API, it can change ‘deleted’ Confluence Page’s status to ‘current’. Is there any plan to add the feature to change ‘archived’ Confluence content (page, database, smartlink, whiteboard) status to ‘current’ for that REST API?
