[POST] .../v1/accountoperationcategory/edit
Edits income or expense category. Use this method to update an existing income or expense category without changing historical document references. It returns row_affected, requires a positive id, rejects parent_id equal to id when parent_id is provided and validates that a provided name does not exceed 150 characters. The caller must have account operation category edit permission; missing body, invalid id or hierarchy data, denied access, missing records and persistent storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Income or expense category ID. |
| name | String | Optional | Expense or income category name. |
| parent_id | Int64 | Optional | Parent income or expense category ID. |
Request Example
{
"id": 1,
"name": "string",
"parent_id": 1
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}