move_account
Relocate an account to a new parent in the chart of accounts, preserving its children and balances. Only the account hierarchy position changes; transaction data remains unaffected.
Instructions
Move an account — children and balances ride along — under a new parent in the hierarchy.
No transaction data changes: only the account's position (and therefore every descendant's full path) is rewritten. Errors, changing nothing, if either ref matches no account, if the move would create a cycle (new parent is the account itself or one of its descendants), or if the new parent already has a child of the same name. %short GUIDs survive the move; saved full paths do not. Use update_account to rename in place instead of moving.
Args: name: Account ref to move (full path e.g. "Expenses:Old:Account", %short GUID, or full 32-char GUID) new_parent: New parent account ref (full path, %short GUID, or full 32-char GUID)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| new_parent | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |