---
title: "Replace the opening hours grid"
method: PUT
path: "/v1/hours"
---

# Replace the opening hours grid

`PUT /v1/hours`

## Request

- Base URL: `https://api.octapi.app`
- URL: `https://api.octapi.app/v1/hours`
- Auth: HTTP bearer

## Request body

- object
  - `provider_id` string, uuid, nullable
  - `hours` object[], required
    - `weekday` integer, required
    - `opens_at` string, required
    - `closes_at` string, required

## Response `200`

Default Response

- object
  - `ok` true, required
  - `rows` number, required

---

[API](https://skmtc.dev/octapi/apis/octapi-api.md) · [All operations](https://skmtc.dev/octapi/apis/octapi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/octapi/apis/octapi-api/revisions/580afda787d2?raw)
