Update Category
PUT {{base_url}}/banking/v2/transactions/:transactionId/category
The ‘Update category’ endpoint can be used to update the category in a particular transaction.
If the user re-categorises a transaction to a different category, they can do so by using this endpoint.
Path variables
| Field | Type | Description | 
|---|---|---|
| transactionId | string | Unique identifier for the transaction | 
Attributes
| Field Name | Type | Description | 
|---|---|---|
| id | string | Unique identifier for the new category | 
| updateType | string | updateType {ONEwill only recategorise a particular transaction, ALLwill change all recategorise all similar transactions including past and future transactions}  | 
Success
204 No content
Error messages
| Condition | Response Status | Response Body | 
|---|---|---|
| Invalid transactionId | 404 Not Found | |
| Missing/Invalid categoryId | 400 Bad Request | { error: "Missing/invalid categoryId }  | 
| Missing/Invalid updateType | 400 Bad Request | { error: "Missing/invalid updateType }  | 
Request Body
{"id"=>"category Id", "updateType"=>"ALL"}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
Content-Type | string | ||
Authorization | string | ||
X-Api-Key | string | ||
X-Partner-Id | string | ||
X-Company-Id | string |