API: Download archived content

Given you can download archived content by expanding the downloads list and clicking their filename, how can one do so through the API? I would like to download a version of a theme that is in “Archive” via a script but need the API to do so since the download link constantly changes nowadays.

Unfortunately, this is not currently planned. We would have to define a new API endpoint that returns a list of archived files. How soon do you need this? Technically, it’s not rocket science, but it would have to go through our normal process.

Preferably, as soon as possible, but can’t you theoretically just update the data endpoint to accept ?archived=true and then, if true, include archived files in the downloadlink* portion?

Yes, it sounds simple—but it involves just as much work behind the scenes. We are trying to make this available to you.

Good luck!

Hello,
We have now implemented it as follows:

https://api.opendesktop.org/ocs/v1/content/data/:content_id/archived

You will then receive the extended content with the archived files. We may still need to add paging. But please take a look and see if this is what you had in mind.

That works for the purpose I need, cheers.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.