Delete
[POST] .../v1/itemgroup/delete
Deletes item group. Use this destructive method only when an item group should be removed from the active product hierarchy. The method soft-deletes the group, sends the ItemGroupDeleted webhook and returns row_affected. The caller must have item group delete permission; id is required, the group must not contain active items or child groups and validation failures, denied access, missing records, linked data or storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Group ID in the system. |
Request Example
{
"id": 10
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}