Skip to main content
GET
/
audit-event
/
{id}
Python (SDK)
from meitner import Meitner, models
import os


with Meitner(
    security=models.Security(
        client_credentials=os.getenv("MEITNER_CLIENT_CREDENTIALS", ""),
        client_secret=os.getenv("MEITNER_CLIENT_SECRET", ""),
    ),
) as m_client:

    res = m_client.audit_events.get(id="123e4567-e89b-12d3-a456-426614174000")

    # Handle response
    print(res)
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "meta": {
    "createdAt": "2024-01-15T10:30:00Z",
    "createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
    "updatedAt": "2024-01-15T14:45:00Z",
    "updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
  },
  "timestamp": "2024-08-01T00:00:00Z",
  "resource": "Student",
  "resourceID": "123e4567-e89b-12d3-a456-426614174000",
  "type": "Delete"
}

Authorizations

Client-ID
string
header
required
Client-Secret
string
header
required

Path Parameters

id
string<uuid>
required

The unique identifier of the AuditEvent to retrieve

Response

Response for AuditEvent Get operation - returns the requested AuditEvent

AuditEvent holds the information about an audit event.

id
string<uuid>
required

Unique identifier for the AuditEvent

timestamp
string<date-time>
required

The timestamp of the event

resource
enum<string>
required

The type of resource the event occured for

Available options:
Group,
Guardian,
Employee,
EmployeePlacement,
Student,
StudentPlacement
Example:

"Student"

resourceID
string<uuid>
required

The ID of the resource the event belongs to

type
enum<string>
required

The type of the audit event

Available options:
Delete
Example:

"Delete"

meta
object

Metadata information for the AuditEvent

Example:
{
  "createdAt": "2024-01-15T10:30:00Z",
  "createdBy": "987fcdeb-51a2-43d1-b567-123456789abc",
  "updatedAt": "2024-01-15T14:45:00Z",
  "updatedBy": "987fcdeb-51a2-43d1-b567-123456789abc"
}