GET /v1/activity-logs/

List Activity Log

Query parameters

  • page number

    Current page

  • pageSize number

    Number of items per page

  • selectAll boolean

    Determines if all items are selected

  • where object

    App\ActivityLog\Models\ActivityLog Filters: 0, 1, 2, 3

    Hide where attributes Show where attributes object
  • sort object

    App\ActivityLog\Models\ActivityLog Sorting by createdAt

    Hide sort attribute Show sort attribute object
    • createdAt string

      Values are asc or desc.

Responses

  • 200 application/json

    Paginated response

    Hide response attributes Show response attributes object
    • data array[object] Required

      Activity log entry schema

      Hide data attributes Show data attributes object
      • id string Required

        Activity log ID

      • companyId string Required

        Company ID

      • entityId string Required

        Entity ID

      • message string Required

        Message

      • activityType string Required

        Values are enrolment, trial, or waiting-list.

      • activityAction string

        Values are added, updated, or removed.

      • createdAt string(date-time) Required

        Created at date

    • pagination object Required

      Pagination schema

      Hide pagination attributes Show pagination attributes object
      • total integer Required

        Total number of items

      • count integer Required

        Number of items on this page

      • perPage integer

        Number of items per page

      • currentPage integer

        Current page number

      • totalPages integer

        Total number of pages

  • 403 application/json

    Not authorized

    Hide response attributes Show response attributes object

    Error schema

    • statusCode number Required

      Status Code

    • messages array[string] Required

      List of error messages

    • exception object

      Exception

GET /v1/activity-logs/
curl \
 --request GET 'https://localhost/v1/activity-logs/'
Response examples (200)
{
  "data": [
    {
      "id": "log_xxxxxxxxxxxxxxxxxxxxxxxxxx",
      "companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
      "entityId": "ent_123123123123",
      "message": "**Rob Watson** enrolled to 2 classes",
      "activityType": "enrolment",
      "activityAction": "added",
      "createdAt": "2024-06-12T09:39:49.000000Z"
    }
  ],
  "pagination": {
    "total": 15,
    "count": 10,
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 2
  }
}
Response examples (403)
{
  "statusCode": 42.0,
  "messages": [
    "string"
  ],
  "exception": {}
}