Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,218
Community Members
 
Community Events
176
Community Groups

Is there a way to restore archived page via REST API?

curl --location --request PUT 'https://{address}/rest/api/content/{contentId}' \

--header 'Authorization: {token}' \

--header 'Content-Type: application/json' \

--data-raw '{

"type": "page",

"title": "{title}",

"version": {

"number": {version}

},

"status": "current"

}'
the request fails with the following error:
{

"statusCode": 403,

"data": {

"authorized": false,

"valid": true,

"errors": [],

"successful": false

},

"message": "com.atlassian.confluence.api.service.exceptions.PermissionException: Could not update Content of type : class com.atlassian.confluence.pages.Page with id {id}"
}
is it possible to restore a page via api? as the request above works for trashed or draft pages and gets no authorization error (checked several times while token was valid)

1 answer

1 accepted

3 votes
Answer accepted
Pramodh M Community Leader Jan 28, 2022

Hi @Yana Strabuk 

Welcome to Confluence

There is no API to restore the page!!

The above one works for both trashed or draft as these are valid values

https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-id-put

Valid.png

Thanks for noticing this!!

Thanks,
Pramodh

Thank you! Is it going to be added to the API later on? And is it possible to check the status of the issue, if this functionality will be added?

Pramodh M Community Leader Jan 30, 2022

@Yana Strabuk 

We would have to check with the Atlassian team on this one. Will raise the ticket and keep posted!!

Thanks

Did you ever get a response from Development this one?

 

It seems the CQl searching isn't working either 

"IncludeArchivedSpaces=true" or "IncludeArchivedSpaces=true&excludeCurrentSpaces=true"

returning zero records 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events