Skip to main content
PATCH
Update custom category

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Path Parameters

id
string
required

The cat_ ID from GET /categories.

Pattern: ^cat_

Body

application/json
name
string
required

The replacement name. The same character, reserved name, and uniqueness rules as custom category creation apply.

Required string length: 1 - 200
reason
string
required

Nonblank explanation of why the company is changing the category. Null characters are invalid.

Maximum string length: 500
Pattern: ^[^\x00]*[^\s\x00][^\x00]*$
description
string

Nonblank guidance on what belongs in the category. Null characters are invalid.

Required string length: 1 - 500
after_category_id
string

The cat_ ID from GET /categories of the visible sibling this category should follow. The sibling must be under the same parent and have a position, with room for another category after it. Send at most one placement field. Omit both to keep the current position.

Pattern: ^cat_
before_category_id
string

The cat_ ID from GET /categories of the visible sibling this category should precede. The sibling must be under the same parent and have a position, with room for another category before it. Send at most one placement field. Omit both to keep the current position.

Pattern: ^cat_

Response

The updated category with the reason for this change.

id
string
required

Unique identifier with cat_ prefix.

Example:

"cat_abc123"

object
enum<string>
required
Available options:
category
name
string
required
Example:

"Software & SaaS"

description
string
required

When to use this category, written for AI agents choosing a category for a transaction. Read it before picking a category. It is the same guidance Finta's AI categorizer uses, maintained by the Finta team and read when the request is made, so the text can change between requests. When that guidance is blank, a company-owned category uses the description stored on its own row. Empty string when neither source has a description.

Example:

"Recurring subscriptions to software and SaaS tools, such as GitHub, Slack, or Figma."

account_type
enum<string> | null
required

Top-level accounting classification derived from the root ancestor category. Null if the category has no top-level ancestor.

Available options:
asset,
liability,
equity,
income,
expense
Example:

"expense"

point_in_time
boolean
required

Whether the category represents a cumulative value at a point in time rather than activity over a period. True for balance-sheet categories and false for income-statement categories.

Example:

false

tier
enum<integer>
required

Category depth (1 = top-level, 2 = sub-category, 3 = sub-sub-category, 4 = detail category).

Available options:
1,
2,
3,
4
position
number | null
required

Sort order within sibling categories at the same tier. Null if not explicitly set. A custom category placed between two siblings can have a fractional position. Whole positions are returned as integers.

Example:

3

categorization_status
enum<string>
required

Whether transactions, splits and rules can use this category (invoice line items also need a revenue category). allowed: they can. never: they can't, because it's a top-level account type, has subcategories or is a bank or card account, or was created with categorizable: false; use a subcategory or another category. requires_support_approval: Finta blocks it on purpose, such as Accounts Receivable, and Finta support can turn it on for the company if it needs it. Every category works for transaction filters, and every category except Uncategorized Income and Uncategorized Expenses works for totals, whatever its status.

Available options:
allowed,
never,
requires_support_approval
Example:

"allowed"

accounting_treatment
string | null
required

What Finta does to the books when a transaction is categorized here. It is applied automatically and can't be turned off. Null when categorizing has no automatic accounting effect. Today only Equipment has one: the purchase is recorded as an asset and depreciated straight-line in monthly entries over 5 years.

Example:

"Depreciated straight-line over 5 years: the purchase is recorded as an asset and expensed monthly as depreciation."

created
integer
required

Unix timestamp of when the category was created.

Example:

1688053841

reason
object
required

Creation attribution for this company. The list omits the object when there is no recorded attribution.

cash_flow_section
enum<string> | null
required

Cash flow section assigned at creation. Null for income and expense categories.

Available options:
operating,
investing,
financing,
null
parent_id
string | null

ID of the parent category, or null for top-level categories.

Example:

"cat_parent123"