BreakEnd

[POST] .../v1/workattendance/breakend

Closes the active break of the current user Use this method when the current employee returns from the active break. The method checks break management permission 698, requires an open WorkSessionBreak for the current user, stores the optional end comment when supplied, calculates break duration, writes an action log entry, fires the break-end webhook, recalculates availability and returns row_affected with changed ids. The request body is required even when comment is omitted. Missing body, denied permission, missing active break and database errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
comment String Optional Break end comment. Stored in a database field with a 500 character limit.

Request Example

{
  "comment": "Returned from break"
}

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": [
      88
    ]
  }
}