DeleteUser

[POST] .../v1/workscheduleassignment/deleteuser

Deletes work schedule assignment to a user. Use this destructive method to remove one direct user schedule assignment by assignment id. The method validates id, checks work schedule assignment manage permission 694, soft-deletes the user 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
    ]
  }
}