Curl a file with its fileid rather than the folder

Hi -
Is there a way to download a file with curl via using its fileid?

Example for fileid = 9161:
curl -k -u xxx -o "test.pdf" -v -H "application/pdf;charset=utf-8" "https://xxx/index.php/s/9161/download"

I can download with the curl command pointing to the webda folder and file, but I would appreaciate doing it on behalf of the fileid.


I don’t think there is a general API for this.
Unless maybe the Notes-API, but this is limited to the /Notes folder.

1 Like

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