Get Event Log Modifications

Returns modifications of an event log.

Request

HTTP Request

GET /node/api/event-log/modifications

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

  • Bash

  • JavaScript

  • NodeJS

  • Python

login=<...>
password=<...>
saymon_hostname=<...>
url=https://$saymon_hostname/node/api/event-log/modifications

curl -X GET $url -u $login:$password
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();
import requests

login = <...>
password = <...>
saymon_hostname = <...>
url = "https://" + saymon_hostname + "/node/api/event-log/modifications"

response = requests.request("GET", url, auth=(login, password))
print(response.text)

Response

[
    {
        "_id": "5784f726189aa0fc0912de24",
        "target": "5784f719343a6cb66ea02b1b",
        "body": {
            "assignee": "5784f5e3615e9ec46ec37832"
        }
    }
]