data-src=../../../../../includes/commerce-only.md

updateCompanyTeam mutation

Use the updateCompanyTeam mutation to update the company team data.

This mutation requires a valid customer authentication token.

Syntax

mutation {
    updateCompanyTeam(
        input: CompanyTeamUpdateInput!
    ) {
        UpdateCompanyTeamOutput
    }
}

Reference

The updateCompanyTeam reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example updates the name and description of a company team.

Request:

mutation {
  updateCompanyTeam(
    input: {
      name: "My Test Team"
      description: "My Test Team description"
      id: "MQ=="
    }
  ) {
    team {
      id
      name
      description
    }
  }
}

Response:

{
  "data": {
    "updateCompanyTeam": {
      "team": {
        "id": "MQ==",
        "name": "My Test Team",
        "description": "My Test Team description"
      }
    }
  }
}
data-slots=text
data-backgroundcolor=gray
Thanks to Atwix for contributing this topic!