Skip to content

Asana: Initiate a graph export

Asana exports.createGraphExport: arguments, response, policy and SDK examples.

← Exports operations · Get started

Operation asana.creategraphexport

Provider route: POST /exports/graph. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/asana with npm, or alter-sdk-asana with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AsanaIntegration } from "@alter-ai/asana";
async function execute(input: Parameters<AsanaIntegration["exports"]["createGraphExport"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AsanaIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.exports.createGraphExport(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_asana import AsanaIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AsanaIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.exports.create_graph_export(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyobjectRequired within parent
body.dataModelOptionalExpand Initiate a graph export — request body — body data

Referenced models: Initiate a graph export — request body — body data

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (allOf 1)objectAll variants apply
$ (allOf 1).dataModelOptionalExpand Initiate a graph export — response body — data data — Graph Export Response
$ (allOf 2)ModelAll variants applyExpand Initiate a graph export — response body — data

Referenced models: Initiate a graph export — response body — data data — Graph Export Response, Initiate a graph export — response body — data

Initiate a graph export — request body — body data
FieldTypePresenceDescription and constraints
$objectRootA *graph_export* request starts a job to export data starting from a parent object.
parentstringOptionalGlobally unique ID of the parent object: goal, project, portfolio, or team.
Initiate a graph export — response body — data data — Graph Export Response
FieldTypePresenceDescription and constraints
$objectRootA generic Asana Resource, containing a globally unique identifier.
gidstringOptionalGlobally unique identifier of the resource, as a string.
Read only: true
resource_typestringOptionalThe base type of this resource.
Read only: true
resource_subtypestringOptionalA *graph_export* object represents a request to export the data starting from a parent object
Read only: true
statusstringOptionalThe current status of this job.
Known values: not_started, in_progress, succeeded, failed
Read only: true
new_graph_exportModelOptionalExpand Get a job by id — response body — data data new graph export — Graph Export Compact

Referenced models: Get a job by id — response body — data data new graph export — Graph Export Compact

Initiate a graph export — response body — data
FieldTypePresenceDescription and constraints
$objectRoot
dataModelRequired within parentExpand Initiate a graph export — response body — data data — sdk__Graph Export Response

Referenced models: Initiate a graph export — response body — data data — sdk__Graph Export Response

Get a job by id — response body — data data new graph export — Graph Export Compact
FieldTypePresenceDescription and constraints
$objectRootA *graph_export* object represents a request to export the data starting from a parent object
gidstringOptionalGlobally unique identifier of the resource, as a string.
Read only: true
resource_typestringOptionalThe base type of this resource.
Read only: true
created_atstringOptionalThe time at which this resource was created.
Format: date-time
Read only: true
download_urlJSONOptional
download_url (anyOf 1)stringAlternativeDownload this URL to retrieve the full export
in JSON format. It will be compressed in a gzip (.gz) container.

*Note: May be null if the export is still in progress or
failed. If present, this URL may only be valid for 1 hour from
the time of retrieval. You should avoid persisting this URL
somewhere and rather refresh on demand to ensure you do not keep
stale URLs.*
Format: uri
Read only: true
download_url (anyOf 2)nullAlternative
completed_atstringOptionalThe time at which this resource was completed.
Format: date-time
Read only: true
Initiate a graph export — response body — data data — sdk__Graph Export Response
FieldTypePresenceDescription and constraints
$objectRootA generic Asana Resource, containing a globally unique identifier.
gidstringOptionalGlobally unique identifier of the resource, as a string.
Read only: true
resource_typestringOptionalThe base type of this resource.
Read only: true
resource_subtypestringOptionalA *graph_export* object represents a request to export the data starting from a parent object
Read only: true
statusstringOptionalThe current status of this job.
Known values: not_started, in_progress, succeeded, failed
Read only: true
new_graph_exportModelOptionalExpand Get a job by id — response body — data data new graph export — shared_new-graph-export_ac9d0b9b29a8

Referenced models: Get a job by id — response body — data data new graph export — shared_new-graph-export_ac9d0b9b29a8

Get a job by id — response body — data data new graph export — shared_new-graph-export_ac9d0b9b29a8
FieldTypePresenceDescription and constraints
$objectRootA generic Asana Resource, containing a globally unique identifier.A generic Asana Resource, containing a globally unique identifier.
A *graph_export* object represents a request to export the data starting from a parent object
gidstringOptionalGlobally unique identifier of the resource, as a string.
Read only: true
resource_typestringOptionalThe base type of this resource.
Read only: true
created_atstringOptionalThe time at which this resource was created.
Format: date-time
Read only: true
download_urlJSONOptional
download_url (anyOf 1)stringAlternativeDownload this URL to retrieve the full export
in JSON format. It will be compressed in a gzip (.gz) container.

*Note: May be null if the export is still in progress or
failed. If present, this URL may only be valid for 1 hour from
the time of retrieval. You should avoid persisting this URL
somewhere and rather refresh on demand to ensure you do not keep
stale URLs.*
Format: uri
Read only: true
download_url (anyOf 2)nullAlternative
completed_atstringOptionalThe time at which this resource was completed.
Format: date-time
Read only: true

SDK function policy ID: asana.creategraphexport. Catalog operation: asana:createGraphExport. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.