Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Using the REST API, return a list of all spaces where createdDate > begin_date

Steve De Picker
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!
July 16, 2024

I want to be able to get back the spaces which have been created after a certain time. I tried using the v2 version. It looks something like this:

https://melexis.atlassian.net/wiki/api/v2/spaces?createdAt=2023-04-18

I can't find in the documentation how to construct it. Should I try working with api/search?

1 answer

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
July 16, 2024

The documentation is here:

https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/

https://developer.atlassian.com/cloud/confluence/cql-functions/

However, I tried running some examples for you, and either my brain needs more coffee, or the date search part of the API is broken.  Regardless of the syntax, it returns all spaces.

https://myinstance.atlassian.net/wiki/api/v2/spaces?cql=type=page+and+created>="2024/07/01"

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events