# Create or edit a label

`POST /api/v1/notes/labels`

Without `id` creates a label (anyone; an existing name — case-insensitive, Turkish rules — is returned with `existed: true`). Renaming / recolouring with `id` is admin-only. At most 60 labels.

## Body

| Field | Type | Description |
|---|---|---|
| `id` | integer | Label to edit (admin). |
| `name` (required) | string | Name (max 40 characters). |
| `color` | string | Colour key; next free colour when empty. Values: `blue`, `teal`, `green`, `yellow`, `orange`, `red`, `pink`, `purple`, `gray` |
