I am receiving HTTP error 409 when using https://content.dropboxapi.com/2/files/download_zip.
I am using the folderIDs gathered from files_list_folder, based on a shared link.
The below is how I am forming my POST (in Python):
def download_zip(folder_id):
url = 'https://content.dropboxapi.com/2/files/download_zip'
headers = {
'Authorization': 'Bearer ' + token,
'Dropbox-API-Arg': "{" + '''"path"''' + ":" + '''"''' + folder_id + '''"''' + "}"
}
res = requests.post(url, headers=headers)
print(res)
A sample of a given header:
{'Authorization': 'Bearer <MyKey>', 'Dropbox-API-Arg': '{"path":"id:DH1fqZncI8AAAAAAAAPgQA"}'}
Any help on how I can get the zip download to work on shared links would be appreciated. Thank you!