API Reference/Audit/Trail/Entitytype/Entityid

Get audit trail for specific entity

GET
/api/audit/trail/{entityType}/{entityId}
AuthorizationBearer <token>

In: header

Path Parameters

entityTypestring
entityIdstring
Format"uuid"

Response Body

curl -X GET "http://localhost:3000/api/audit/trail/string/497f6eca-6276-4993-bfeb-53cbbbba6f08"
fetch("http://localhost:3000/api/audit/trail/string/497f6eca-6276-4993-bfeb-53cbbbba6f08")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "http://localhost:3000/api/audit/trail/string/497f6eca-6276-4993-bfeb-53cbbbba6f08"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "http://localhost:3000/api/audit/trail/string/497f6eca-6276-4993-bfeb-53cbbbba6f08"

response = requests.request("GET", url)

print(response.text)
{
  "entityType": "string",
  "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
  "auditTrail": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",
      "entityType": "string",
      "entityId": "156e622c-6cdf-4c27-9bc9-2f2db69919f5",
      "action": "string",
      "oldValues": {},
      "newValues": {},
      "ipAddress": "string",
      "userAgent": "string",
      "timestamp": "2019-08-24T14:15:22Z"
    }
  ]
}