---
title: "Update a category"
method: PATCH
path: "/accounting/{connection_id}/category/{id}"
tags: ["accounting", "category"]
---

# Update a category

`PATCH /accounting/{connection_id}/category/{id}`

## Path parameters

- `connection_id` string, required
- `id` string, required

## Query parameters

- `fields` string[]
- `raw` string

## Request body

- AccountingCategory
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string
  - `description` string
  - `is_active` boolean
  - `parent_id` string
  - `type` 'CLASS' | 'DEPARTMENT' | 'LOCATION' | 'PROJECT' | 'TASK' | 'CUSTOM' | 'EXPENSE' | 'INCOME'
  - `code` string
  - `organization_id` string
  - `metadata` AccountingMetadata[]
    - `id` string
    - `slug` string
    - `value` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object

## Response `200`

Successful

- AccountingCategory
  - `id` string
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `name` string
  - `description` string
  - `is_active` boolean
  - `parent_id` string
  - `type` 'CLASS' | 'DEPARTMENT' | 'LOCATION' | 'PROJECT' | 'TASK' | 'CUSTOM' | 'EXPENSE' | 'INCOME'
  - `code` string
  - `organization_id` string
  - `metadata` AccountingMetadata[]
    - `id` string
    - `slug` string
    - `value` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
    - `namespace` string
    - `format` 'TEXT' | 'NUMBER' | 'DATE' | 'BOOLEAN' | 'FILE' | 'TEXTAREA' | 'SINGLE_SELECT' | 'MULTIPLE_SELECT' | 'MEASUREMENT' | 'PRICE' | 'YES_NO' | 'CURRENCY' | 'URL'
    - `extra_data` union
      - object
      - string
      - number
      - boolean
      - union[]
        - union
          - object
          - string
          - number
          - boolean
  - `raw` object

## Changes

- **2026-08-12** `1c744a7590b4` — 3 info
  - added the new optional request property `metadata`
  - added the enum value `metadata` to the property `items/` of the `query` request parameter `fields`
  - added the optional property `metadata` to the response with the `200` status
- **2026-07-31** `963bcc74f9e3` — 9 info
  - added the new optional request property `code`
  - added the new optional request property `organization_id`
  - added the new optional request property `type`
  - added the enum value `code` to the property `items/` of the `query` request parameter `fields`
  - …5 more

[Change history](https://skmtc.dev/unified/apis/unified-to-api/changes/accounting/:connection_id/category/:id/patch.md)

---

[API](https://skmtc.dev/unified/apis/unified-to-api.md) · [All operations](https://skmtc.dev/unified/apis/unified-to-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unified/unified-to-api/revisions/45664a7696ac/schema)
