I feel like I'm missing something obvious, but... I'm trying to use the search endpoint in REST API but no matter the search terms, it always returns empty results.
I am able to list my content by doing a GET https://<my subdomain>.atlassian.net/wiki/rest/api/content
However when I try to use the search endpoint with any CQL query, I always get 0 results. For example:
GET https://<my subdomain>.atlassian.net/wiki/rest/api/search?cql=type=page
gets:
{
"results": [],
"start": 0,
"limit": 25,
"size": 0,
"totalSize": 0,
"cqlQuery": "type=page",
"searchDuration": 115,
"archivedResultCount": 0,
"_links": {
"context": "/wiki",
"self": "https://<my subdomain>.atlassian.net/wiki/rest/api/search?cql=type=page" }
}
Is there some kind of setting I need to use to enable CQL? Is my CQL query wrong in any way? Is using CQL search not available for free plan users? Or is it something else that I'm missing here?
Any help would be greatly appreciated!