Change the company's working hours.
PATCH/api/v1/company/settings/working-hourssettings:write
注記
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
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.
| スコープ | settings:write (機密性の高いスコープ) |
| 非同期 | いいえ |
| MCP ツール | update_company_settings_working_hours |
| Portal の権限 | edit_working_hours_settings |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|---|---|---|---|
Docwize-Version | header | string (date) | 任意 | |
If-Match | header | string | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | WorkingHoursPatchInput |
application/merge-patch+json | WorkingHoursPatchInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json WorkingHours または 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
WorkingHours
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
day_end | string | 必須 | HH:MM, 24-hour; later than day_start. |
day_start | string | 必須 | HH:MM, 24-hour. |
server_timezone | string | 必須 | What a null timezone means: the deployment's server timezone (read-only). |
timezone | string または null | 必須 | The IANA timezone the day's start and end are read in; null means the server timezone. |
working_days | integer の配列 | 必須 | ISO weekdays, 1 Monday to 7 Sunday, ascending and without repeats. |
WorkingHoursPatchInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
day_end | string または null | 任意 | |
day_start | string または null | 任意 | |
server_timezone | string または null | 任意 | |
timezone | string または null | 任意 | |
working_days | integer の配列 または null | 任意 |