Get Event Log Modifications
Returns modifications of an event log.
Request
HTTP Request
Path parameters
No parameters required.
Request body
The request body is empty.
Response
Returns all modifications to the event log records. Each modification contains the following fields:
Field | Type | Description |
---|---|---|
_id | String | ID of the modification. |
target | String | ID of the event log entry that was modified. |
body | String | Body of the event log modification. |
body.assignee | String | ID of the user who was assigned to the event. See the Assign Event Log Record to User for more information. |
body.payload | String | See the Update Event Log Record Payload for more information. |
skip | String | The index of the entry in the current log. |
Example
Request
let login = <...>
let password = <...>
let saymonHostname = <...>
let path = "/node/api/event-log/modifications";
let auth = "Basic " + btoa(login + ":" + password);
let headers = new Headers();
headers.append("Authorization", auth);
let requestOptions = {
method: "GET",
headers: headers
};
fetch(saymonHostname + path, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log("error", error));
const http = require("http");
let login = <...>
let password = <...>
let saymonHostname = <...>
let path = "/node/api/event-log/modifications";
let auth = "Basic " + Buffer.from(login + ":" + password).toString("base64");
let options = {
"method": "GET",
"hostname": saymonHostname,
"headers": {
"Authorization": auth
},
"path": path
};
let req = http.request(options, function (res) {
let chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();