Outline · Schema

Event

Knowledge BaseWikiDocumentsCollaborationOpen SourceTeam

Properties

Name Type Description
id string Unique identifier for the object.
name string
modelId string Identifier for the object this event is associated with when it is not one of document, collection, or user.
userId string Identifier for the user associated with the event, if any.
actorId string The user that performed the action.
actorIpAddress string The ip address the action was performed from. This field is only returned when the `auditLog` boolean is true.
collectionId string Identifier for the associated collection, if any
documentId string Identifier for the associated document, if any
createdAt string The date and time that this event was created
data object Additional unstructured data associated with the event
changes object The set of changes made by this event. This field is only returned when the `auditLog` boolean is true.
actor object
View JSON Schema on GitHub

JSON Schema

event.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Event",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the object.",
      "readOnly": true,
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "example": "documents.create",
      "readOnly": true
    },
    "modelId": {
      "type": "string",
      "description": "Identifier for the object this event is associated with when it is not one of document, collection, or user.",
      "format": "uuid",
      "readOnly": true
    },
    "userId": {
      "type": "string",
      "description": "Identifier for the user associated with the event, if any.",
      "format": "uuid",
      "readOnly": true
    },
    "actorId": {
      "type": "string",
      "description": "The user that performed the action.",
      "format": "uuid",
      "readOnly": true
    },
    "actorIpAddress": {
      "type": "string",
      "description": "The ip address the action was performed from. This field is only returned when the `auditLog` boolean is true.",
      "example": "60.169.88.100",
      "readOnly": true
    },
    "collectionId": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier for the associated collection, if any",
      "readOnly": true
    },
    "documentId": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier for the associated document, if any",
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "The date and time that this event was created",
      "readOnly": true,
      "format": "date-time"
    },
    "data": {
      "type": "object",
      "example": {
        "name": "Equipment list"
      },
      "description": "Additional unstructured data associated with the event",
      "readOnly": true
    },
    "changes": {
      "type": "object",
      "nullable": true,
      "description": "The set of changes made by this event. This field is only returned when the `auditLog` boolean is true.",
      "readOnly": true
    },
    "actor": {
      "$ref": "#/components/schemas/User"
    }
  }
}