Edit in GitHubLog an issue
B2B feature. Learn more
Thanks to Atwix for contributing this topic!

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 clipboard
mutation {
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 clipboard
mutation {
updateCompanyStructure(
input: {
tree_id: "Mw=="
parent_tree_id: "MQ=="
}
) {
company {
structure(
rootId: "MQ=="
) {
items {
id
parent_id
entity {
... on CompanyTeam {
name
id
description
}
}
}
}
}
}
}

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"
}
}
]
}
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.