---
title: "POST Weekly Timeframe Availability"
method: POST
path: "/employees/{user}/availabilities/timeframeweekly"
---

# POST Weekly Timeframe Availability

`POST /employees/{user}/availabilities/timeframeweekly`

## Request

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

/employees/:user/availabilities/timeframeweekly
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
  - `intervals` string, required: 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)
  - `timestamp` string, date, required
  - `type` integer, required: enum[1,2,3,5,7,14,21,28]

## Response `200`

200

- object
  - `status` integer
  - `data` string
  - `token` 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/timeframeweekly/post.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)
