---
title: "Rename/retype a finance account"
method: PATCH
path: "/groups/{groupId}/finance/assets/{assetId}"
tags: ["Legacy (v1-compat)"]
---

# Rename/retype a finance account

`PATCH /groups/{groupId}/finance/assets/{assetId}`

## Request

- Base URL: `https://whatareyoudo.ing/api/v1`
- URL: `https://whatareyoudo.ing/api/v1/groups/{groupId}/finance/assets/{assetId}`
- Auth: HTTP bearer

## Path parameters

- `groupId` string, uuid, required
- `assetId` string, uuid, required

## Request body

- CompatUpdateAssetRequest
  - `name` string, required
  - `type` 'cash' | 'bank' | 'card' | 'savings' | 'other', required
  - `currency` string, required

## Response `200`

OK

- CompatAsset
  - `id` string, uuid, required
  - `group_id` string, uuid, required
  - `name` string, required
  - `type` 'cash' | 'bank' | 'card' | 'savings' | 'other', required
  - `currency` string, required
  - `opening_balance` number, required
  - `balance` number, required
  - `opening_balance_minor` string, required: issue #63: exact integer minor-units mirror
  - `balance_minor` string, required: issue #63: exact integer minor-units mirror
  - `can_edit` boolean: Whether the caller may change or remove it: its creator, or the group's owner/admin (never an admin of a system group). Present on list responses.

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/whatareyoudo/apis/whatcha-api.md) · [All operations](https://skmtc.dev/whatareyoudo/apis/whatcha-api/llms.txt) · [OpenAPI document](https://skmtc.dev/whatareyoudo/apis/whatcha-api/revisions/48dd8a54abea?raw)
