Mutations
linkPropertyDefinitionCollection
Links a property definition collection to a hub.
Template for Mutation:
mutation LinkPropertyDefinitionCollection($input: linkPropertyDefinitionCollectionInput){
linkPropertyDefinitionCollection(input: $input) {
# LinkPropertyDefinitionCollectionPayload Fields
}
}
Arguments
| input | The inputs needed to link the property definition collection. |
Possible Returns
| Value Type | Description |
|---|---|
| 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": "cHJvcGRlZmNvbH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5wcm9wX2RlZl9jb2xfMTc5MzM3MzMyNTQ2Nw",
"hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7"
}
Response:
{
"data": {
"linkPropertyDefinitionCollection": {
"hub": {
"id": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7"
}
}
}
}
Show More