# PATCH /api/v1/email/accounts/quota

> Change a mailbox quota

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

## Description

Sets the disk `quota_mb` (megabytes; `0` = unlimited) on `address`. Does not change the password. To see current usage against the quota, call `list_mailboxes`.

## Body

- `address` — string (required). The full mailbox address whose quota to change, e.g. info@example.com.
- `quota_mb` — integer (required). New disk quota in megabytes. Send 0 for unlimited. Range 0–1048576.

## Request

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

## 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
}
```

## 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/accounts — https://api.inleed.com/reference/email/list-mailboxes
- POST /api/v1/email/accounts — https://api.inleed.com/reference/email/create-mailbox
- PUT /api/v1/email/accounts/password — https://api.inleed.com/reference/email/set-mailbox-password

