Search audit events.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Get, RequestUri = new Uri("https://example.com/api/workspace/admin/audit/events?includeSystem=false&page=1&pageSize=50"), Headers = { { "Authorization", "Bearer <token>" }, },};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/audit/events?includeSystem=false&page=1&pageSize=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/workspace/admin/audit/events?includeSystem=false&page=1&pageSize=50' \ --header 'Authorization: Bearer <token>'Requires the Admin role. Returns the newest events first. Record archive, restore and permanent delete events
carry the operation’s reason as the audit.data.reason data item and name records by type and ID only,
never by field values; they remain after a record is permanently deleted. To find them for one record, pass
objectType=MoltaroEntityInstance and its objectId; for one record type, pass
objectType=EntityDefinition and the definition ID. Both object parameters are required to filter.
Record rights still apply: for an existing record the caller may not read, the record is named by type and ID
only and the details of events about it (such as a reason, comment text or file names) are removed. For a
readable record, a stored name is shown only when it matches the name the caller sees from readable fields,
comment text needs Comments:View, file names need Attachments:View on a record the event names, a
File field file needs Field:Read on the field holding it and on its table field, and a lifecycle reason needs
ReadChangesHistory. Each named file is also judged by its stored owner, even when the event names no record. When the stored file no longer
determines its owner, a record the event names must allow reading all its files (attachments and every File
field); with no owner named either, the file name is hidden. Such events have RecordDataHidden set to true.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Acting user IDs; repeat the parameter for several users.
Include events performed by the system actor. With no user IDs, returns only system events.
Audit classifier IDs; each also matches its child classifiers. Repeat the parameter for several classifiers.
Type of an object the event names, such as MoltaroEntityInstance or EntityDefinition.
ID of that object; used only together with objectType.
First date to include, in the workspace time zone.
Last date to include (inclusive), in the workspace time zone.
One-based page number; values below 1 are treated as 1.
Items per page. The default is 50; zero or negative values use the default and values above 200 are capped.
Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Responses
Section titled “Responses”OK
object
Paged audit events list.
object
Audit events.
Audit event display model.
object
Audit event id.
Timestamp of the event (UTC).
Actor metadata for an audit event.
object
User identifier, if any.
Display name.
Email address when available.
True for system actions.
Classifier details for an audit event.
object
Classifier id.
Classifier code.
Display name.
Display path for the hierarchy.
Rendering type for the UI.
Short localized subject.
Optional localized description.
Object reference linked to an audit event.
object
Domain object type.
Domain object identifier.
Display name/title.
Affected object references.
Object reference linked to an audit event.
object
Domain object type.
Domain object identifier.
Display name/title.
Additional data entries.
Key/value payload entry for audit UI.
object
Localization key for the label.
Raw display value.
Optional localization key for the value.
True when record names or event details were hidden because the reader lacks access to an existing record the event names or whose file it names, or to the fields, comments, files or change history the hidden details came from, or because the owner of a named file can no longer be determined. Hidden record names show the record type and ID only.
Total matching events.
Current page.
Page size.
object
object
object
object
Example
{ "Data": { "Items": [ { "PrimaryObject": { "Role": 0 }, "AffectedObjects": [ { "Role": 0 } ] } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Paged audit events list.
object
Audit events.
Audit event display model.
object
Audit event id.
Timestamp of the event (UTC).
Actor metadata for an audit event.
object
User identifier, if any.
Display name.
Email address when available.
True for system actions.
Classifier details for an audit event.
object
Classifier id.
Classifier code.
Display name.
Display path for the hierarchy.
Rendering type for the UI.
Short localized subject.
Optional localized description.
Object reference linked to an audit event.
object
Domain object type.
Domain object identifier.
Display name/title.
Affected object references.
Object reference linked to an audit event.
object
Domain object type.
Domain object identifier.
Display name/title.
Additional data entries.
Key/value payload entry for audit UI.
object
Localization key for the label.
Raw display value.
Optional localization key for the value.
True when record names or event details were hidden because the reader lacks access to an existing record the event names or whose file it names, or to the fields, comments, files or change history the hidden details came from, or because the owner of a named file can no longer be determined. Hidden record names show the record type and ID only.
Total matching events.
Current page.
Page size.
object
object
object
object
Example
{ "Data": { "Items": [ { "PrimaryObject": { "Role": 0 }, "AffectedObjects": [ { "Role": 0 } ] } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}