DeleteGroup
[POST] .../v1/workscheduleassignment/deletegroup
Deletes work schedule assignment to a group. Use this destructive method to remove one group schedule assignment by assignment id. The method validates id, checks work schedule assignment manage permission 694, soft-deletes the group assignment, writes an action log entry and returns row_affected with changed ids. The request body is required and id must be positive. Missing body, invalid id, denied permission, missing assignment and database errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Assignment ID. |
Request Example
{
"id": 41
}
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,
"ids": [
41
]
}
}