Forgejo API
POST/admin/cron/{task}

Run a cron task

Triggers a configured cron task by name. Supply task to select the task to execute. A successful response contains no body after the task has been triggered.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

1 parameter
taskstringrequired
The name of the configured cron task to trigger.

2 status codes
204Returns no content after the cron task has been triggered.
404Returned when no cron task exists with the supplied `task`.
errorsarray<string>optional
messagestringoptional
urlstringoptional

Error handling

A 404 is returned when no configured cron task matches the supplied task. task must identify the cron task you want to run.