Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Retrieve drafted documents using rest/api/content/search

Bharath Muthineni (Bharath)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2024

Hey folks,

I'm using the

rest/api/content/search API to retrieve confluence data. I also pass a few basic cql parameters too.

I see that when I try to pass the status parameter as a part of cql query, there is an error saying that the status parameter is invalid. How can I query drafted docs using the above API?

Also, can you please confirm if the above API by default retrieves drafted docs too or only Published ones?

1 answer

1 accepted

0 votes
Answer accepted
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2024

Hi @Bharath Muthineni (Bharath) 

Within CQL there is no status keyword.

See CONFCLOUD-75625 

There is pageStatus, but this relates to the status option that. can be set on published pages

Bharath Muthineni (Bharath)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 13, 2024

Thanks for the clarification @Marc - Devoteam 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Confluence Events