Mutations
updateHubScopedPropertyDefinitions
Updates a hub-scoped property definition.
Template for Mutation:
mutation UpdateHubScopedPropertyDefinitions($input: updateHubScopedPropertyDefinitionsInput!){
updateHubScopedPropertyDefinitions(input: $input) {
# UpdateHubScopedPropertyDefinitionsPayload Fields
}
}
Arguments
| input* | The input needed to update hub |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| UpdateHubScopedPropertyDefinitionsPayload | Response of update hub-scoped property definitions operation. |
Examples
Example 1
Updates one or more hub-scoped property definitions. Supports updating the description and isHidden flag per property definition.
Query:
mutation UpdateHubScopedPropertyDefinitions($input: UpdateHubScopedPropertyDefinitionsInput!) {
updateHubScopedPropertyDefinitions(input: $input) {
propertyDefinitions {
results {
id
name
specification
propertyBehavior
isHidden
description
}
}
}
}
Show More
Query Variables:
{
"input": {
"hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
"propertyDefinitionsInput": [
{
"propertyDefinitionId": "cHJvcGRlZn4yMTU5NTk2Nn4yMTU5NTk2Nl9IU0NQfjIxNTk1OTY2X0hTQ1B-cGFyYW1ldGVycy4yMTU5NTk2Njo1NGQ4OWNkOGE4MDk0N2JmYWM0M2ExYmFmZDg0Mzk0OS0xLjAuMA",
"description": "Updated hub-scoped property description",
"isHidden": false
}
]
}
}
Show More
Response:
{
"data": {
"updateHubScopedPropertyDefinitions": {
"propertyDefinitions": {
"results": [
{
"id": "cHJvcGRlZn4yMTU5NTk2Nn4yMTU5NTk2Nl9IU0NQfjIxNTk1OTY2X0hTQ1B-cGFyYW1ldGVycy4yMTU5NTk2Njo1NGQ4OWNkOGE4MDk0N2JmYWM0M2ExYmFmZDg0Mzk0OS0xLjAuMA",
"name": "Hub Scoped Prop 1793373406423",
"specification": "STRING",
"propertyBehavior": "STANDARD",
"isHidden": false,
"description": "Updated hub-scoped property description"
}
]
}
}
}
}
Show More