You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: incidentRestAPI.yml
+32-24Lines changed: 32 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1089,12 +1089,12 @@ paths:
1089
1089
type: string
1090
1090
example: 'failure'
1091
1091
1092
-
/callback:
1092
+
/ receive updates about new or changed incidents:
1093
1093
post:
1094
-
summary: Notification via POST request
1095
-
description: Sends a POST request to the partner's callback URL when an incident changes containing the complete incident.
1094
+
summary: Receive info on new or changed incidents.
1095
+
description: Sends a POST request to an endpoint provided by the partnersystem containing the new or changed incident data.
1096
1096
requestBody:
1097
-
description: The incident data sent to the callback URL.
1097
+
description: The incident data sent to the endpoint provided to us by the partnersystem.
1098
1098
content:
1099
1099
application/json:
1100
1100
schema:
@@ -1118,33 +1118,41 @@ paths:
1118
1118
incident_id:
1119
1119
type: string
1120
1120
example: 'f806607f87a6f9d03efcec0000000000'
1121
+
action:
1122
+
type: string
1123
+
description: value describing what the causing action of the notification incidents. Possible values are 'new', 'update', 'worknote', 'comment', 'attachment', 'cancel'.
1124
+
example: 'new'
1121
1125
responses:
1122
1126
'200':
1123
-
description: Callback request description. Actual response handling is managed by the receiving system.
1127
+
description: Callback request description. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
1124
1128
'default':
1125
-
description: General response. Actual response handling is managed by the receiving system.
1129
+
description: General response. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
1126
1130
1127
-
get:
1128
-
summary: Notification via GET request
1129
-
description: Sends a GET request to the partner's callback URL with incidentId and callbackUrl as query parameters when an incident changes. This URL can be queried with GET to then receive the changed incident.
1130
-
parameters:
1131
-
- name: incidentId
1132
-
in: query
1133
-
description: The ID of the incident that changed.
1134
-
schema:
1135
-
type: string
1136
-
example: f806607f87a6f9d03efcec0000000000
1137
-
- name: callbackUrl
1138
-
in: query
1139
-
description: The readymade URL leading to the changed incident.
summary: Similar to the above method, but instead of the complete incident data, we only send a callback URL for you to GET.
1133
+
description: Sends a POST request to an endpoint provided by the partnersystem containing a callback URL, the partnersystem can use to get the incident data in their own time.
1134
+
requestBody:
1135
+
description: The incident data sent to the endpoint provided to us by the partnersystem.
1136
+
content:
1137
+
application/json:
1138
+
schema:
1139
+
incident_id:
1140
+
description: The ID of the incident that changed.
1141
+
type: string
1142
+
example: f806607f87a6f9d03efcec0000000000
1143
+
callbackUrl:
1144
+
description: The readymade URL leading to the changed incident.
description: value describing what the causing action of the notification incidents. Possible values are 'new', 'update', 'worknote', 'comment', 'attachment', 'cancel'.
1150
+
example: 'new'
1143
1151
responses:
1144
1152
'200':
1145
-
description: Callback request description. Actual response handling is managed by the receiving system.
1153
+
description: Callback request description. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
1146
1154
'default':
1147
-
description: General response. Actual response handling is managed by the receiving system.
1155
+
description: General response. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
0 commit comments