Change the company's working hours.
PATCH/api/v1/company/settings/working-hourssettings:write
Merges the members the body names onto the saved hours; the whole result is checked: timezone a known IANA name or null, day_start and day_end HH:MM with day_end later, working_days ISO weekdays 1 to 7 with at least one. Due dates and the analytics' working-time measures follow the change. Needs Edit Working Hours Settings.
| Scope | settings:write (sensitive) |
| Asynchronous | No |
| MCP tool | update_company_settings_working_hours |
| Portal permissions | edit_working_hours_settings |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Docwize-Version | header | string (date) | Optional | |
If-Match | header | string | Optional |
Request body
| Content type | Type |
|---|---|
application/json | WorkingHoursPatchInput |
application/merge-patch+json | WorkingHoursPatchInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json WorkingHours or object |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
412 | precondition_failed | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
WorkingHours
| Field | Type | Required | Description |
|---|---|---|---|
day_end | string | Required | HH:MM, 24-hour; later than day_start. |
day_start | string | Required | HH:MM, 24-hour. |
server_timezone | string | Required | What a null timezone means: the deployment's server timezone (read-only). |
timezone | string or null | Required | The IANA timezone the day's start and end are read in; null means the server timezone. |
working_days | array of integer | Required | ISO weekdays, 1 Monday to 7 Sunday, ascending and without repeats. |
WorkingHoursPatchInput
| Field | Type | Required | Description |
|---|---|---|---|
day_end | string or null | Optional | |
day_start | string or null | Optional | |
server_timezone | string or null | Optional | |
timezone | string or null | Optional | |
working_days | array of integer or null | Optional |