addParentToProperty
Add a parent property to a child property in a hierarchy.
If the child is already in the hierarchy with a different parent, it will be reparented. If the child is already a child of the specified parent, this operation is idempotent and does nothing.
Arguments
Input fields for adding a parent to a child property.
Returns
AddParentToPropertyAdd a parent property to a child property in a hierarchy.
If the child is already in the hierarchy with a different parent, it will be reparented. If the child is already a child of the specified parent, this operation is idempotent and does nothing.
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 AddParentToProperty($input: AddParentToPropertyInput!) {
addParentToProperty(input: $input) {
parent {
...PropertyTypeFragment
}
}
}
Variables
{
"input": AddParentToPropertyInput
}
Response
{
"data": {
"addParentToProperty": {
"parent": PropertyType
}
}
}