How would I know from the download center api that this is the version/file I exported

using the download center api i can query files that I have exported and are ready to be downloaded

GET {{mayanBase}}/downloads

This endpoint returns a list of documents that are ready to be downloaded. below is an item from my list.

    "datetime": "2023-10-08T07:50:53.710152Z",
    "download_url": "",
    "filename": "",
    "id": 5,
    "label": "Compressed document files",
    "user": {
        "first_name": "",
        "date_joined": "2022-10-10T02:36:19.223453Z",
        "email": "",
        "groups_url": "",
        "id": 1,
        "is_active": true,
        "last_login": "2023-10-05T08:55:38.650593Z",
        "last_name": "",
        "url": "",
        "username": "admin"
    "url": ""

my issue is from this list how do we know that this is the document that I have exported? When I export using the api I do not get an id or any unique identifier that indicated this is the document that I have exported.

1 Like

It used to worked liked that but when support was added for background compression of bulk documents for download and emailing, the download area was updated to be general purpose. It no longer has a direct database link to the document.

It makes sense to have a reference to what created the download item. Adding this to the roadmap for discussion and design.

Thanks for bringing this up.