---
title: "Patch a transaction split"
method: PATCH
path: "/transactions/{transactionId}/splits/{splitId}"
tags: ["transactions"]
---

# Patch a transaction split

`PATCH /transactions/{transactionId}/splits/{splitId}`

Requires **transactions:write:all** scope.

## Path parameters

- `transactionId` string, uuid, required
- `splitId` string, uuid, required

## Request body

- TransactionSplitPatch
  - `categoryId` string — The category id. Standard categories are prefixed with 'std', custom categories are prefixed with 'cus'
  - `description` string — A description of the transaction split
  - `projectId` string — The project ID the transaction is associated with

## Response `200`

Successful Transaction Splits Response

- object
  - `data` TransactionSplit[]
    - `amount` object, required
      - `value` integer — The amount of the transaction in minor units of the currency, eg. pennies for GBP, negative means money going out of an account, positive means money coming into an account.
      - `majorUnits` integer — The major units of the value, based on the values currency, eg. pounds for GBP.
      - `minorUnits` integer — The minor units of the value, based on the values currency, eg. pennies for GBP.
      - `currency` string — The currency of the amount
    - `categoryId` string, required — The category id. Standard categories are prefixed with 'std', custom categories are prefixed with 'cus'
    - `description` string, required — A description of the transaction split
    - `id` string, required — The unique id of the transaction split
    - `projectId` string — The project ID the transaction is associated with
  - `links` Links
    - `next` string, uri — The url to retrieve the next page of results from
    - `prev` string, uri — The url to retrieve the previous page of results from
    - `self` string, uri, required — The url of the current resource(s)
  - `meta` object

## Other responses

- `401` — Unsuccessful Response - Not authorised - Missing authorization header - Invalid access Token
- `403` — Unsuccessful Response - Forbidden - Invalid scopes
- `404` — Unsuccessful Response - Resource Not found

---

[API](https://skmtc.net/moneyhub/apis/moneyhub-data-api.md) · [All operations](https://skmtc.net/moneyhub/apis/moneyhub-data-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/moneyhub/moneyhub-data-api/revisions/f2eb965eb9af/schema)
