Attaches an external resource to an incident
cURL
curl --request POST \ --url https://api.incident.io/v1/incident_attachments \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "incident_id": "01FDAG4SAP5TYPT98WGR2N7W91", "resource": { "external_id": "123", "resource_type": "pager_duty_incident" } } '
{ "incident_attachment": { "id": "01FCNDV6P870EA6S7TK1DSYD5H", "incident_id": "01FCNDV6P870EA6S7TK1DSYD5H", "resource": { "external_id": "123", "permalink": "https://my.pagerduty.com/incidents/ABC", "resource_type": "pager_duty_incident", "title": "The database has gone down" } } }
API key from your incident.io dashboard (Settings → API keys)
ID of the incident to add an attachment to
"01FDAG4SAP5TYPT98WGR2N7W91"
Show child attributes
{ "external_id": "123", "resource_type": "pager_duty_incident"}
Created response.
Was this page helpful?
Contact support