更新收支记录

更新现有的交易条目。只能修改下面列出的字段。条目的direction、链接目标(相关房间/保留/操作符)和currency是不可变的;如果您需要更改其中任何一项,请删除该条目并创建一个新条目。

Path Params
int64
required

GET /transactionsPOST /transactions返回的交易条目id。

Body Params
number

新的绝对量。始终提供正数;保留原始 direction(收入或支出)。

integer

新项目分类 ID。当条目方向为 income 时,必须是来自 GET /income_items 的有效 ID;当条目方向为 expense 时,必须是来自 GET /expense_items 的有效 ID。

integer

新的付款方式 ID。当条目方向为 income 时,必须是来自 GET /income_methods 的有效 ID;当条目方向为 expense 时,必须是来自 GET /expense_methods 的有效 ID。

string

新的行动时间。接受 ISO 8601 (ZZPH0ZZ)。

string

新的自由格式注释(最多 500 个字符)。

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json