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
AUG Leaders

Atlassian Community Events