Export team overview
cURL
Use the following cURL command to create a project. You can copy and paste the following template and replace the access_token, teamId, and method.
curl --location --request POST 'https://datasaur.ai/graphql' \
--header 'Authorization: Bearer access_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"query": "query ExportTeamOverview($input: ExportTeamOverviewInput!) { exportTeamOverview(input:$input) { exportId fileUrl } }",
"variables": {
"input": {
"teamId": "121",
"method": "FILE_STORAGE"
}
}
}'variables
input
teamId
method: define how the export result will be delivered. The most used methods are:
EMAILFILE_STORAGE
Response
If the method is set as EMAIL, the export result will be sent to access_token owner's email. Below is a sample response:
File storage
If the method is set as FILE_STORAGE, the export result will be uploaded to Datasaur's temporary Amazon S3 bucket and the file URL is returned. Below is a sample response:
The client can download the file from the URL defined in fileUrl.
Note: fileUrl is returned optimistically. This means the export result may not have been fully uploaded to the Amazon S3 bucket yet, and the file might not be immediately available for download.
To avoid download errors, the client should poll the file URL using a range request and only start downloading the file after receiving an HTTP 206 Partial Content response.
Last updated