Create incident
documentedCreate a new incident via REST API.
POST /incidentsIncidentsno 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://api.pagerduty.com/incidents" \
-X POST \
-H "Authorization: Token token={{PAGERDUTY_API_KEY}}" \
-H "Accept: application/vnd.pagerduty+json;version=2" \
-H "Content-Type: application/json" \
-H "From: {{$from_email}}" \
-d '{"incident": {"type": "incident", "title": "{{$title}}", "service": {"id": "{{$service_id}}", "type": "service_reference"}, "urgency": "{{$urgency}}", "body": {"details": "{{$details}}"}, "incident_key": "{{$incident_key}}"}}'