I am trying to export a notebook or directory using /api/2.0/workspace/export.
When I run /api/2.0/workspace/list with a particular url and path, I get the results that I expect, a list of objects (notebooks and folders) at that location.
But when I run /api/2.0/workspace/export with the same url and path, I get an error 404: resource does not exist.
Why would this be?
requests.request(
method = 'GET',
url = 'https://{host}/api/2.0/workspace/list',
params = {'path' : '/Users/{user}/{folder}/'},
headers = {'Authorization' : f'Bearer {host_token}'}
)
requests.request(
method = 'GET',
url = 'https://{host}/api/2.0/workspace/export/',
params = {'path' : '/Users/{user}/{folder}/', 'format' : 'AUTO', 'direct_download' : True},
headers = {'Authorization' : f'Bearer {host_token}'}
)