exportMyOrganizationData
Requires permission settings:backup:create.
Export all of the caller's organization data (GDPR portability). Needs the backup create permission.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation ExportMyOrganizationData {
exportMyOrganizationData {
objectName
adjacentModelCount
downloadUrl
expiresInSeconds
perModelCounts
recordCount
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation ExportMyOrganizationData {\n exportMyOrganizationData {\n objectName\n adjacentModelCount\n downloadUrl\n expiresInSeconds\n perModelCounts\n recordCount\n }\n}"
}
EOF
Response:
{
"data": {
"exportMyOrganizationData": {
"objectName": "string",
"adjacentModelCount": 0,
"downloadUrl": "string",
"expiresInSeconds": 0,
"perModelCounts": "string",
"recordCount": 0
}
}
}
exportMyOrganizationData: GdprExportResult!
Type
GdprExportResult object
The result of a GDPR data export. The file lives in storage and is not returned in the response, which could be very large.