---
title: "Update a transaction label"
method: PATCH
path: "/v1/transaction_labels/{transaction_label_id}"
tags: ["Transaction label"]
---

# Update a transaction label

`PATCH /v1/transaction_labels/{transaction_label_id}`

## Request

- Base URL: `https://api.cardda.com`
- URL: `https://api.cardda.com/v1/transaction_labels/{transaction_label_id}`
- Auth: HTTP bearer

Updates a transaction label's `label` and/or `color`. The caller must be a member of the
label's company. Returns the updated label.

## Path parameters

- `transaction_label_id` string, uuid, required

## Headers

- `company-id` string, uuid, required

## Request body

- TransactionLabelUpdate: Payload to update a transaction label. All fields are optional; only the provided fields are changed. The caller must be a member of the label's company.
  - `label` string
  - `color` string, nullable

## Response `200`

Label updated

- TransactionLabel: A transaction label — a company-scoped tag that can be associated with transactions.
  - `id` string, uuid, required
  - `label` string, required
  - `color` string, nullable
  - `company_id` string, uuid
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `404`: Label not found
- `422`: Validation error

---

[API](https://skmtc.dev/cardda/apis/accounting-api.md) - [All operations](https://skmtc.dev/cardda/apis/accounting-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cardda/apis/accounting-api/revisions/49cf78d0f7ab?raw)
