---
title: "PUT Weekly Availability"
method: PUT
path: "/employees/{user}/availabilities/weekly"
---

# PUT Weekly Availability

`PUT /employees/{user}/availabilities/weekly`

## Request

- Base URL: `https://www.humanity.com/api/v2`
- URL: `https://www.humanity.com/api/v2/employees/{user}/availabilities/weekly`
- Auth: API key in query parameter `access_token`

/employees/:user/availabilities/weekly
Permission level: 5

## Path parameters

- `user` integer, required

## Request body `application/x-www-form-urlencoded`

- object
  - `flag` integer, required: enum[1,2,3] 1: Unavailable, 2: Available, 3: Changed
  - `user` integer
  - `day` integer: enum[1,2,3,4,5,6,7]
  - `start_time` string: time
  - `end_time` string: time
  - `intervals` string: json {"date_id":["start_time_id", "end_time_id"]} Parameters "start_time_id" and "end_time_id" can take values from 1 to 96 (24 hours splitted into 15 min intervals)

## Response `200`

200

- object
  - `status` integer
  - `data` string
  - `error` unknown

## Other responses

- `400`: 400

## Changes

- **2026-11-03** `ffb87b44c733`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/humanity-com/apis/humanity/changes/employees/:user/availabilities/weekly/put.md)

---

[API](https://skmtc.dev/humanity-com/apis/humanity.md) - [All operations](https://skmtc.dev/humanity-com/apis/humanity/llms.txt) - [OpenAPI document](https://skmtc.dev/humanity-com/apis/humanity/revisions/ffb87b44c733?raw)
