Flag overnight blocks in the v2 schedule API

This commit is contained in:
NeilClack
2026-09-11 18:24:51 -05:00
parent 750a9286c9
commit 177b7bb13a
4 changed files with 55 additions and 15 deletions
+4 -2
View File
@@ -107,8 +107,10 @@ Authenticates with the paired `email` + `licenseKey` query parameters and
validates only that the key belongs to the account (not that the license is
active/entitled). Returns the user's Blocks with start/end times and the IDs of
the selected Proclamations (content is fetched separately via
`/api/v2/proclamations`). Rate limited to 10 requests per minute per IP.
Failure messages follow the existing v2 shape:
`/api/v2/proclamations`). Overnight blocks (end clock time before start) are
supported and flagged with `overnight: true` plus a wrapping `durationMinutes`.
Rate limited to 10 requests per minute per IP. Failure messages follow the
existing v2 shape:
`not-authorized` or `this key doesn't appear to belong to you`.
---