5 minutes to help shape OpenTodo. Anonymous, no account. Take the survey

Calendar frames API

Frames are the synced entity frame, personal like a rule: recurring background windows on the Day and Week grid such as "Deep work" on weekdays from 09:00 to 11:00.

Implementation notes

Frames (OpenSpec calendar-frames; guide: frames.md) are the synced entity frame, personal like a rule: recurring background windows on the Day and Week grid such as "Deep work" on weekdays from 09:00 to 11:00. Fields: title (content, encrypted for an encrypted account), weekdays (ISO weekdays as a sorted comma list, "1,2,3,4,5"; 1 is Monday, 7 Sunday), start and end (floating wall times HH:MM, end after start), color (hex), source (the planning source: "", project:<id>, label:<id> or view:<id>), from_date and until_date (optional first and last day, YYYY-MM-DD), position, created_at, deleted_at. Occurrences are derived on the device and never stored. Devices write frames through /api/v1/sync; the REST routes below add the checks.

GET /api/v1/frames

List frames · Token or session

{frames: [{id, title, weekdays, start, end, color, source, from_date, until_date, position, created_at, encrypted}]} in their order; encrypted is true when the title is ciphertext

Response 200
FieldTypeDescription
frames requiredarray of object

POST /api/v1/frames

Create a frame · Token or session

{title, weekdays, start?, end?, color?, source?, from_date?, until_date?, position?} → 201 frame (defaults 09:00 to 10:00, #64748b, no source); a 51st live frame answers 422 limit_reached

Request body
FieldTypeDescription
color requiredstring
end requiredstring
from_date requiredstring
position requiredstring
source requiredstring
start requiredstring
title requiredstring
until_date requiredstring
weekdays requiredstring
Response 201
FieldTypeDescription
encryptedboolean
id requiredstring

GET /api/v1/frames/{id}

Get a frame · Token or session

PATCH takes the same fields, checked against the merged frame → 200 frame; DELETE → 204 (a tombstone); an unknown or deleted id answers 404 not_found

Path parameters
FieldTypeDescription
id requiredstringpath
Response 200
FieldTypeDescription
encryptedboolean
id requiredstring

PATCH /api/v1/frames/{id}

Update a frame · Token or session

PATCH takes the same fields, checked against the merged frame → 200 frame; DELETE → 204 (a tombstone); an unknown or deleted id answers 404 not_found

Path parameters
FieldTypeDescription
id requiredstringpath
Request body
FieldTypeDescription
color requiredstring
end requiredstring
from_date requiredstring
position requiredstring
source requiredstring
start requiredstring
title requiredstring
until_date requiredstring
weekdays requiredstring
Response 200
FieldTypeDescription
encryptedboolean
id requiredstring

DELETE /api/v1/frames/{id}

Delete a frame · Token or session

PATCH takes the same fields, checked against the merged frame → 200 frame; DELETE → 204 (a tombstone); an unknown or deleted id answers 404 not_found

Path parameters
FieldTypeDescription
id requiredstringpath

Response 204: No content

This group in the HTTP API guide