---
title: "Update the opening hours of a (charge) site"
method: PUT
path: "/api/v1/sites/{siteId}/opening-hours"
tags: ["Sites"]
---

# Update the opening hours of a (charge) site

`PUT /api/v1/sites/{siteId}/opening-hours`

Required scope: `charge-points:write` </br>Organization authorization: `supported`

## Path parameters

- `siteId` integer, required

## Request body

- OpeningHoursRequest
  - `openingTimes` OpeningTimesRequest
    - `twentyFourSeven` boolean, nullable — Is the location open 24/7?
    - `regularHours` RegularHoursRequest[], nullable — List of regular weekly opening hours
      - `weekday` integer — Day of the week, from Monday (1) to Sunday (7)
      - `periodBegin` string, required — Period begin in HH:mm format
      - `periodEnd` string, required — Period end in HH:mm format
    - `exceptionalOpenings` ExceptionalPeriodRequest[], nullable — List of exceptional opening periods
      - `periodBegin` string, required — Period begin in ISO 8601 datetime format
      - `periodEnd` string, required — Period end in ISO 8601 datetime format
    - `exceptionalClosings` ExceptionalPeriodRequest[], nullable — List of exceptional closing periods
      - `periodBegin` string, required — Period begin in ISO 8601 datetime format
      - `periodEnd` string, required — Period end in ISO 8601 datetime format
  - `chargingWhenClosed` boolean, nullable — Indicates if charging is allowed when closed

## Response `200`

Opening hours updated

- OpeningHour
  - `openingTimes` Hours
    - `twentyFourSeven` boolean, nullable — Is the location open 24/7?
    - `regularHours` RegularHours
      - `weekday` integer — Number of day in the week, from Monday (1) till Sunday (7)
      - `periodBegin` string, required — Period begin in HH:mm format (e.g. 08:00)
      - `periodEnd` string, required — Period end in HH:mm format (e.g. 17:00 or 00:00 for end of day)
    - `exceptionalOpenings` ExceptionalPeriod
      - `periodBegin` string, required — Exceptional period begin in HH:mm format (e.g. 08:00)
      - `periodEnd` string, required — Exceptional period end in HH:mm format (e.g. 17:00 or 00:00 for end of day)
    - `exceptionalClosings` ExceptionalPeriod
      - `periodBegin` string, required — Exceptional period begin in HH:mm format (e.g. 08:00)
      - `periodEnd` string, required — Exceptional period end in HH:mm format (e.g. 17:00 or 00:00 for end of day)
  - `chargingWhenClosed` boolean, nullable — Indicates if charging is allowed when closed

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/versions/517e18f11015/schema)
