Creating a Device using an IoT application
Following table describes the API structure for adding an endpoint for a HTTP Device.
Parameters | Description |
---|---|
URL | http://<impact_hostname>:<port>/m2m/endpoints |
Method | POST |
Content-Type | application/json |
Parameters |
The parameters are:
|
Data Params |
msg:[string] : info/warning/error message |
Sample Call | Curl: Response
Body:
|
Success Code |
Response Code: 200 |
Error Code |
400 : Bad Request 401 : Unauthorized 404 : Not Found |
For the Application to populate the payload
, use the additionalParams parameter
in the Add Endpoint API. These parameters, both names and values will be sent to the
Adapter.
When this API is invoked, the Device is added to IMPACT in the Tenant as defined in the group ID, this an internal reference and may not be the Tenant that the Adapter is on-boarded to.