addChildToProperty
Add a child property to a parent 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 child to a parent property.
Returns
AddChildToPropertyAdd a child property to a parent 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 AddChildToProperty($input: AddChildToPropertyInput!) {
addChildToProperty(input: $input) {
child {
...PropertyTypeFragment
}
}
}
Variables
{
"input": AddChildToPropertyInput
}
Response
{
"data": {
"addChildToProperty": {
"child": PropertyType
}
}
}