Archieve and Restore a Project
This topic provides instructions on how to:
- Archive a project in a hub.
- Restore a project in a hub.
You will use the following queries in this topic:
Type | Operation | Description |
---|---|---|
Query | archiveProject | Archives a project in a hub. |
Query | restoreProject | Restores a project in a hub. |
Step 1 - Archive a Project in a Hub
The following steps demonstrate how you can run the archiveProject query to archive a project in a hub.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
mutation ArchiveProject($input: ArchiveProjectInput!) { archiveProject(input: $input) { project { id } } }
- In the Query Variables Pane, enter the value of the
projectId
. To know how to obtain theprojectId
, refer to Retrieve Projects.Query Variables
{ "input": { "projectId": "urn:adsk.workspace:beta.project:a69a9462-c5a1-4525-927a-e6d088573529" } }
- Click Play. All the members with the specified role and email addresses will be added to the project.
Response
{ "data": { "archiveProject": { "project": { "id": "urn:adsk.workspace:beta.project:a69a9462-c5a1-4525-927a-e6d088573529" } } } }
Show More
Step 2 - Restore a Project in a Hub
The following steps demonstrate how you can run the restoreProject query to restore a project in a hub.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
mutation RestoreProject($input: RestoreProjectInput!) { restoreProject(input: $input) { project { id } } }
- In the Query Variables Pane, enter the value of the
projectId
. To know how to obtain theprojectId
, refer to Retrieve Projects.Query Variables
{ "input": { "projectId": "urn:adsk.workspace:beta.project:a69a9462-c5a1-4525-927a-e6d088573529" } }
- Click Play. All the members with the specified role and email addresses will be added to the project.
Response
{ "data": { "restoreProject": { "project": { "id": "urn:adsk.workspace:beta.project:a69a9462-c5a1-4525-927a-e6d088573529" } } } }
Show More