---
title: "Update blocked time"
method: PATCH
path: "/blocked_times/{id}"
tags: ["Blocked Time Endpoints"]
---

# Update blocked time

`PATCH /blocked_times/{id}`

## Path parameters

- `id` integer, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `blocked_time` object
    - `room_id` integer
    - `start_at` string, date-time
    - `end_at` string, date-time
    - `reason` string

## Response `200`

Blocked time updated

- BlockedTime
  - `id` integer
  - `room_id` integer
  - `reason` string
  - `start_at` integer — Unix timestamp
  - `end_at` integer — Unix timestamp
  - `start_time` string — Format: YYYY-MM-DD HH:MM
  - `end_time` string — Format: YYYY-MM-DD HH:MM
  - `room` object
    - `id` integer
    - `name` string
    - `code` string

---

[API](https://skmtc.net/jammed-org/apis/jammed-bookings-api.md) · [All operations](https://skmtc.net/jammed-org/apis/jammed-bookings-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jammed-org/jammed-bookings-api/revisions/3fc6a6f91b06/schema)
