Create incident
documentedCreate a new incident with responders and details.
POST /v1/incidents/createIncidentsno 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.opsgenie.com/v1/incidents/create" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: GenieKey {{OPSGENIE_API_KEY}}" \
-d '{"message":"{{$message}}","description":"{{$description}}","responders":[{"id":"{{$responder_id}}","type":"team"},{"name":"{{$responder_name}}","type":"team"}],"tags":["{{$tag1}}","{{$tag2}}"],"details":{"{{$detail_key}}":"{{$detail_value}}"},"priority":"{{$priority}}","impactedServices":["{{$impacted_service_id}}"],"statusPageEntry":{"title":"{{$status_page_title}}","detail":"{{$status_page_detail}}"},"notifyStakeholders":{{$notify_stakeholders}}}'