---
title: "PUT /api/tenants/{tenantId}/calendars/{calendarId}"
method: PUT
path: "/api/tenants/{tenantId}/calendars/{calendarId}"
tags: ["Calendars"]
---

# PUT /api/tenants/{tenantId}/calendars/{calendarId}

`PUT /api/tenants/{tenantId}/calendars/{calendarId}`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/docs/api/tenants/:tenantId/calendars/:calendarId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantId` integer, required
- `calendarId` string, required

## Request body

- Calendar
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `nameLocalizations` object, nullable
  - `cycleTimeUnit` 'Year' | 'SemiYear' | 'Quarter' | 'BiMonth' | 'CalendarMonth' | 'LunisolarMonth' | 'SemiMonth' | 'BiWeek' | 'Week', required
  - `periodTimeUnit` 'Year' | 'SemiYear' | 'Quarter' | 'BiMonth' | 'CalendarMonth' | 'LunisolarMonth' | 'SemiMonth' | 'BiWeek' | 'Week', required
  - `timeMap` 'Period' | 'Cycle'
  - `firstMonthOfYear` 'January' | 'February' | 'March' | 'April' | 'May' | 'June' | 'July' | 'August' | 'September' | 'October' | 'November' | 'December'
  - `periodDayCount` number, double, nullable
  - `yearWeekRule` 'FirstDay' | 'FirstFullWeek' | 'FirstFourDayWeek'
  - `firstDayOfWeek` 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'
  - `weekMode` 'Week' | 'WorkWeek'
  - `workMonday` boolean
  - `workTuesday` boolean
  - `workWednesday` boolean
  - `workThursday` boolean
  - `workFriday` boolean
  - `workSaturday` boolean
  - `workSunday` boolean
  - `attributes` object, nullable

## Response `200`

OK

- Calendar
  - `id` integer
  - `status` 'Active' | 'Inactive'
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required
  - `nameLocalizations` object, nullable
  - `cycleTimeUnit` 'Year' | 'SemiYear' | 'Quarter' | 'BiMonth' | 'CalendarMonth' | 'LunisolarMonth' | 'SemiMonth' | 'BiWeek' | 'Week', required
  - `periodTimeUnit` 'Year' | 'SemiYear' | 'Quarter' | 'BiMonth' | 'CalendarMonth' | 'LunisolarMonth' | 'SemiMonth' | 'BiWeek' | 'Week', required
  - `timeMap` 'Period' | 'Cycle'
  - `firstMonthOfYear` 'January' | 'February' | 'March' | 'April' | 'May' | 'June' | 'July' | 'August' | 'September' | 'October' | 'November' | 'December'
  - `periodDayCount` number, double, nullable
  - `yearWeekRule` 'FirstDay' | 'FirstFullWeek' | 'FirstFourDayWeek'
  - `firstDayOfWeek` 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'
  - `weekMode` 'Week' | 'WorkWeek'
  - `workMonday` boolean
  - `workTuesday` boolean
  - `workWednesday` boolean
  - `workThursday` boolean
  - `workFriday` boolean
  - `workSaturday` boolean
  - `workSunday` boolean
  - `attributes` object, nullable

## Other responses

- `404`: Not Found
- `422`: Unprocessable Content

## Changes

- **2026-03-09** `642427b60b7a`: 76 warning
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/addMethod/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/raiseMethod/methodImplementationFlags` response property for the response status `422`
  - added the new `8192.00` enum value to the `additionalProperties/errors/items/exception/targetSite/customAttributes/items/constructor/module/assembly/definedTypes/items/declaredEvents/items/removeMethod/methodImplementationFlags` response property for the response status `422`
  - …72 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/changes/api/tenants/:tenantId/calendars/:calendarId/put.md)

---

[API](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1.md) - [All operations](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/payroll-engine/apis/payroll-engine-backend-api-v1/revisions/7e8994a2c5bb?raw)
