---
title: "Update mailbox"
method: POST
path: "/api/v1/edit/mailbox"
tags: ["Mailboxes"]
---

# Update mailbox

`POST /api/v1/edit/mailbox`

You can update one or more mailboxes per request. You can also send just attributes you want to change

## Request body

- object
  - `attr` object
    - `active` boolean — is mailbox active or not
    - `force_pw_update` boolean — force user to change password on next login
    - `force_tfa` boolean — force 2FA enrollment at login
    - `name` string — Full name of the mailbox user
    - `authsource` 'mailcow' | 'ldap' | 'keycloak' | 'generic-oidc' — Specifies the authentication source for the mailbox.
    - `password2` string — new mailbox password for confirmation
    - `password` string — new mailbox password when using `mailcow` as the authentication source.
    - `quota` number — mailbox quota
    - `sender_acl` object — list of allowed send from addresses
    - `sogo_access` boolean — is access to SOGo webmail active or not
  - `items` object — contains list of mailboxes you want update

## Response `200`

OK

- object
  - `log` unknown[] — contains request object
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401` — Unauthorized

## Changes

> 51 revisions in range; 1 could not be searched.

- **2026-06-07** `50e1d81e874c` — 1 info
  - added the new optional request property `attr/force_tfa`
- **2025-03-14** `98a6931f6325` — 1 info
  - added the new optional request property `attr/authsource`
- **2021-04-04** `10480acad415` — 1 warning, 1 info
  - removed the request property `attr/pasword`
  - added the new optional request property `attr/password`
- **2020-06-07** `47523aca063a` — 3 warning, 1 info
  - removed the request property `attr/authsource`
  - removed the request property `attr/force_tfa`
  - removed the request property `attr/password`
  - added the new optional request property `attr/pasword`

[Change history](https://skmtc.dev/mailcow/apis/mailcow-api/changes/api/v1/edit/mailbox/post.md)

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) · [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailcow/mailcow-api/revisions/ae01d1d7886a/schema)
