Skip to main content

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

Body

    reqId string
    data object[]

    Possible values: >= 1, <= 100

  • Array [
  • 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

Success

Schema
    reqId string
    success boolean
    error string
    errorcode integer
Loading...