Uploading Logs

POST /v1/smart_capture/device/:deviceId/logs
DESCRIPTION: Push logs emitted by a registered device
URL parameters:

Parameter NameRequiredDescription
deviceIdRequiredID of the device to push logs for.

Body Parameters:

Parameter NameRequiredDescription
logsRequiredList of log objects to be uploaded

Log Object:

Parameter NameRequiredDescription
timestampRequiredDatetime string of the log entry
typeRequiredOne of INFO, WARN, or ERROR
log_infoRequiredJSON containing the message or any other metadata for the log
trigger_idOptionalThe trigger id if the log pertained to a trigger
offending_fieldOptionalThe state key if the log pertained to a particular field from the state object
offending_valueOptionalThe state value if the log pertained to a particular value from the state object

Did this page help you?