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,464,908
Community Members
 
Community Events
176
Community Groups

Next link from CQL Search REST API throwing error 404

Edited

When making a call to next link retrieved in response of API , 404 is returned

API used - 
https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-search-get

We are able to traverse 80+ batches following the next link.
On one of the next links - 


/rest/api/content/search?next=true&cursor=<real_cursor_value>%3D%3D&expand=restrictions.read.restrictions.group%2Crestrictions.read.restrictions.user%2Cancestors%2Chistory.contributors.publishers.users%2Chistory%2Cbody.view%2Chistory.lastUpdated%2Cspace&limit=50&start=4350&cql=type+in+%28+page%2C+blogpost%29+and+type+in+%28page%2C+blogpost%29,

we are getting 404 with response
{
"statusCode": 404,
"data": {
"authorized": false,
"valid": false,
"errors": [
{
"message": {
"translation": "Cannot find content <page: 91943000 v.1>. Outdated version/old_draft/trashed? Please provide valid ContentId.",
"args": []
}
}
],
"successful": false
},
"message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: Cannot find content <page: 91943000 v.1>. Outdated version/old_draft/trashed? Please provide valid ContentId."
}

We are unable to traverse further.
The expectation is to only find latest version of the content.
How do we make progress?


 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events