> 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.

# mutateCompanies

GraphQL MUTATION

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

## GraphQL Schema

```graphql
mutation ExampleMutation($companies: [CompanyInput]!) {
  mutateCompanies(companies: $companies) {
    documents {
      id
      documentType
      activeState
      created
      changed
      createdBy
      changedBy
      tenantId
      name
      companyType
    }
  }
}
```

## Variables

```json
{
  "companies": [
    {
      "fullOverwrite": true,
      "id": "example",
      "activeState": "ACTIVE",
      "tenantId": "example",
      "name": "example",
      "companyType": [
        "QUICK_SERVICE"
      ],
      "organizationNumber": "example",
      "address": {
        "street": "example",
        "city": "example",
        "state": "example",
        "postcode": "example",
        "country": "example"
      },
      "externalId": "example",
      "vatCode": "example"
    }
  ]
}
```