Skip to navigation

Add Break

Adds a new break to your company. Shared rules: see Writing data.

  • name must be unique in the company, ignoring upper/lower case and outer spaces. A second break with the same name is refused with 400, so repeating is harmless.
  • max_duration_minutes is required when is_paid is true and not allowed when false.
  • GET /attendance/break returns max_duration in seconds; writes use minutes.
  • Needs the Break Tracking plan feature.

Authentication

AuthorizationApi-Key

Format: “Api-Key {api-key}”

Request

This endpoint expects an object.
namestringRequired1-100 characters
Break name. Unique in the company, ignoring case.
is_paidbooleanRequired
Whether the break is paid.
max_duration_minutesintegerOptional1-1439

Maximum minutes for the break. Required when is_paid is true; not allowed when false.

Response

The break was created.
messagestring
statusboolean
dataobject

Errors

400
Bad Request Error
403
Forbidden Error