updateCompanyStructure mutation
Use the updateCompanyStructure
mutation to change the parent node of a company team.
This mutation requires a valid customer authentication token.
Syntax
Copied to your clipboardmutation {updateCompanyStructure(input: CompanyStructureUpdateInput!) {UpdateCompanyStructureOutput}}
Reference
The updateCompanyStructure
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following example shows how to update the customer's company structure.
Request:
Copied to your clipboardmutation {updateCompanyStructure(input: {tree_id: "Mw=="parent_tree_id: "MQ=="}) {company {structure(rootId: "MQ==") {items {idparent_identity {... on CompanyTeam {nameiddescription}}}}}}}
Response:
Copied to your clipboard{"data": {"updateCompanyStructure": {"company": {"structure": {"items": [{"id": "MQ==","parent_id": "MA==","entity": {}},{"id": "Mg==","parent_id": "MQ==","entity": {"name": "Test Team","id": "MQ==","description": "Test Team description"}},{"id": "Mw==","parent_id": "Mg==","entity": {"name": "Test Child Team","id": "Mg==","description": "Test Child Team dexription"}}]}}}}}