Get paginated inventory diffs for a specific system. Supports filtering by severity, category, diff type, and date range.
Query parameters
-
Page number
Minimum value is
1. Default value is1. -
Items per page
Minimum value is
1, maximum value is100. Default value is20. -
Filter by severity level
Values are
low,medium,high, orcritical. -
Filter by change category
Values are
os,hardware,network,security,backup,features,modules,cluster,nodes, orsystem. -
Filter by diff type
Values are
create,update, ordelete. -
Filter diffs from this date (RFC3339 format)
-
Filter diffs up to this date (RFC3339 format)
GET
/systems/{id}/inventory/diffs
curl \
--request GET 'https://api.your-domain.com/api/systems/sys_123456789/inventory/diffs' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "inventory diffs retrieved successfully",
"data": {
"diffs": [
{
"id": 101,
"system_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"previous_id": 41,
"current_id": 42,
"diff_type": "update",
"field_path": "facts.distro.version",
"previous_value": "8.1.0",
"current_value": "8.2.0",
"severity": "high",
"category": "os",
"notification_sent": false,
"created_at": "2026-02-20T14:31:00Z"
}
],
"pagination": {
"page": 1,
"page_size": 20,
"total_count": 156,
"total_pages": 8,
"has_next": true,
"has_prev": false,
"next_page": 2,
"prev_page": 42,
"sort_by": "name",
"sort_direction": "asc"
}
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
Response examples (404)
{
"code": 400,
"message": "validation failed",
"data": {
"type": "validation_error",
"errors": [
{
"key": "username",
"message": "required",
"value": "string"
}
]
}
}