Skip to main content
POST
/
v1
/
incident_attachments
Create
curl --request POST \
  --url https://api.incident.io/v1/incident_attachments \
  --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"
    }
  }
}

Body

application/json
incident_id
string
required

ID of the incident to add an attachment to

Example:

"01FDAG4SAP5TYPT98WGR2N7W91"

resource
object
required
Example:
{
"external_id": "123",
"resource_type": "pager_duty_incident"
}

Response

201 - application/json

Created response.

incident_attachment
object
required
Example:
{
"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"
}
}