> ## Documentation Index
> Fetch the complete documentation index at: https://developer.siit.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a Business Calendar

> Update a Business Calendar. Only the provided attributes change; providing `slots` replaces all the working hours. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml patch /v1/business_calendars/{uid}
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/business_calendars/{uid}:
    parameters:
      - name: uid
        in: path
        description: The UID of the Business Calendar
        required: true
        schema:
          type: string
    patch:
      tags:
        - Unstable
        - Business Calendar
      summary: Update a Business Calendar
      description: >-
        Update a Business Calendar. Only the provided attributes change;
        providing `slots` replaces all the working hours. This endpoint may
        change or be removed without prior notice.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The name of the Business Calendar, unique within the company
                timezone:
                  type: string
                  description: >-
                    The timezone the working hours are expressed in, as a Rails
                    time zone name such as `UTC`, `Paris` or `Eastern Time (US &
                    Canada)`. IANA identifiers such as `Europe/Paris` are
                    rejected.
                slots:
                  type: array
                  items:
                    type: object
                    properties:
                      on_sunday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Sundays. Defaults to
                          false.
                      on_monday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Mondays. Defaults to
                          false.
                      on_tuesday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Tuesdays. Defaults to
                          false.
                      on_wednesday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Wednesdays. Defaults to
                          false.
                      on_thursday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Thursdays. Defaults to
                          false.
                      on_friday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Fridays. Defaults to
                          false.
                      on_saturday:
                        type: boolean
                        description: >-
                          Whether the slot applies on Saturdays. Defaults to
                          false.
                      start_time:
                        type: string
                        pattern: ^\d{2}:\d{2}$
                        description: >-
                          Start of the working hours, in the calendar timezone
                          (HH:MM)
                      end_time:
                        type: string
                        pattern: ^\d{2}:\d{2}$
                        description: >-
                          End of the working hours, in the calendar timezone
                          (HH:MM, `24:00` for the end of the day). Must be after
                          `start_time`.
                    required:
                      - start_time
                      - end_time
                  description: >-
                    The working hours. Each slot needs at least one weekday set
                    to true. When provided, the list replaces every existing
                    slot; send `[]` to remove all working hours.
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    $ref: '#/components/schemas/business_calendar'
                required:
                  - result
        '400':
          description: Invalid attributes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
      security:
        - bearer: []
components:
  schemas:
    business_calendar:
      type: object
      properties:
        uid:
          type: string
        name:
          type: string
        timezone:
          type: string
        slots:
          type: array
          items:
            type: object
            properties:
              on_sunday:
                type: boolean
              on_monday:
                type: boolean
              on_tuesday:
                type: boolean
              on_wednesday:
                type: boolean
              on_thursday:
                type: boolean
              on_friday:
                type: boolean
              on_saturday:
                type: boolean
              start_time:
                type: string
              end_time:
                type: string
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````