Create Audit Trail Log
An API that creates an audit trail upon receiving a request.
Request
POST /v1/auditlog HTTP/1.1
Host: audittrail-dev.api.mimiland.io
mm-user-id: 65326348d995b4f348456dce
mm-client-id: mml
Authorization: bearer v4.public.eyJhZC*****5xTtpdbQI
Content-Type: application/json
Content-Length: 102
{
"actionId" : 2,
"functionId" : 1,
"content" : "Edit coin value 40012 in tet event"
}const myHeaders = new Headers();
myHeaders.append("mm-user-id", "65326348d995b4f348456dce");
myHeaders.append("mm-client-id", "mml");
myHeaders.append("Authorization", "bearer v4.public.eyJhZC*****5xTtpdbQI");
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"actionId": 2,
"functionId": 1,
"content": "Edit coin value 40012 in tet event"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://audittrail-dev.api.mimiland.io/v1/auditlog", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));Parameter
Key
Type
Description
actionId *required
Int
Id of the action
functionId *required
Int
Id of the function
content Optional
String
Content of the audit trail
Last updated