Logs

get
List all logs

https://app.1pilot.io/api/v1/logs
Request
Response
Request
Response
200: OK
{
"data": [
{
"id": 346,
"site_id": 1,
"category": "client",
"message": "Extension 1Pilot Client updated to 0.1.1",
"type": "updated_extension",
"created_at": "2018-03-06T11:10:27+00:00"
},
{
"id": 324,
"site_id": 3,
"category": "client",
"message": "Extension Blog installed",
"type": "new_extension",
"created_at": "2018-03-02T08:44:39+00:00"
},
{
"id": 277,
"site_id": 3,
"category": "client",
"message": "Extension User installed",
"type": "new_extension",
"created_at": "2018-02-28T08:15:38+00:00"
},
{
"id": 274,
"site_id": 1,
"category": "client",
"message": "Extension Download Manager updated to 1.0.1",
"type": "updated_extension",
"created_at": "2018-02-28T07:59:58+00:00"
},
{
"id": 272,
"site_id": 1,
"category": "client",
"message": "Update available for Download Manager actual 1.0.1 to 1.0.2",
"type": "update_extension_available",
"created_at": "2018-02-27T15:22:02+00:00"
}
],
"links": {
"first": "https://app.1pilot.io/api/v1/sites/1/logs?page=1",
"last": "https://app.1pilot.io/api/v1/sites/1/logs?page=4",
"prev": "https://app.1pilot.io/api/v1/sites/1/logs?page=1",
"next": "https://app.1pilot.io/api/v1/sites/1/logs?page=3"
},
"meta": {
"current_page": 2,
"from": 16,
"last_page": 4,
"path": "https://app.1pilot.io/api/v1/sites/1/logs",
"per_page": 15,
"to": 30,
"total": 53
}
}

get
List logs of one site

https://app.1pilot.io/api/v1/sites/:id/logs
Request
Response
Request
Path Parameters
id
required
integer
Site ID
Response
200: OK
{
"data": [
{
"id": 346,
"site_id": 1,
"category": "client",
"message": "Extension 1Pilot Client updated to 0.1.1",
"type": "updated_extension",
"created_at": "2018-03-06T11:10:27+00:00"
},
{
"id": 324,
"site_id": 1,
"category": "client",
"message": "Extension Blog installed",
"type": "new_extension",
"created_at": "2018-03-02T08:44:39+00:00"
},
{
"id": 277,
"site_id": 1,
"category": "client",
"message": "Extension User installed",
"type": "new_extension",
"created_at": "2018-02-28T08:15:38+00:00"
},
{
"id": 274,
"site_id": 1,
"category": "client",
"message": "Extension Download Manager updated to 1.0.1",
"type": "updated_extension",
"created_at": "2018-02-28T07:59:58+00:00"
},
{
"id": 272,
"site_id": 1,
"category": "client",
"message": "Update available for Download Manager actual 1.0.1 to 1.0.2",
"type": "update_extension_available",
"created_at": "2018-02-27T15:22:02+00:00"
}
],
"links": {
"first": "https://app.1pilot.io/api/v1/sites/1/logs?page=1",
"last": "https://app.1pilot.io/api/v1/sites/1/logs?page=4",
"prev": "https://app.1pilot.io/api/v1/sites/1/logs?page=1",
"next": "https://app.1pilot.io/api/v1/sites/1/logs?page=3"
},
"meta": {
"current_page": 2,
"from": 16,
"last_page": 4,
"path": "https://app.1pilot.io/api/v1/sites/1/logs",
"per_page": 15,
"to": 30,
"total": 53
}
}