Request

Response

    Mutations

    linkPropertyDefinitionCollection

    mutation

    Links a property definition collection to a hub.

    Template for Query:

    mutation LinkPropertyDefinitionCollection($input: linkPropertyDefinitionCollectionInput){
      linkPropertyDefinitionCollection(input: $input) {
        #LinkPropertyDefinitionCollection Fields
      }
    }
    

    Arguments

    inputThe inputs needed to link the property definition collection.

    Possible Returns

    Value TypeDescription
    LinkPropertyDefinitionCollectionPayload Response of link property definition collection operation.


    Examples

    Example 1

    Links a PropertyDefinitionCollection to a Hub

    Query:

     mutation LinkPropertyDefinitionCollection($propertyDefinitionCollectionId: ID!, $hubId: ID!) {
           linkPropertyDefinitionCollection(
               input: {propertyDefinitionCollectionId: $propertyDefinitionCollectionId, hubId: $hubId}
           ) {
               hub {
                   id
               }
           }
    }
    
    Show More

    Query Variables:

    {
       "propertyDefinitionCollectionId": "cHJvcGRlZmNvbH5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5wcm9wX2RlZl9jb2xfMTcyNTg4MDczNDY5NQ",
       "hubId": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997"
    }
    

    Response:

    {
       "data": {
           "linkPropertyDefinitionCollection": {
               "hub": {
                   "id": "urn:adsk.ace:beta.scope:e7c7f5a9-a88a-40b4-85f6-ba1454def997"
               }
           }
       }
    }
    
    Show More