Create Property Definition Collection
This topic provides instructions on how to create a property definition collection.
You will use the following query in this topic:
Type | Operation | Description |
---|---|---|
mutation | createPropertyDefinitionCollection | Creates a Property Definition Collection |
Step 1 - Create Property Definition Collection
The following steps demonstrate how you can run the createPropertyDefinitionCollection query to create a property definition collection.
- Enter the following query in the Query Pane of the Manufacturing Data Model Explorer.
Query
mutation CreatePropertyDefinitionCollection($propDefCollectionName: String!, $description: String) { createPropertyDefinitionCollection( input: { name: $propDefCollectionName, description: $description } ) { propertyDefinitionCollection { id name description } } }
Show More
- In the Query Variables Pane, enter the preferred collection name and description.
Query Variables
{ "propDefCollectionName": "prop_def_col_1717317356133", "description": "collection description" }
- Click Play. The response will show the details of the property definition collection created. You should see a similar response as shown in the following code-block.
Response
{ "data": { "createPropertyDefinitionCollection": { "propertyDefinitionCollection": { "id": "cHJvcGRlZmNvbH5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5wcm9wX2RlZl9jb2xfMTcxNzMxNzM1NjEzMw", "name": "prop_def_col_1717317356133", "description": "collection description" } } } }
Show More