Skip to content

Edit the body, move it through review, or change its owner.

PUT
/incident/{incident_id}/postmortem
curl --request PUT \
--url https://api.siteqwality.com/incident/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/postmortem \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "body": "example", "status": "draft", "owner_user_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'
incident_id
required
string format: uuid

Incident identifier

Media type application/json

PATCH semantics: an absent field is left unchanged.

object
body

Markdown, replacing the whole body.

string | null
status
One of:

published needs a resolved incident.

string
Allowed values: draft in_review published
owner_user_id

A member of the account; null clears it.

string | null format: uuid

Postmortem updated

Media type application/json
object
id
required
string format: uuid
incident_id
required
string format: uuid
status
required
string
Allowed values: draft in_review published
body
required

Markdown.

string
owner_user_id
string | null format: uuid
created_by_user_id

Null for API keys.

string | null format: uuid
created_at
required
string format: date-time
updated_at
required
string format: date-time
published_at

When it was last moved to published.

string | null format: date-time
Example
{
"status": "draft"
}

Body too long, or the owner is not a member of the account

Missing authentication

Missing incidents write scope

Incident not found, or it has no postmortem

Publishing before the incident is resolved

Invalid request body or unknown status

Internal server error