Create Project in a Hub
This guide will walk you through the steps to create a Project in a hub.
You will use the following queries in this topic:
Type | Operation | Description |
---|---|---|
Query | createProject | Creates project in a hub. |
Create project in a hub
The following steps demonstrate how you can run the createProject query to Create project in a hub.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
mutation CreateProject($input: CreateProjectInput!) { createProject(input: $input) { project { id name } } }
Show More - In the Query Variables Pane, enter the value of the
hubId
and thename
you want to give to a project. To know how to obtain thehubId
, refer to Retrieve Hubs.Query Variables
{ "input":{ "hubId": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997", "name": "567576786" } }
- Click Play. The response will show the details of the project created in the hub.
Response
{ "data": { "createProject": { "project": { "id": "urn:adsk.workspace:beta.project:3ee562b4-12b1-4e21-9ce3-b86c1989f341", "name": "567576786" } } } }
Show More