---
title: "Update an availability period"
method: PATCH
path: "/availability-periods/{id}"
tags: ["Availability Periods"]
---

# Update an availability period

`PATCH /availability-periods/{id}`

## Request

- Base URL: `https://www.ruddr.io/api/workspace`
- URL: `https://www.ruddr.io/api/workspace/availability-periods/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `hoursPerDay` number[]: A list of available hours for each day of the week. The array must contain exactly 7 elements. The first value represents Monday. Each value must be between 0 and 24.
  - `start` string, date: The start date for the period. Must be in the form YYYY-MM-DD.

## Response `200`

200

- AvailabilityPeriod
  - `hoursPerDay` number[]: A list of available hours for each day of the week. The array size is always 7. The first value represents Monday.
  - `id` string: The unique identifier for the object.
  - `start` string, date: The start date for the period. Will be in the form YYYY-MM-DD.
  - `createdAt` string, date-time: The timestamp when the object was created.
  - `isDefault` boolean: Whether this is the default availability period for the member.
  - `end` string, date, nullable: The end date for the period. Will be in the form YYYY-MM-DD. `null` if the period has no end date.

## Other responses

- `400`: 400
- `409`: 409

---

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