{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can create an exception for an office hours schedule. Use `closed` to mark the day closed (omit `time_intervals`) or `custom_hours` to supply replacement intervals.","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"office_hours_schedule_id":{"type":"string","examples":["123"],"description":"The unique identifier for the office hours schedule."}},"required":["office_hours_schedule_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/create_office_hours_exception_request","examples":[{"exception_date":"2026-12-25","exception_type":"closed","name":"Christmas Day","recurring_annually":true}]}},"required":["path","body"],"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"]},"create_office_hours_exception_request":{"type":"object","title":"Create Office Hours Exception Request","description":"The request payload for creating an office hours exception. Omit `time_intervals` when `exception_type` is `closed`. Any other field, apart from `id` and `office_hours_schedule_id`, is rejected with a 400 error.","required":["exception_date","exception_type"],"properties":{"exception_date":{"type":"string","format":"date","description":"The date the exception applies to, in `YYYY-MM-DD` format. A schedule can have only one exception for each date; a second one returns a 422 error.","examples":["2026-12-25"]},"exception_type":{"type":"string","enum":["closed","custom_hours"],"description":"The type of exception.","examples":["closed"]},"name":{"type":"string","description":"An optional name for the exception.","examples":["Christmas Day"]},"time_intervals":{"type":["array","null"],"description":"The open intervals for the exception date. Required for `custom_hours`; omit for `closed`, which returns a 422 error if intervals are sent. `start_minute` and `end_minute` must be on a 15-minute boundary. Don't send `day_of_week`; it is read-only and a request that includes it is rejected with a 400 error.","items":{"$ref":"#/definitions/office_hours_time_interval"}},"recurring_annually":{"type":"boolean","description":"Whether the exception repeats every year on the same date.","examples":[true]}}},"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":"Create an office hours exception","id":"intercom.createofficehoursexception","example":{"path":{"office_hours_schedule_id":"123"},"body":{"exception_date":"2026-12-25","exception_type":"closed"}},"maxRequests":1,"summary":false}}