---
title: "Update a label"
method: PATCH
path: "/v1/inboxes/{inbox_id}/labels/{label_id}"
tags: ["Inboxes"]
---

# Update a label

`PATCH /v1/inboxes/{inbox_id}/labels/{label_id}`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/inboxes/{inbox_id}/labels/{label_id}`
- Auth: HTTP bearer

Rename or recolor a label. At least one of name or color. Requires the inbound:read scope.

## Path parameters

- `inbox_id` string, required
- `label_id` string, required

## Request body

- object
  - `name` string
  - `color` 'cyan' | 'teal' | 'grass' | 'lime' | 'yellow' | 'orange' | 'iris' | 'plum' | 'crimson' | 'bronze' | 'mauve'

## Response `200`

Updated

- object
  - `object` string
  - `id` string

## Other responses

- `400`: Bad request - check your payload
- `401`: Invalid or missing API key
- `403`: Forbidden - domain not verified or insufficient permissions
- `404`: Resource not found
- `409`: Conflict - the resource already exists or changed meanwhile
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

[API](https://skmtc.dev/smtpfa/apis/smtpfast-api.md) · [All operations](https://skmtc.dev/smtpfa/apis/smtpfast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smtpfa/apis/smtpfast-api/revisions/79dda742f53e?raw)
