POST
/
v1
/
post_mortem_templates
curl --request POST \
  --url https://api.rootly.com/v1/post_mortem_templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "post_mortem_templates",
    "attributes": {
      "name": "<string>",
      "default": true,
      "content": "<string>",
      "format": "html"
    }
  }
}'
{
  "data": {
    "id": "221ceb71-3ee8-4eac-bb8f-eaa4e37052a8",
    "type": "post_mortem_templates",
    "attributes": {
      "name": "My Retrospective Template",
      "default": false,
      "format": "markdown",
      "created_at": "2025-03-28T23:03:59.586-07:00",
      "updated_at": "2025-03-28T23:03:59.590-07:00",
      "content": "<div class=\"trix-content\">\n  <h2>Test template</h2>\n\n<h3>Test new line</h3>\n</div>\n"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
post_mortem_template created
data
object
required