Add endpoint for MQTT device
This request allows the client application to create an MQTT endpoint in IMPACT DC.
Title | Add endpoint for MQTT device |
---|---|
URL | http://<Impact_URL>/m2m/endpoints |
Method | POST |
Content-Type | application/json |
URL Params |
The URL parameters are:
|
Data Params | msg:[string] - info/warning/error message |
Success Code |
Response Code: 200 |
Error Code |
403 Forbidden 401 Unauthorized 404 Not Found |
Sample Call | Curl:curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' -d { "serialNumber": "mqttdevice", "protocol": "MQTT", "groupName": "Nokia", "additionalParams": { "userName": "mqttuser", "password": "mqttpass" }} {"msg":"Device added successfully","code":3000} |