Edit in GitHubLog an issue
Adobe Commerce featureExclusive feature only in Adobe Commerce (Learn more)

unassignChildCompany mutation

The unassignChildCompany mutation allows company administrators to unassign a child company from a parent company within the company hierarchy. This mutation requires child_company_id as unique IDs of the child company as parameters. This mutation returns a company_hierarchy object if successful.

Syntax

Copied to your clipboard
{
unassignChildCompany(
input: UnassignChildCompanyInput!
): UnassignChildCompanyOutput
}

Example usage

The following example unassigns a child company from a parent company by the company admin.

Request:

Copied to your clipboard
mutation {
unassignChildCompany(
input: {
child_company_id: "ABCD=="
}
) {
company_hierarchy {
parent {
name
}
children {
name
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"unassignChildCompany": {
"company_hierarchy": {
"parent": null,
"children": []
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.