v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Incidents

Create incident attachment

Create an incident attachment.

post/api/v2/incidents/{incident_id}/attachments

Path parameters

incident_idstring required

The UUID of the incident.

Query parameters

includestring
Example:last_modified_by_user

Resource to include in the response. Supported value: last_modified_by_user.

Request body

Example request

{
  "data": {
    "attributes": {
      "attachment": {
        "documentUrl": "https://app.datadoghq.com/notebook/123/Postmortem-IR-123",
        "title": "Postmortem-IR-123"
      },
      "attachment_type": "postmortem"
    },
    "type": "incident_attachments"
  }
}

Response

Created

Example response

{
  "data": {
    "attributes": {
      "attachment": {
        "documentUrl": "https://app.datadoghq.com/notebook/123/Postmortem-IR-123",
        "title": "Postmortem IR-123"
      },
      "attachment_type": "postmortem",
      "modified": "2025-01-01T01:01:01.000000001Z"
    },
    "id": "00000000-abcd-0002-0000-000000000000",
    "relationships": {
      "incident": {
        "data": {
          "id": "00000000-0000-0000-1234-000000000000",
          "type": "incidents"
        }
      },
      "last_modified_by_user": {
        "data": {
          "id": "00000000-0000-0000-2345-000000000000",
          "type": "users"
        }
      }
    },
    "type": "incident_attachments"
  },
  "included": [
    {
      "type": "users"
    }
  ]
}