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": "http://192.168.200.56/api/v4/downloads/5/download/",
    "filename": "Document_file_bundle.zip",
    "id": 5,
    "label": "Compressed document files",
    "user": {
        "first_name": "",
        "date_joined": "2022-10-10T02:36:19.223453Z",
        "email": "autoadmin@example.com",
        "groups_url": "http://192.168.200.56/api/v4/users/1/groups/",
        "id": 1,
        "is_active": true,
        "last_login": "2023-10-05T08:55:38.650593Z",
        "last_name": "",
        "url": "http://192.168.200.56/api/v4/users/1/",
        "username": "admin"
    },
    "url": "http://192.168.200.56/api/v4/downloads/5/"
},
....

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.