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

# Patch a transaction split

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

## Request

- Base URL: `https://api.moneyhub.co.uk/v3`
- URL: `https://api.moneyhub.co.uk/v3/transactions/{transactionId}/splits/{splitId}`
- Auth: API key in header `Authorization`

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.dev/moneyhubenterprise/apis/moneyhub-data-api-v3.md) - [All operations](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhubenterprise/apis/moneyhub-data-api-v3/revisions/2e08b5dbee56?raw)
