Categories

Update Category

PATCH
/v1/households/{household_id}/categories/{category_id}

Updates a category's name, emoji, type, or group.

Send only the fields you want to change; omitted fields keep their current values. Send group_id: null to ungroup the category. While in a group, the category inherits the group's type. Name and emoji must stay unique among active categories, and changing type affects how assigned transactions count in reports.

Authorization

PersonalApiToken
AuthorizationBearer <token>

Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.

In: header

Path Parameters

household_id*string

ID of the household that owns the resource. GET /v1/households lists the households you can access.

category_id*string

ID of the category.

Request Body

application/json

name?string

Display name. Must be unique among the household's active categories, ignoring case.

Length1 <= length <= 255
emoji?string

Emoji shown next to the name. Must be unique among the household's active categories.

Length1 <= length <= 50
category_type?CategoryType

Kind of money movement the category is for. Transactions in a transfer category are left out of income and spending reports. Ignored when group_id is set, because a grouped category always takes its group's group_type.

Value in

  • "income"
  • "transfer"
  • "expense"
group_id?|

Group the category belongs to. Send null for an ungrouped category, which on an update removes the category from its current group. Omitting it means no group on create and keeps the current group on an update.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/categories/Ct5nR8wY1jFu" \  -H "Authorization: Bearer $PENNY_API_TOKEN" \  -H "Content-Type: application/json" \  --data-raw '{  "group_id": "Cg2mV7pL4zXe"}'
{  "id": "Ct5nR8wY1jFu",  "name": "Groceries",  "emoji": "🥬",  "category_type": "expense",  "group_id": "Cg2mV7pL4zXe"}