Retrieve last modified date information of a page

Lakshmi Priya October 25, 2019

Hi,

I am looking for a REST API that would return last modified date of a page. Input to the API will be page URL. 

I got this information 

http://confluenceurl/rest/api/content/search?cql=lastModified>=now("-1d")

but this is listing all page details, not the last modified date

 

Regards,

Lakshmi

1 answer

0 votes
Pavel Potcheptsov
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.
October 25, 2019

It looks like you've chosen wrong way to get what you need.

From the documentation LastModified is for

Search for content that was last modified on, before, or after a particular date (or date range).

But you need to get specified property of page.

I expect that you need to query for page content and filter output to get UpdatedDate field.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events