We've added a new endpoint to our public API that enables you to update incidents. You can use this to update the incident's name or summary, or set a custom field.
This might be useful to add extra context to an incident summary, or keep a custom field up-to-date based on some information in another system.
You can use the notify_incident_channel
parameter to decide whether or not responders in the incident channel should be notified of the change. We'll ignore any fields that you don't provide, so you can choose to update just the summary, or just the severity, without worrying about the rest of the payload.
You can get started with our API by reading our API documentation. We'd also love to hear what you're building in the #api channel in our Slack community!
To try this out for yourself:
# Update the incident summary
curl -i -X POST \
'https://api.incident.io/v2/incidents/${INCIDENT_ID}/actions/edit' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer ${TOKEN}' \
-d '{
"incident": {
"summary": "Look at me: I've updated the summary of the incident from the API."
},
"notify_incident_channel": true
}'
When you escalate via PagerDuty, we’ll now show you who you’re about to page. That helps confirm that you've chosen the correct service, and also makes sure you aren't about to inadvertendly page yourself (which I have definitely not done before).
incident-follow-up
) appear by default when exporting.