---
title: "Replace weekly hours"
method: POST
path: "/api/v1/availability"
tags: ["account"]
---

# Replace weekly hours

`POST /api/v1/availability`

## Request

- Base URL: `https://meettempi.com`
- URL: `https://meettempi.com/api/v1/availability`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `tempi_session`

Replaces all your weekly hours. Each rule is one window on one weekday, in your time zone. Use several rules for a split day, such as 09:00-12:00 and 13:00-17:00. An empty list means you are never available, except on date overrides. Pass `timezone` to change your time zone too.

## Request body

- object
  - `rules` object[], required: an array of at most 50 item(s)
    - `weekday` 0 | 1 | 2 | 3 | 4 | 5 | 6, required: a weekday number, 0 = Sunday … 6 = Saturday
    - `start` string, required: a 24-hour time as HH:MM, or "24:00" for the end of the day
    - `end` string, required: a 24-hour time as HH:MM, or "24:00" for the end of the day
  - `timezone` string: an IANA time zone such as "America/New_York" (abbreviations like EST and offsets like UTC+8 work too)

## Response `201`

Success

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/meettempi/apis/tempi-api.md) · [All operations](https://skmtc.dev/meettempi/apis/tempi-api/llms.txt) · [OpenAPI document](https://skmtc.dev/meettempi/apis/tempi-api/revisions/36787210a2ce?raw)
