Create alert (resource)
documentedCreate an alert.
POST \/api\/resource\/alertsAlerts & Goalsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://www.rescuetime.com/api/resource/alerts' \
-X POST \
-H 'Authorization: Bearer {{RESCUETIME_API_KEY}}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"alert":{"name":"{{$title}}","alert_type":"{{$alert_type}}","threshold_minutes":{{$threshold_minutes}},"enabled":{{$enabled}}}}'