[POST] .../v1/retailcustomergroup/edit
Edits group customers. Use this method to update a retail customer group name or move it under another parent group. The request requires id and name, optionally accepts 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 retail customer group edit permission; missing body, missing id, missing name, invalid parent hierarchy, unknown parent group, denied permission, not found and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Group ID. |
| name | String | Required | 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
}
}