How to: Use rest API report/download/tasks with Digital.ai Deploy

Question

What is the correct usage of rest API report/download/tasks, while the POST request gives a 200 response, but I get a long ID (ex: "77c36611-0241-4b7c-9a49-ab65edba21c") in response instead of String with CSV data.

Answer

The API is designed to generate a file containing the requested data. After executing the report/download/tasks REST API, you will receive a download key as a string.
 
With this download key, you can use the URL <Deploy_URL>/xldeploy/internal/download/{download key} (replace {download key} with the value you received from the API response).

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.