jobs

Auto-generate this week's plan for workspaces due right now

Cloudflare Cron callback. Must be scheduled hourly (0 * * * *), not weekly.

Each workspace picks its own planning weekday, hour, and timezone in its automation settings; this endpoint plans only the workspaces whose configured hour is the current one. An hourly tick is what turns a single global cron into per-workspace scheduling without a job queue — run it weekly and almost every workspace is skipped.

Authenticates with WORKER_SECRET. Auto-planning is opt-in per workspace and is idempotent: a workspace that already has a plan for the current week is skipped.

post/api/v1/jobs/plan-week

Request

  • Base URL: https://api.cadencz.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.cadencz.com/api/v1/jobs/plan-week
  • Auth: none declared

Response

Successful Response

status'ok' required
workspacesinteger required
plannedinteger required
skippedinteger required
failedinteger required

Example response

{
  "failed": 0,
  "planned": 4,
  "skipped": 8,
  "status": "ok",
  "workspaces": 12
}

Changes

No recorded changes to this operation across all 1 revision of this API.