Skip to content
  • There are no suggestions because the search field is empty.

Postmortem Fields API

The Postmortem Fields API allows you to define and manage the custom field schema used in alert and incident postmortem reports.

The Postmortem Fields API allows you to define and manage the custom field schema used in alert and incident postmortem reports.

Base URLhttps://api.alertops.com/api/v2
Authenticationapi-key request header
Endpoints5

Endpoints

MethodPathDescription
GET/api/v2/postmortem_fieldsList postmortem fields
POST/api/v2/postmortem_fieldsCreate a postmortem field
GET/api/v2/postmortem_fields/{id}Get a postmortem field
PUT/api/v2/postmortem_fields/{id}Update a postmortem field
DELETE/api/v2/postmortem_fields/{id}Delete a postmortem field

List postmortem fields

GET /api/v2/postmortem_fields

Responses

200 OK

[
  {
    "field_id": 524,
    "field_name": "Resolution",
    "active": true,
    "required": true,
    "sequence": 1
  }
]

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/postmortem_fields" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Create a postmortem field

POST /api/v2/postmortem_fields

Request body

JSON object (required).

FieldTypeRequired
field_namestringOptional
requiredbooleanRequired
activebooleanRequired
sequenceintegerRequired
allow_ai_to_generate_contentbooleanOptional
prompt_to_generate_ai_contentstringOptional

Example body

{
  "field_name": "string",
  "required": true,
  "active": true,
  "sequence": 0,
  "allow_ai_to_generate_content": true,
  "prompt_to_generate_ai_content": "string"
}

Responses

200 OK

401 Unauthorized · missing or invalid api-key

Example request

curl -X POST "https://api.alertops.com/api/v2/postmortem_fields" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"field_name":"string","required":true,"active":true,"sequence":0,"allow_ai_to_generate_content":true,"prompt_to_generate_ai_content":"string"}'

Get a postmortem field

GET /api/v2/postmortem_fields/{id}

Path parameters

NameTypeRequiredDescription
idstringRequiredPostmortem Field ID or Postmortem Field Name

Responses

200 OK

{
  "field_id": 524,
  "field_name": "Resolution",
  "active": true,
  "required": true,
  "sequence": 1
}

401 Unauthorized · missing or invalid api-key

Example request

curl -X GET "https://api.alertops.com/api/v2/postmortem_fields/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"

Update a postmortem field

PUT /api/v2/postmortem_fields/{id}

Path parameters

NameTypeRequiredDescription
idstringRequiredPostmortem Field ID or Postmortem Field Name

Request body

JSON object (required).

FieldTypeRequired
field_namestringOptional
requiredbooleanRequired
activebooleanRequired
sequenceintegerRequired
allow_ai_to_generate_contentbooleanOptional
prompt_to_generate_ai_contentstringOptional

Example body

{
  "field_name": "string",
  "required": true,
  "active": true,
  "sequence": 0,
  "allow_ai_to_generate_content": true,
  "prompt_to_generate_ai_content": "string"
}

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X PUT "https://api.alertops.com/api/v2/postmortem_fields/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"field_name":"string","required":true,"active":true,"sequence":0,"allow_ai_to_generate_content":true,"prompt_to_generate_ai_content":"string"}'

Delete a postmortem field

DELETE /api/v2/postmortem_fields/{id}

Path parameters

NameTypeRequiredDescription
idstringRequiredPostmortem Field ID or Postmortem Field Name

Responses

204 No Content · The request was processed successfully. No response body is returned.

401 Unauthorized · missing or invalid api-key

Example request

curl -X DELETE "https://api.alertops.com/api/v2/postmortem_fields/{id}" \
  -H "api-key: <YOUR_API_KEY>" \
  -H "Content-Type: application/json"