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

# Update mailbox custom attributes

`POST /api/v1/edit/mailbox/custom-attribute`

You can update custom attributes of one or more mailboxes per request.

## Request body

- object
  - `attr` object
    - `attribute` object — Array of attribute keys
    - `value` object — Array of attribute values
  - `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

- **2023-11-23** `b050fedca62a` — 1 info
  - endpoint added
- **2020-06-07** `47523aca063a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/mailcow/apis/mailcow-api/changes/api/v1/edit/mailbox/custom-attribute/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)
