---
title: "Update a mailbox"
method: PATCH
path: "/1/mail_hostings/{mail_hosting_id}/mailboxes/{mailbox_name}"
tags: ["Mailbox management"]
---

# Update a mailbox

`PATCH /1/mail_hostings/{mail_hosting_id}/mailboxes/{mailbox_name}`

Updates a given mailbox.

## Path parameters

- `mail_hosting_id` integer, required
- `mailbox_name` string, required

## Request body

- object
  - `authorized_senders` string[]
  - `blocked_senders` string[]
  - `has_mail_filtering` boolean
  - `has_move_spam` boolean
  - `has_responder` boolean
  - `mail_filtering_folder_commercials` string
  - `mail_filtering_folder_social_networks` string
  - `note` string, nullable
  - `show_config_modal` boolean

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
