Add endpoint for HTTP device

This request allows the client application to create an HTTP endpoint in IMPACT IoT.

Add endpoint for HTTP device describes the API structure for adding an endpoint for HTTP device.

Table 1. Add endpoint for HTTP device
Title Add endpoint for HTTP device
URL http://<Impact_URL>/m2m/endpoints
Method POST
Content-Type application/json
URL Params

The URL parameters are:

  • IMSI: Specifies the IMSI of the device.

  • address: Specifies the MSISDN of the device.

  • groupName: Specifies the name of the group in IMPACT IoT to which the device registers.

  • Identifier:[string]: Specifies the name which uniquely identifies the device.

  • Protocol:[string]: Specifies the communication protocol of the device. For HTTP device, use HTTP.

  • serialNumber:[string]: Specifies the serial number of the device.

  • AdaptationLayerName:[string]: Specifies the name of adaptation layer on which device onboards. It is a mandatory parameter.

Data Params

msg:[string] : info/warning/error message

Success Code
Response Code: 200
Error Code
400 : Bad Request 
401 : Unauthorized 
404 : Not Found
Sample Call Curl:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json'  --header 'Authorization: Basic U3VtYTEyMzpTdW1hQDkzODE=' -d '{
  "additionalParams": {adaptationLayerName:bostoncamera},
  "address": "",
  "groupName": "DM.MFORM.MQTT",
  "identifier": "",
  "protocol": "HTTP",
  "serialNumber": "238965456"
}' 'http://mfussip02.mformation.com:9090/impact/m2m/endpoints'
Response Body:
{
"msg": "Device Added Successfully", "Code": 3000
}
Notes None