[POST] .../v1/retailcardgroup/edit
Edits customer card groups. Use this method to update a customer card group name or move it under another parent group. The request requires id, optionally accepts name and parent_id, validates name length, rejects parent_id equal to id and returns row_affected after the update. The method checks the current request user and requires customer card group edit permission; missing body, missing id, invalid parent hierarchy, unknown parent group, no editable fields, denied permission and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Group ID. |
| name | String | Optional | Group name. |
| parent_id | Int64 | Optional | Parent group 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
}
}