# Update an office hours exception

`PUT /office_hours_schedules/{office_hours_schedule_id}/office_hours_exceptions/{id}`

> This is a subset of the full specification, limited to the `PUT /office_hours_schedules/{office_hours_schedule_id}/office_hours_exceptions/{id}` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.16/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.16'
  description: This is a subset of the full specification, limited to the `PUT /office_hours_schedules/{office_hours_schedule_id}/office_hours_exceptions/{id}` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Office Hours
    description: |
      Manage office hours schedules and their exceptions. These endpoints require an
      OAuth token with the `read_write_office_hours` scope.
paths:
  /office_hours_schedules/{office_hours_schedule_id}/office_hours_exceptions/{id}:
    put:
      summary: Update an office hours exception
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: office_hours_schedule_id
          in: path
          required: true
          description: The unique identifier for the office hours schedule.
          example: '123'
          schema:
            type: string
        - name: id
          in: path
          required: true
          description: The unique identifier for the office hours exception.
          example: '456'
          schema:
            type: string
      tags:
        - Office Hours
      operationId: updateOfficeHoursException
      description: You can update an existing office hours exception.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/update_office_hours_exception_request'
            examples:
              Update exception:
                value:
                  exception_type: custom_hours
                  name: Christmas Day (reduced hours)
                  time_intervals:
                    - start_minute: 540
                      end_minute: 780
                  recurring_annually: true
      responses:
        '200':
          description: Office hours exception updated
          content:
            application/json:
              examples:
                Office hours exception updated:
                  value:
                    type: office_hours_exception
                    id: '456'
                    office_hours_schedule_id: '123'
                    exception_date: '2026-12-25'
                    exception_type: custom_hours
                    name: Christmas Day (reduced hours)
                    time_intervals:
                      - start_minute: 540
                        end_minute: 780
                        day_of_week: 4
                    recurring_annually: true
                    created_at: 1717200000
                    updated_at: 1717203600
              schema:
                $ref: '#/components/schemas/office_hours_exception'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/ObjectNotFound'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  schemas:
    office_hours_time_interval:
      type: object
      title: Office Hours Time Interval
      x-tags:
        - Office Hours
      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.
      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`.
          example: 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`.
          example: 1020
        day_of_week:
          type: integer
          readOnly: true
          description: Derived day of the week the interval falls on (0 = Monday … 6 = Sunday). For exceptions, this is derived from `exception_date`.
          example: 0
    office_hours_exception:
      type: object
      title: Office Hours Exception
      x-tags:
        - Office Hours
      description: An exception overrides a schedule's regular hours on a specific date, such as a public holiday.
      properties:
        type:
          type: string
          description: The type of the object - always `office_hours_exception`.
          example: office_hours_exception
        id:
          type: string
          description: The unique identifier for the office hours exception.
          example: '456'
        office_hours_schedule_id:
          type: string
          description: The unique identifier for the schedule this exception belongs to.
          example: '123'
        exception_date:
          type: string
          format: date
          description: The date the exception applies to, in `YYYY-MM-DD` format.
          example: '2026-12-25'
        exception_type:
          type: string
          description: '`closed` means the workspace is closed all day; `custom_hours` replaces the regular hours with `time_intervals`.'
          enum:
            - closed
            - custom_hours
          example: closed
        name:
          type: string
          nullable: true
          description: An optional name for the exception.
          example: Christmas Day
        time_intervals:
          type: array
          nullable: true
          description: The open intervals for the exception date. `null` when `exception_type` is `closed`.
          items:
            $ref: '#/components/schemas/office_hours_time_interval'
        recurring_annually:
          type: boolean
          description: Whether the exception repeats every year on the same date.
          example: true
        created_at:
          type: integer
          description: The time the exception was created as a Unix timestamp.
          example: 1717200000
        updated_at:
          type: integer
          description: The time the exception was last updated as a Unix timestamp.
          example: 1717200000
    update_office_hours_exception_request:
      type: object
      title: Update Office Hours Exception Request
      description: The request payload for updating an office hours exception. Only the provided fields are updated.
      properties:
        exception_date:
          type: string
          format: date
          description: The date the exception applies to, in `YYYY-MM-DD` format.
          example: '2026-12-25'
        exception_type:
          type: string
          enum:
            - closed
            - custom_hours
          description: The type of exception.
          example: custom_hours
        name:
          type: string
          description: An optional name for the exception.
          example: Christmas Day (reduced hours)
        time_intervals:
          type: array
          nullable: true
          description: The open intervals for the exception date. Required for `custom_hours`; omit for `closed`.
          items:
            $ref: '#/components/schemas/office_hours_time_interval'
        recurring_annually:
          type: boolean
          description: Whether the exception repeats every year on the same date.
          example: true
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              field:
                type: string
                nullable: true
                description: Optional. Used to identify a particular field or query parameter that was in error.
                example: email
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>By default, it's equal to the version set in the app package.
      type: string
      example: '2.16'
      default: '2.16'
      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'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          examples:
            Unauthorized:
              value:
                type: error.list
                request_id: 12a938a3-314e-4939-b773-5cd45738bd21
                errors:
                  - code: unauthorized
                    message: Access Token Invalid
          schema:
            $ref: '#/components/schemas/error'
    ObjectNotFound:
      description: Not Found
      content:
        application/json:
          examples:
            ObjectNotFound:
              value:
                type: error.list
                request_id: 12a938a3-314e-4939-b773-5cd45738bd21
                errors:
                  - code: not_found
                    message: Object not found
            CustomObjectNotFound:
              value:
                type: error.list
                request_id: 12a938a3-314e-4939-b773-5cd45738bd21
                errors:
                  - code: not_found
                    message: Custom object instance not found
            IntegrationNotFound:
              value:
                type: error.list
                request_id: 12a938a3-314e-4939-b773-5cd45738bd21
                errors:
                  - code: data_invalid
                    message: Integration not found
          schema:
            $ref: '#/components/schemas/error'
    ValidationError:
      description: Validation Error
      content:
        application/json:
          examples:
            ValidationError:
              value:
                type: error.list
                request_id: 12a938a3-314e-4939-b773-5cd45738bd21
                errors:
                  - code: data_invalid
                    message: Invalid or duplicated record reference
          schema:
            $ref: '#/components/schemas/error'
```
