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,455,289
Community Members
 
Community Events
175
Community Groups

Does Confluence REST API's space endpoint has any field for last modified date ?

Edited

I want to fetch the last updated timestamp of spaces. I am fine either the last updated time of any content in space or the last updated time of the space. As long as this timestamp is present in the API response of 'space' endpoint it will be fine. 

I tried to expand every field in the API  for spaces `/rest/api/space` but I am not able to find the updated at time of spaces. 

I am expecting this since the content endpoint `/rest/api/content` does have an expandable field `

history.lastUpdated` that serves the purpose. 

Can you point where is the field similar to `lastUpdated` in spaces endpoint ?

1 answer

0 votes
Connor Rising Star Jan 24, 2023

Hi @Praveen Kukreja this discussion on the developer community for Confluence Server indicates there is no expandable history option for the `/rest/api/space` endpoint. That discussion was for the Server version so you might want to double check the API documentation to see if that's the same for Cloud.

They also state they were able to pull the last modified date using this query:

http://localhost:8090/rest/api/search?cql=space.key=MYSPACE+AND+type=space

But again that may need to be modified for Cloud.

Thanks a ton! @Connor . I guess the answer you pointed will work.

Connor Rising Star Jan 25, 2023

You're welcome @Praveen Kukreja :) 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS

Atlassian Community Events