Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config/_default/menus/api.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8971,6 +8971,19 @@ menu:
unstable:
- v2
order: 6
- name: Import an incident
url: '#import-an-incident'
identifier: incidents-import-an-incident
parent: incidents
generated: true
params:
versions:
- v2
operationids:
- ImportIncident
unstable:
- v2
order: 49
- name: Update an incident type
url: '#update-an-incident-type'
identifier: incidents-update-an-incident-type
Expand Down
229 changes: 229 additions & 0 deletions content/en/api/v2/incidents/examples.json

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions content/en/api/v2/incidents/request.ImportIncident.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"data": {
"type": "incidents",
"attributes": {
"declared": "2025-01-01T00:00:00Z",
"detected": "2025-01-01T00:00:00Z",
"fields": {
"severity": {
"value": "SEV-5"
},
"state": {
"value": "active"
}
},
"title": "Example-Incident",
"visibility": "organization"
}
}
}
7 changes: 7 additions & 0 deletions data/api/v2/CodeExamples.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,13 @@
"description": "Create incident notification template returns \"Created\" response"
}
],
"ImportIncident": [
{
"group": "incidents",
"suffix": "",
"description": "Import an incident returns \"CREATED\" response"
}
],
"UpdateIncidentIntegration": [
{
"group": "incidents",
Expand Down
Loading