Databases
Get database row audit history.
ROLES: RESOURCE_READ,RESOURCE_WRITE,RESOURCE_ADMIN
GET
/
api
/
v1
/
databases
/
{databaseId}
/
audit
Get database row audit history.
curl --request GET \
--url https://api.revoengine.com/api/v1/databases/{databaseId}/audit \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revoengine.com/api/v1/databases/{databaseId}/audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/{databaseId}/audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"databaseAuditId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"databaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"databaseVersion": 123,
"operation": "INSERT",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operationId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"rowKey": {},
"previousRowKey": {},
"changedFields": [
"<string>"
],
"snapshot": {},
"changes": {}
}
],
"nextCursor": "<string>"
}Query Parameters
⌘I
Get database row audit history.
curl --request GET \
--url https://api.revoengine.com/api/v1/databases/{databaseId}/audit \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revoengine.com/api/v1/databases/{databaseId}/audit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/databases/{databaseId}/audit"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"databaseAuditId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"databaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"databaseVersion": 123,
"operation": "INSERT",
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operationId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"rowKey": {},
"previousRowKey": {},
"changedFields": [
"<string>"
],
"snapshot": {},
"changes": {}
}
],
"nextCursor": "<string>"
}
