Mutations
updatePropertyDefinition
Updates a property definition.
Note: You can authenticate using a two-legged token. To use a three-legged token, you must have ‘Owner’ or ‘Editor’ access to the APS App.
Template for Query:
mutation UpdatePropertyDefinition($input: updatePropertyDefinitionInput!){
updatePropertyDefinition(input: $input) {
#UpdatePropertyDefinition Fields
}
}
Template for Query Variables:
{
"input" : "<SOME-UPDATEPROPERTYDEFINITION-INPUT-TYPE-SCALAR-VALUE>"
}
Arguments
input* updatePropertyDefinitionInput non-null | The inputs needed to update the property definition. |
* Required
Possible Returns
Value Type | Description |
---|---|
UpdatePropertyDefinitionPayload | Response of update property definition operation. |
Examples
Example 1
This mutation updates a Property Definition based on it’s id and returns the updated property definition.
Query:
mutation UpdatePropertyDefinition($input: UpdatePropertyDefinitionInput!) {
updatePropertyDefinition(input: $input) {
propertyDefinition {
id
name
specification
isHidden
isReadOnly
isArchived
description
propertyBehavior
units {
id
name
}
}
}
}
Show More
Query Variables:
{
"input": {
"propertyDefinitionId": "cHJvcGRlZn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5ET0NTX1BST1BfREVGX0NPTExFQ1RJT05-cGFyYW1ldGVycy5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcjowNzkyYWUzZGEzMzA0M2FjYmU4YWE5NzUxZTNiMTg1Yi0xLjAuMA",
"description": "description updated",
"isHidden": true
}
}
Response:
{
"data": {
"updatePropertyDefinition": {
"propertyDefinition": {
"id": "cHJvcGRlZn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5ET0NTX1BST1BfREVGX0NPTExFQ1RJT05-cGFyYW1ldGVycy5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcjowNzkyYWUzZGEzMzA0M2FjYmU4YWE5NzUxZTNiMTg1Yi0xLjAuMA",
"name": "Border Color 1707377019422",
"specification": "STRING",
"isHidden": true,
"isReadOnly": false,
"isArchived": false,
"description": "description updated",
"propertyBehavior": "STANDARD",
"units": null
}
}
}
}
Show More