---
title: "UpdateWorkspaceEmailBody"
description: "Request body for a Workspace operation."
section: "Reference"
group: "Types"
order: 280
---

## Definition

```ts
interface UpdateWorkspaceEmailBody {
  enabled?: boolean | undefined;
  config?:
    | {
        maxBytes?: number | undefined;
        allowedSenders?: Array<string> | undefined;
      }
    | null
    | undefined;
}
```

## Fields

| Field     | Type                                                                                                    | Notes                                                            |
| --------- | ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `enabled` | `boolean \| undefined`                                                                                  | `optional` — Enable or disable the gateway.                      |
| `config`  | `{ maxBytes?: number \| undefined; allowedSenders?: Array<string> \| undefined; } \| null \| undefined` | `optional` — Replace the email config jsonb. Pass null to clear. |
