Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/akevalion/life_cost/llms.txt

Use this file to discover all available pages before exploring further.

Update the amount, description, and tags of an existing MoneyTransfer record. The update is performed atomically: all Tag records currently linked to the transfer are deleted first, and then a fresh set of Tag records is created from the tags array you supply. This means every edit is a full replacement of the tag list — partial updates are not supported.
This endpoint does not carry a @login_required decorator in index.py. No session cookie is required by the current server implementation. This is a known security gap — any HTTP client that can reach the server can edit any transfer by ID.

Endpoint

POST /edit_money

Authentication

Not enforced. The @login_required decorator is absent from this route in index.py. No session cookie is required by the current implementation.

Request Body

Send a JSON object with the following fields.
id
integer
required
The unique ID of the MoneyTransfer to update.
amount
float
required
The new transfer amount. Negative values represent expenses; positive values represent income.
description
string
required
The new description for the transfer (max 200 characters).
tags
array
required
The complete replacement list of tag name strings. All existing tags for this transfer are removed and this array is used to recreate them from scratch. Pass [] to remove all tags without adding new ones.
Passing an empty tags array ([]) permanently removes all category associations from the transfer. There is no partial-update or append mode — the array you send becomes the transfer’s entire tag set.

Response

message
string
"MoneyTransfer edited successfully" on success.
error
string
An error message string. Present on 404 ("MoneyTransfer not found") or 500 (database exception message).

Example Request

curl -X POST https://your-app.example.com/edit_money \
  -H "Content-Type: application/json" \
  -d '{
    "id": 42,
    "amount": -40.00,
    "description": "Weekly groceries (updated)",
    "tags": ["food", "organic"]
  }'

Example Request Body

{
  "id": 42,
  "amount": -40.00,
  "description": "Weekly groceries (updated)",
  "tags": ["food", "organic"]
}

Example Response

{
  "message": "MoneyTransfer edited successfully"
}

Error Cases

StatusBodyCondition
404 Not Found{"error": "MoneyTransfer not found"}No transfer exists with the given id.
500 Internal Server Error{"error": "<exception message>"}A database error occurred; the session is rolled back automatically.

Build docs developers (and LLMs) love