Skip to main content
POST
Create or update post-mortem template

Restrictions

Usage

  • Requires the On-call Pro license.
  • Omit template_id to create: team_id must name an existing team, and the server generates the template ID.
  • With template_id, the existing custom template is replaced; an unknown ID returns ResourceNotFound. Updating requires being an account owner or admin, or a member of the template’s team.
  • All text fields are replaced: an omitted description or content_markdown becomes empty. On update, team_id moves the template to that team; omit it or send 0 to keep the current team.
  • Built-in templates (post_mortem_default_tmpl_*) cannot be modified.
  • Every call is recorded in the account audit log. Don’t put secrets in request fields.

Authorizations

app_key
string
query
required

APP Key created in the Flashduty console under My → APP Key. Send it as the app_key query parameter or in the Fd-App-Key request header. Its effective access is the intersection of the key's permission scope and the creator's current role permissions. Keep it secret.

Body

application/json

Parameters for creating or updating a post-mortem template.

name
string
required

Template name shown in the console.

content
string
required

Template body as BlockNote editor JSON (an array of blocks), serialized as a string. New reports created from this template start from this body.

template_id
string

ID of the custom template to replace. Omit it to create a new template (the server generates the ID).

team_id
integer<int64>

Managing team ID. Required when creating; the team must exist. On update, a different team ID moves the template; omit it or send 0 to keep the current team.

description
string

Template description; empty when omitted.

content_markdown
string

Markdown version of the body, used as the outline when AI generates a report. Empty when omitted.

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object

Post-mortem report template.