We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Ankita W.
10 years agoNew member | Level 1
How to get last modified date for folders in Dropbox V2 API ?
Hi, I am trying migrate from v1 to v2 and get to the user's root folder and view all the list of files and folders with last modified date. I am passing "https://api.dropbox.com/2/files/list_folder"...
Greg-DB
Dropbox Community Moderator
9 years agoNo, unfortunately I don't have any news on this request.
haktech
9 years agoExplorer | Level 3
Hey Greg K., I'm really getting confused between the ClientModifiedDate and ServerModifiedDate. Can you please help me to figure this out? I have been testing this and each time i updated a file via the API, i noticed both of them were being updated with exactly the same datetime value..
What is the difference between them? In my app, i have filters and one of these is filtering by modified date. Which one is more accurate to refer to, ClientModifiedDate or ServerModifiedDate? The modified date that is showing in the Dropbox portal, is the server one or client one?
Thanks.
- Greg-DB9 years ago
Dropbox Community Moderator
haktech You can find descriptions of client_modified and server_modified under the documentation for FileMetadata, e.g., under the return value documentation for /2/files/get_metadata.
In short, the server_modified time is the time from the server when the file was modified. This is more trustworthy, since only the Dropbox server can set this.
The client_modified time is supplied by the client, and not verified by the server, so it should only be used for display purposes.
You can set the client_modified time explicitly, by using the client_modified parameter when uploading files, e.g., via /2/files/upload. If that isn't supplied, client_modified will automatically be set to the same as server_modified.
The dropbox.com site displays the client_modified value.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!