Sweep stale analysis jobs (POST)
POST
/cron/analysis-jobs
const url = 'https://example.com/api/cron/analysis-jobs';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/cron/analysis-jobsProtected by CRON_SECRET via x-cron-secret header.
Responses
Section titled “ Responses ”Sweep result
Media type application/json
object
ok
required
boolean
requeued
required
integer
failed
required
integer
Missing or invalid CRON_SECRET