[POST] .../v1/accountoperationcategory/delete
Deletes income or expense category. Use this destructive method to delete an income or expense category that should no longer be available for finance documents. It requires a positive id and returns row_affected after the persistent layer checks whether the category can be removed from the hierarchy and related data. The caller must have account operation category delete permission; missing body, invalid id, denied access, related-record restrictions, 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. |
Request Example
{
"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
}
}