{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can update an existing office hours schedule.","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"id":{"type":"string","examples":["123"],"description":"The unique identifier for the office hours schedule."}},"required":["id"],"additionalProperties":false},"body":{"$ref":"#/definitions/update_office_hours_schedule_request","examples":[{"name":"Extended Support Hours","time_intervals":[{"start_minute":480,"end_minute":1080}]}]}},"required":["path"],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"update_office_hours_schedule_request":{"type":"object","title":"Update Office Hours Schedule Request","description":"The request payload for updating an office hours schedule. Only the provided fields are updated. Any other field, apart from `id`, is rejected with a 400 error.","properties":{"name":{"type":"string","description":"The name of the office hours schedule. It must be unique among the workspace's schedules; a duplicate name returns a 422 error.","examples":["Extended Support Hours"]},"time_zone_name":{"type":"string","description":"The IANA time zone the schedule's hours are evaluated in.","examples":["America/New_York"]},"time_intervals":{"type":"array","description":"The open intervals for the schedule. `start_minute` and `end_minute` must be on a 15-minute boundary, except for the whole-week interval `0` to `10079`. Don't send `day_of_week`; it is read-only and a request that includes it is rejected with a 400 error. When provided, the intervals replace all of the schedule's existing intervals.","items":{"$ref":"#/definitions/office_hours_time_interval"}}}},"office_hours_time_interval":{"type":"object","title":"Office Hours Time Interval","description":"A single open interval. For schedules, `start_minute` and `end_minute` are minute offsets from the start of the week (Monday 00:00 = 0), in the range 0 to 10080. For exceptions, they are minute offsets from midnight on `exception_date`, in the range 0 to 1440.\n\nIn requests, `start_minute` and `end_minute` must be multiples of 15. The one exception is a schedule's whole-week interval, `0` to `10079`, which makes the schedule open 24/7. A request interval can contain only `start_minute` and `end_minute`; any other field, including the read-only `day_of_week`, is rejected with a 400 error.\n","properties":{"start_minute":{"type":"integer","description":"Minute the interval starts. For schedules, offset from the start of the week (Monday 00:00 = 0); for exceptions, offset from midnight on `exception_date`.","examples":[540]},"end_minute":{"type":"integer","description":"Minute the interval ends. For schedules, offset from the start of the week (Monday 00:00 = 0); for exceptions, offset from midnight on `exception_date`.","examples":[1020]}}}}},"name":"Update an office hours schedule","id":"intercom.updateofficehoursschedule","example":{"path":{"id":"123"}},"maxRequests":1,"summary":false}}