Entity History
Replay one entity’s delta chain into the document as it stood at at. With at omitted
the result should equal the live document; a mismatch means something wrote past the log.
GET
/api/v1/audit-logs/{entity_type}/{entity_id}/historyAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredPath parameters
entity_typestringrequiredentity_idstringrequiredQuery parameters
atstring<date-time> | anyReconstruct as of this moment; omit for now
Responses
200Successful Response
successbooleandefault: true
dataEntityHistory | anyShow propertiesHide properties
Any of:
EntityHistory
entity_typestringrequiredentity_idstringrequiredrowsintegerrequireddocumentobject | anyrequiredShow propertiesHide properties
Any of:
object
objectany
anyany
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X GET "/api/v1/audit-logs/string/string/history" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/api/v1/audit-logs/string/string/history", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/api/v1/audit-logs/string/string/history",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"data": {
"entity_type": "string",
"entity_id": "string",
"rows": 0,
"document": {}
},
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}