Events
Events document an action taken by a user in the system. They provide metadata about the action and a string representation suitable for display. You can list all events for a user or a file.
List all Events for a User
GET
https://ws-api.onehub.com/activity/
List all events for a user across all of their Workspaces.
Request Body
workspaces
array
The id of the Workspace(s) to list events for as an array of integers.
verbs
array
The action(s) taken in the events. Available verbs are create, upload, read, download, update, delete, and invite.
filter_self
boolean
Should the users' own events be removed? Defaults to false.
actor
integer
The id of the user to list events for.
start_time
string
The earliest time you would like to see events from. Timestamps should be specified in RFC-2822 format and will assume the same time zone as the requesting user.
end_time
string
The latest time you would like to see events from. Timestamps should be specified in RFC-2822 format and will assume the same time zone as the requesting user.
List all Events for a File
GET
https://ws-api.onehub.com/files/:id/audit_trail
Lists all events for the file specified via :id
. This resource is only available to users with a role of Moderator or above.
Path Parameters
:id
integer
The unique identifier of the file you would like to list events for.
Last updated