---
title: "Create postmortem template"
method: POST
path: "/api/v2/incidents/config/postmortem-templates"
tags: ["Incidents"]
---

# Create postmortem template

`POST /api/v2/incidents/config/postmortem-templates`

Create a new postmortem template for incidents.

## Request body

- PostmortemTemplateRequest — Request body for creating or updating a postmortem template.
  - `data` PostmortemTemplateDataRequest, required — Data object for creating or updating a postmortem template.
    - `attributes` PostmortemTemplateAttributesRequest, required — Attributes for creating or updating a postmortem template.
      - `name` string, required — The name of the template
    - `type` 'postmortem_template', required — Postmortem template resource type

## Response `201`

Created

- PostmortemTemplateResponse — Response containing a single postmortem template.
  - `data` PostmortemTemplateDataResponse, required — Data object for a postmortem template returned in a response.
    - `attributes` PostmortemTemplateAttributesResponse, required — Attributes of a postmortem template returned in a response.
      - `createdAt` string, date-time, required — When the template was created
      - `modifiedAt` string, date-time, required — When the template was last modified
      - `name` string, required — The name of the template
    - `id` string, required — The ID of the template
    - `type` 'postmortem_template', required — Postmortem template resource type

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
