> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/002_email/004__update_company_email.md).

# Update Company Email

GraphQL endpoint: `/company`

Update the types and visibility settings of an existing company email. The email address itself cannot be changed, only its metadata like types and visibility.

## Query

```graphql
mutation (
  $id: ID!
  $types: [CompanyEmailType!]
  $visibility: [CompanyVisibilityType!]
) {
  updateCompanyEmail (
    id: $id
    types: $types
    visibility: $visibility
  ) {
    id
    email
    types
    visibility
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000001",
  "types": [
    "SUPPORT"
  ],
  "visibility": [
    "PARTNER",
    "CUSTOMER"
  ]
}
```

## Response

```json
{
  "data": {
    "updateCompanyEmail": {
      "email": "test1@email.com",
      "id": "00000000-0000-4000-8000-000000000001",
      "types": [
        "SUPPORT"
      ],
      "visibility": [
        "PARTNER",
        "CUSTOMER"
      ]
    }
  }
}
```
