v4

latestOpenAPI 3.1.02026-08-08221179273.1 KB
cron-tasks

Schedule Weekly Cron Tasks

Weekly cron job endpoint to schedule next_run_at for all weekly tasks. Should be called once per week (e.g., Sunday midnight UTC).

Queues a Celery task to:

  • Fetch all active weekly tasks
  • Calculate next_run_at based on user timezone + schedule_day + schedule_time
  • Update next_run_at in database

Requires x-api-key header for authentication.

post/api/cron-tasks/admin/schedule-weekly

Headers

x-api-keystring required

Response

Successful Response

{"stackTrail":"paths:/api/cron-tasks/admin/schedule-weekly:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}