# PATCH /api/v1/email/account

> Change a mailbox send limit or quota

- Group: email
- Tier: W
- Required scope: write:email
- Docs: https://api.inleed.com/reference/email/update-mailbox

## Description

Sets the daily `send_limit` (0 = unlimited) and/or the disk `quota_mb` (megabytes; 0 = unlimited) on `address`. Send at least one. Does not change the password — use `set_mailbox_password` for that. Renaming a mailbox is not supported on this node.

## Body

- `address` — string (required)
- `quota_mb` — integer. Range 0–1048576.
- `send_limit` — integer. Range 0–100000.
- `new_name` — string. Up to 254 characters.

## Request

```bash
curl -X PATCH "https://mcp.inleed.com/api/v1/email/account" \
  -H "Authorization: Bearer inl_live_…" \
  -H "Content-Type: application/json" \
  -d '{"address":"info@example.se","quota_mb":3,"send_limit":3,"new_name":"example.se"}'
```

## Response · 200

```json
{
  "target": {
    "input": "example.se",
    "kind": "domain",
    "domain": null,
    "mailbox": null,
    "serviceId": 90714,
    "domainServiceId": null,
    "daUsername": "inleed42",
    "node": "web12",
    "userId": 4821,
    "note": null
  },
  "address": "info@example.se",
  "quotaMb": 3,
  "sendLimit": 3
}
```

## Errors

- **401** No token was presented, or the token is revoked, expired or unknown. — codes: unauthorized, token_expired, token_revoked
- **403** The token lacks a required scope, or this account does not own the resource. — codes: insufficient_scope
- **422** Validation error — codes: validation_failed
- **429** The rate limit for this token is exhausted. See `Retry-After`. — codes: rate_limited
- **500** Something went wrong on our side. The failure is logged against `requestId`. — codes: internal_error

## Related

- GET /api/v1/email/account — https://api.inleed.com/reference/email/get-mailbox
- DELETE /api/v1/email/account — https://api.inleed.com/reference/email/delete-mailbox
- POST /api/v1/email/account/actions/webmail-sso — https://api.inleed.com/reference/email/webmail-sso
- POST /api/v1/email/account/actions/suspend — https://api.inleed.com/reference/email/suspend-mailbox

