Request

Response

    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:

    TypeOperationDescription
    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.

    1. 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

    1. In the Query Variables Pane, enter the preferred collection name and description.

      Query Variables

      {
      "propDefCollectionName": "prop_def_col_1717317356133",
      "description": "collection description"
      }
      

    1. 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