Skip to main content

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.

Scopesettings:write (sensitive)
AsynchronousNo
MCP toolupdate_company_settings_working_hours
Portal permissionsedit_working_hours_settings

Parameters​

NameInTypeRequiredDescription
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Request body​

Content typeType
application/jsonWorkingHoursPatchInput
application/merge-patch+jsonWorkingHoursPatchInput

Responses​

StatusDescriptionBody
200Success.application/json WorkingHours or object
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

WorkingHours​

FieldTypeRequiredDescription
day_endstringRequiredHH:MM, 24-hour; later than day_start.
day_startstringRequiredHH:MM, 24-hour.
server_timezonestringRequiredWhat a null timezone means: the deployment's server timezone (read-only).
timezonestring or nullRequiredThe IANA timezone the day's start and end are read in; null means the server timezone.
working_daysarray of integerRequiredISO weekdays, 1 Monday to 7 Sunday, ascending and without repeats.

WorkingHoursPatchInput​

FieldTypeRequiredDescription
day_endstring or nullOptional
day_startstring or nullOptional
server_timezonestring or nullOptional
timezonestring or nullOptional
working_daysarray of integer or nullOptional