Gets a list of system logs
Changed onLists system logs, search and filters allow fine grained lists to be generated. * * Query parameters can be added to performed more fine grained filtering of the system logs, these are handled by the SystemLogFilters class which defines the methods available
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes
The number of records to return for each request, default is 20
The page number to return for this request (when performing pagination), default is 1
Order the list by choosing a column and direction. Each value uses the form column|asc or column|desc.
Single sort — for example sort=created_at|desc.
Multiple sorts — for example
sort[]=id|desc&sort[]=created_at|desc.
Log rows sort by columns exposed through SystemLogFilters. Unsupported keys are ignored.
[ "created_at|desc" ]
Headers
The API token to be used for authentication
Used to send the XMLHttpRequest header
Response
A list of system logs
Example response
{
"data": [
{
"id": "AS3df3A",
"user_id": "AS3df3A",
"client_id": "AS3df3A",
"event_id": 1,
"category_id": 1,
"type_id": 1,
"log": {},
"updated_at": "2",
"created_at": "2"
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 1,
"current_page": 1,
"total_pages": 1
}
}
}Changes
- info
added the new optional
queryrequest parametersort
- info
- info
added the new optional
queryrequest parameterpage - info
added the new optional
queryrequest parameterper_page - info
the response optional property
//became read-only for the status
- info