Submit device log to Anedya platform
POST/v1/logs/submitLogs
Submit device logs to the platform. In single API request, you can submit max 100 log entries.
note
Each log entry can have a maximum of 1000 characters.
MQTT Topic
$anedya/device/{deviceid}/logs/submitLogs/json
Request
- application/json
Body
- Array [
- ]
reqId string
data object[]
Possible values: >= 1
, <= 100
timestamp integer
Unix epoch in millisecond format. Passing 0
in the timestamp will instruct platform to use current UTC time.
log string
Log entry. Max 1000 characters per entry
Responses
- 2XX
Success
- application/json
- Schema
- Example (from schema)
Schema
reqId string
success boolean
error string
errorcode integer
{
"reqId": "string",
"success": true,
"error": "string",
"errorcode": 0
}
Loading...