addPropertyToHierarchy
Add a property to a hierarchy as a root node.
If the property is already a root node in the hierarchy, this operation is idempotent. If the property is already in the hierarchy as a child, an error will be raised.
Arguments
Input fields for adding a property to a hierarchy.
Returns
AddPropertyToHierarchyAdd a property to a hierarchy as a root node.
If the property is already a root node in the hierarchy, this operation is idempotent. If the property is already in the hierarchy as a child, an error will be raised.
Possible Errors
Allowed Viewers
Required Permissions
Can manage property hierarchiesQuery Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
mutation AddPropertyToHierarchy($input: AddPropertyToHierarchyInput!) {
addPropertyToHierarchy(input: $input) {
property {
...PropertyTypeFragment
}
}
}
Variables
{
"input": AddPropertyToHierarchyInput
}
Response
{
"data": {
"addPropertyToHierarchy": {
"property": PropertyType
}
}
}