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 token | Notes |
|---|---|
| Master | Obtained from the Tray app UI. Refer this. |
The mutation accepts the following arguments:
| Argument | Required | Note |
|---|---|---|
| projectId | Yes | obtained from the url of the Project page: https://app.tray.io/workspaces/{workspaceId}/projects/{projectId} |
| exportSolution | Yes | Boolean value. If set to true, the solution associated with the workflow is exported as part of the JSON structure. |
| clientMutationId | No | Only relevant if using the Relay GraphQL client |
It can return the following data:
| Returned Data | Notes |
|---|---|
| exportedProjectJson | Stringified JSON of the project |