Mutations
updateHubScopedPropertyDefinitionLocalization
Updates localization resources for hub-scoped property definitions.
Template for Mutation:
mutation UpdateHubScopedPropertyDefinitionLocalization($input: updateHubScopedPropertyDefinitionLocalizationInput!){
updateHubScopedPropertyDefinitionLocalization(input: $input) {
# PropertyDefinition Fields
}
}
Arguments
| input* | Contains the hub ID, property definition ID, and locale |
* Required
Possible Returns
| Value Type | Description |
|---|---|
| PropertyDefinition | Data object that represents property definition. |
Property definition is an object that acts as a template to create properties on an entity.
Examples
Example 1
Updates localization resources (translated name and description) for a hub-scoped property definition. Requires hubId, the property definition ID, and a list of locale-specific translations.
Query:
mutation UpdateHubScopedPropertyDefinitionLocalization($input: UpdateHubScopedPropertyDefinitionLocalizationInput!, $filter: LocalesFilterInput) {
updateHubScopedPropertyDefinitionLocalization(input: $input) {
id
localizedName
localizedDescription
localizations(filter: $filter) {
locale
localizedFields {
value
name
}
}
}
}
Show More
Query Variables:
{
"input": {
"hubId": "urn:adsk.ace:beta.scope:02dd340f-3e84-4db8-b6a1-56a964a202c7",
"id": "cHJvcGRlZn4yMTU5NTk2Nn4yMTU5NTk2Nl9IU0NQfjIxNTk1OTY2X0hTQ1B-cGFyYW1ldGVycy4yMTU5NTk2Njo1NGQ4OWNkOGE4MDk0N2JmYWM0M2ExYmFmZDg0Mzk0OS0xLjAuMA",
"localizations": [
{
"locale": "fr",
"name": "Propriété de composant",
"description": "Description traduite de la propriété"
}
]
},
"filter": {
"locales": ["fr"]
}
}
Show More
Response:
{
"data": {
"updateHubScopedPropertyDefinitionLocalization": {
"id": "cHJvcGRlZn4yMTU5NTk2Nn4yMTU5NTk2Nl9IU0NQfjIxNTk1OTY2X0hTQ1B-cGFyYW1ldGVycy4yMTU5NTk2Njo1NGQ4OWNkOGE4MDk0N2JmYWM0M2ExYmFmZDg0Mzk0OS0xLjAuMA",
"localizedName": "Hub Scoped Prop 1793373406423",
"localizedDescription": null,
"localizations": [
{
"locale": "fr",
"localizedFields": [
{
"value": "Propriété de composant",
"name": "name"
},
{
"value": "Description traduite de la propriété",
"name": "description"
}
]
}
]
}
}
}
Show More