Send Log Messages¶
Stores a single log message in the database. The request header must contain
Content-Type: application/x-www-form-urlencoded. The message must be
submitted as form data:
project id (
pid),sensor node id (
nid),ISO 8601 timestamp (
dt),OpenADMS Node module name (
module),log level (
level),message (
message).
The server returns 20O OK on success.
URL¶
/api/v1/logs/
Method¶
POST
Request Fields¶
Content-Type: application/x-www-form-urlencoded
Success Response¶
Request:
POSTRequest Fields:
Content-Type: application/x-www-form-urlencodedCode: 200 OK
Content: –
Error Response¶
Wrong Content-Type:
Request:
POSTRequest Fields:
Content-Type: application/jsonCode: 405 Method not allowed
Response Fields:
Content-Type: application/jsonContent:
{ "code": 405, "message": "Method not allowed." }