---
title: "Update Calendar"
method: PUT
path: "/setup/v1/calendars/{id}"
tags: ["Calendars"]
---

# Update Calendar

`PUT /setup/v1/calendars/{id}`

Use this endpoint to **Update** a calendar object. A valid **calendar id** is required. When your company was created a calendar object was automatically created with 24-hour weekly availability. Its **name = Main**, the **type = resource** and by default the **interval = 30 mins**. We are currently supporting resource calendar type. Other types were part of our Legacy Application and has no relevance in the API product.

## Path parameters

- `id` string, required

## Request body

- ScheduleUpdateModel
  - `locationId` string, nullable
  - `name` string, nullable
  - `type` string, nullable
  - `interval` integer
  - `bookingsPerSlot` integer
  - `resourceGroupId` string, nullable
  - `availability` AvailabilityInputModel
    - `sun` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer
    - `mon` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer
    - `tue` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer
    - `wed` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer
    - `thu` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer
    - `fri` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer
    - `sat` WeekDayInputModel
      - `startTime` integer
      - `endTime` integer

## Response `200`

Success

- ScheduleViewModel
  - `object` string, nullable
  - `id` string, nullable
  - `locationId` string, nullable
  - `name` string, nullable
  - `type` string, nullable
  - `primary` boolean
  - `interval` integer
  - `bookingsPerSlot` integer
  - `resourceGroupId` string, nullable
  - `deletedStatus` boolean
  - `deletedTime` string, date-time, nullable
  - `availability` CalendarHoursViewModel
    - `mon` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `tue` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `wed` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `thu` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `fri` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `sat` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer
    - `sun` CalendarHourViewModel
      - `startTime` integer
      - `endTime` integer

---

[API](https://skmtc.net/onsched/apis/onsched-setup-api.md) · [All operations](https://skmtc.net/onsched/apis/onsched-setup-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onsched/onsched-setup-api/revisions/c5c023458a2f/schema)
