I'm using the REST API to download attachments from a confluence page. I'd like to find out which one was been modified or uploaded most recently.
I'm using this to download as of now:
https://mydomain.net/wiki/rest/api/content/12345/attachment
This gives me the data that looks like this:
"id":"att1356398593",
"type":"attachment",
"status":"current",
"title":"myFile.bin",
"macroRenderedOutput":{
},
"metadata":{
"mediaType":"application/octet-stream"
},
"extensions":{
"mediaType":"application/octet-stream",
"fileSize":...,
"comment":"",
"fileId":"FIELD_NUM"
},
"_expandable":{
"childTypes":"",
"container":"/rest/api/content/...",
"operations":"",
"children":"/rest/api/content/.../child",
"restrictions":"/rest/api/content/.../restriction/byOperation",
"history":"/rest/api/content/.../history",
"ancestors":"",
"body":"",
"version":"",
"descendants":"/rest/api/content/.../descendant",
"space":"/rest/api/space/..."
},
"_links":{
"webui":"...",
"self":"...",
"download":"..."
}
Is there anything here that I can parse to get date modified? Or should a use a different API request?