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 URL | https://api.alertops.com/api/v2 |
| Authentication | api-key request header |
| Endpoints | 5 |
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v2/postmortem_fields | List postmortem fields |
| POST | /api/v2/postmortem_fields | Create 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).
| Field | Type | Required |
|---|---|---|
field_name | string | Optional |
required | boolean | Required |
active | boolean | Required |
sequence | integer | Required |
allow_ai_to_generate_content | boolean | Optional |
prompt_to_generate_ai_content | string | Optional |
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Postmortem 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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Postmortem Field ID or Postmortem Field Name |
Request body
JSON object (required).
| Field | Type | Required |
|---|---|---|
field_name | string | Optional |
required | boolean | Required |
active | boolean | Required |
sequence | integer | Required |
allow_ai_to_generate_content | boolean | Optional |
prompt_to_generate_ai_content | string | Optional |
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
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | Postmortem 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"