Export Project (master token)

POST https://{{base_url}}/graphql

The exportProject mutation can be used to export the projects from your embedded account. This is handy when you want to import project to your 'production' account from 'staging'.

Required tokenNotes
MasterObtained from the Tray app UI. Refer this.

The mutation accepts the following arguments:

ArgumentRequiredNote
projectIdYesobtained from the url of the Project page: https://app.tray.io/workspaces/{workspaceId}/projects/{projectId}
exportSolutionYesBoolean value.
If set to true, the solution associated with the workflow is exported as part of the JSON structure.
clientMutationIdNoOnly relevant if using the Relay GraphQL client

It can return the following data:

Returned DataNotes
exportedProjectJsonStringified JSON of the project