SAYMON REST API
Search…
SAYMON REST API
General
Methods
Agents [WIP]
Authentication
Bulks [?]
Classes
Configuration
Dictionaries [?]
Event Log
Flows
History Annotations
Incidents
Acknowledge Incident
Add Comment For Incident
Get All Incidents
Get Incident by ID
Get Incidents History
Get Number Of Active Incidents
Unacknowledge Incident
Incident Levels
Jobs
Limits
Links
Metric Tokens [?]
MQTT
Notification Templates [?]
Objects
Operations
Presets
Properties
References
Reports [?]
Scripts
Service
Stat
Stat Rules
State History
States
Tags
Users
User Groups
Models
Misc
Powered By
GitBook
Unacknowledge Incident
POST /node/api/incidents/:id/unacknowledge
Undoes an acknowledgment of an incident with the specified ID.
Request parameters
Path parameters
Parameter
Type
Description
id
string
required
The ID of an incident whose acknowledgment should be undone.
Response description
The response body is empty.
Request examples
Bash
JavaScript
NodeJS
Python
1
login
=<
..
.
>
2
password
=<
..
.
>
3
saymon_hostname
=<
..
.
>
4
incident_id
=<
..
.
>
5
url
=
https://
$saymon_hostname
/node/api/incidents/
$incident_id
/unacknowledge
6
​
7
curl
-X POST
$url
-u
$login
:
$password
Copied!
1
let
login
=
<...>
2
let
password
=
<...>
3
let
saymonHostname
=
<...>
4
let
incidentId
=
<...>
5
let
path
=
"/node/api/incidents/"
+
incidentId
+
"/unacknowledge"
;
6
let
auth
=
"Basic "
+
btoa
(
login
+
":"
+
password
);
7
​
8
let
headers
=
new
Headers
();
9
headers
.
append
(
"Authorization"
,
auth
);
10
​
11
let
requestOptions
=
{
12
method
:
"POST"
,
13
headers
:
headers
14
};
15
​
16
fetch
(
saymonHostname
+
path
,
requestOptions
)
17
.
then
(
response
=>
response
.
text
())
18
.
then
(
result
=>
console
.
log
(
result
))
19
.
catch
(
error
=>
console
.
log
(
"error"
,
error
));
Copied!
1
const
http
=
require
(
"http"
);
2
​
3
let
login
=
<...>
4
let
password
=
<...>
5
let
saymonHostname
=
<...>
6
let
incidentId
=
<...>
7
let
path
=
"/node/api/incidents/"
+
incidentId
+
"/unacknowledge"
;
8
let
auth
=
"Basic "
+
Buffer
.
from
(
login
+
":"
+
password
).
toString
(
"base64"
);
9
​
10
let
options
=
{
11
"method"
:
"POST"
,
12
"hostname"
:
saymonHostname
,
13
"headers"
:
{
14
"Authorization"
:
auth
15
},
16
"path"
:
path
17
};
18
​
19
let
req
=
http
.
request
(
options
,
function
(
res
)
{
20
let
chunks
=
[];
21
​
22
res
.
on
(
"data"
,
function
(
chunk
)
{
23
chunks
.
push
(
chunk
);
24
});
25
​
26
res
.
on
(
"end"
,
function
(
chunk
)
{
27
let
body
=
Buffer
.
concat
(
chunks
);
28
console
.
log
(
body
.
toString
());
29
});
30
​
31
res
.
on
(
"error"
,
function
(
error
)
{
32
console
.
error
(
error
);
33
});
34
});
35
​
36
req
.
end
();
Copied!
1
import
requests
2
​
3
login
=
<
...
>
4
password
=
<
...
>
5
saymon_hostname
=
<
...
>
6
incident_id
=
<
...
>
7
url
=
"https://"
+
saymon_hostname
+
"/node/api/incidents/"
+
\
8
incident_id
+
"/unacknowledge"
9
​
10
response
=
requests
.
request
(
"POST"
,
url
,
auth
=
(
login
,
password
))
11
print
(
response
.
text
)
Copied!
Previous
Get Number Of Active Incidents
Next
Incident Levels
Last modified
2yr ago
Copy link
Contents
POST /node/api/incidents/:id/unacknowledge
Request parameters
Path parameters
Response description
Request examples