---
description: Graphql fields and variables for the companyUpdate mutation
---

# companyUpdate

Update company details

**Scope required:** admin:write

For a complete list of input attributes see the [CompanyAttributes](../../api-reference/types/companyattributes) type

```graphql
mutation companyUpdate ($attributes: CompanyAttributes!) {
  companyUpdate (attributes: $attributes) {
      company {
        createdAt
        defaultRoleId
        inactivityTimeout
        migrationMode
        name
        outboundEmailsEnabled
        samlIssuer
        samlSignatureCertificate
        samlSsoUrl
        ssoEnabled
        ssoGoogleEnabled
        updatedAt
        whitelistedOrigin
      }
      errors
  }
}
```

## Arguments

```json
{
  "attributes": {
    "name": "",
    "inactivityTimeout": 123,
    "ssoEnabled": true,
    "ssoGoogleEnabled": true,
    "samlSsoUrl": "",
    "samlIssuer": "",
    "samlSignatureCertificate": "",
    "defaultRoleId": "456123",
    "ssoMode": "SsoMode",
    "baseCurrencyId": "",
    "outboundEmailsEnabled": true,
    "migrationMode": true,
    "whitelistedOrigin": ""
  }
}
```

| Name       | Type                                                             | Description |
| ---------- | ---------------------------------------------------------------- | ----------- |
| attributes | [CompanyAttributes](../../api-reference/types/companyattributes) |             |

## Response

| Name    | Type                                         | Description |
| ------- | -------------------------------------------- | ----------- |
| company | [Company](../../api-reference/types/company) |             |
| errors  | String                                       |             |
