Record health snapshot (POST)
POST
/cron/health-record
const url = 'https://example.com/api/cron/health-record';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/health-recordResponses
Section titled “ Responses ”Health recorded
Media type application/json
object
Missing or invalid CRON_SECRET