/systems/{id}/inventory/changes/latest - Get latest inventory changes

GET /systems/{id}/inventory/changes/latest

Get the most recent batch of inventory changes for a specific system

Path parameters

  • id string Required

    System ID

Responses

  • 200 application/json

    Latest inventory changes retrieved successfully. Returns null when no inventory is available (not an error condition).

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null

      Latest inventory changes data, or null if no inventory exists

  • 401 application/json

    Unauthorized - invalid or missing token

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
  • 403 application/json

    Forbidden - insufficient permissions

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data object | null
GET /systems/{id}/inventory/changes/latest
curl \
 --request GET 'https://api.your-domain.com/api/systems/sys_123456789/inventory/changes/latest' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "code": 200,
  "message": "latest inventory changes retrieved successfully",
  "data": {}
}
Response examples (401)
{
  "code": 401,
  "message": "invalid token",
  "data": {}
}
Response examples (403)
{
  "code": 403,
  "message": "insufficient permissions",
  "data": {}
}