# Insights Report Exports

This object allows you to manage scheduled exports of classic Insights reports from Kantata OX. An export of a classic Insights report that is scheduled to recur is called a scheduled job. You can create, update, and delete scheduled jobs. You can also view details of all the exports for a scheduled job, view the details of each export individually, and download the most recently exported report.

To use these endpoints, you need to be an [account administrator](https://mavenlink.zendesk.com/hc/en-us/articles/203041364).

## Get Scheduled Report Exports

 - [GET /scheduled_jobs/insights_report_exports](https://developer.kantata.com/kantata/specification/insights-report-exports/get-scheduled-report-exports.md): Returns a list of scheduled exports of classic Insights reports.

## Create a new Scheduled Report Export

 - [POST /scheduled_jobs/insights_report_exports](https://developer.kantata.com/kantata/specification/insights-report-exports/create-scheduled-report-export.md): Create a new scheduled job. Set a schedule for a classic Insights report to be exported from Kantata OX to download later. You will need to write a script to download the report.

## Get Scheduled Report Export

 - [GET /scheduled_jobs/insights_report_exports/{id}](https://developer.kantata.com/kantata/specification/insights-report-exports/get-scheduled-report-export.md): Returns details for a single scheduled export of a classic Insights report.

## Update a Scheduled Report Export

 - [PUT /scheduled_jobs/insights_report_exports/{id}](https://developer.kantata.com/kantata/specification/insights-report-exports/update-scheduled-report-export.md): Make changes to an existing scheduled job.

## Delete an existing Scheduled Report Export

 - [DELETE /scheduled_jobs/insights_report_exports/{id}](https://developer.kantata.com/kantata/specification/insights-report-exports/delete-scheduled-report-export.md): The response will contain no content and an HTTP 204 status code if the request was
successful, or a standard Kantata OX error message explaining why the object could not be deleted.

## Get Latest Export

 - [GET /scheduled_jobs/insights_report_exports/{insights_report_export_id}/results/latest](https://developer.kantata.com/kantata/specification/insights-report-exports/get-latest-scheduled-report-export.md): Returns the most recent classic Insights report that has been successfully and completely exported by a scheduled job. The response contains a URL to download the report, as well as a timestamp for when the data in the report was last updated, so you may determine if the report reflects current data.

In order to keep exported data secure, the URL returned in the response expires in 60 seconds. The URL expiration period is subject to change. If you do not initiate a download of the report before the link expires, you can send a new request to generate a new URL.

Exporting a report can take from seconds to 20 minutes, depending on the report size. Because export time varies, please send requests until the latest data is returned. If there are no previously exported reports yet, the response code and message will indicate this.

Because exported reports can be up to 10 GB, reports are downloaded in a compressed format (.gz) and must be decompressed in order to access the CSV file.

