> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.revvue.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.revvue.ai/_mcp/server.

# mutateDepartments

GraphQL MUTATION

Reference: https://docs.revvue.ai/api-reference/companies-locations/mutations/mutate-departments

## GraphQL Schema

```graphql
mutation ExampleMutation($departments: [DepartmentInput]!) {
  mutateDepartments(departments: $departments) {
    documents {
      id
      documentType
      activeState
      created
      changed
      createdBy
      changedBy
      tenantId
      name
      description
    }
  }
}
```

## Variables

```json
{
  "departments": [
    {
      "fullOverwrite": true,
      "id": "example",
      "activeState": "ACTIVE",
      "tenantId": "example",
      "name": "example",
      "description": "example",
      "color": "example",
      "locationIds": [
        "example"
      ]
    }
  ]
}
```