POST devices
Creates a Device in the Environment of current API consumer.
Remarks
HTTP Status returned:
201 - Created The informed device has been successfully created in environment.
400 - Bad Request A device with the informed hardware identifier already exists.
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| deviceDto | Device data. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"alias": "MyDevice",
"groupId": 12345,
"hardwareId": "0123456789012345",
"platform": 0
}
Response Information
Operation result.
Response body formats
application/json, text/json
Sample:
{
"id": 1
}
Sample:
{
"versionId": 1,
"installType": 0,
"id": 1
}