Save my availability
/api/availability/mineReplaces the signed-in person's whole week with the hours sent: at most 168, one for each hour at most, each free or ifNeeded, with the IANA time zone they are in. Days count from Monday as 0, hours from 0 to 23 on the person's own clock. Only the caller's own week is ever changed.
Needs the EnterAvailability permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/availability/mine" \ -H "Content-Type: application/json" \ -d '{ "timeZone": null, "cells": null }'{ "timeZone": null, "cells": [ { "day": 0, "hour": 0, "state": "string" } ], "savedAt": null}Get my availability GET
The signed-in person's own week: the time zone it is in and the hours they are free or free if needed. An hour that is not listed is not free. Days count from Monday as 0. Needs the `EnterAvailability` permission.
Get the team's availability GET
Everyone who may enter availability and whose account is neither disabled nor deleted: name, role names, the time zone their week is in and the hours they are free or free if needed, each on that person's own clock. Someone who has saved nothing has no zone and no hours. Needs the `ViewAvailability` permission.