POST api/register/registerDevice
Request Information
URI Parameters
None.
Body Parameters
RegisterInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| apiSetting | ApiSettingInfo |
None. |
|
| deviceRegistration | DeviceRegistrationInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"apiSetting": {
"application": "sample string 1",
"apiKey": "sample string 2",
"hubName": "sample string 3"
},
"deviceRegistration": {
"id": 1,
"registrationId": "sample string 2",
"platform": 0,
"token": "sample string 3",
"removeOldToken": true,
"model": {
"id": 1,
"brand": "sample string 2",
"name": "sample string 3"
},
"tags": [
{
"id": 1,
"category": "sample string 2",
"value": "sample string 3"
},
{
"id": 1,
"category": "sample string 2",
"value": "sample string 3"
}
],
"createTime": "2026-11-27T05:24:55.9601216-05:00",
"updateTime": "2026-11-27T05:24:55.9601216-05:00",
"hubSettingInfo": {
"id": 1,
"hubName": "sample string 2",
"connectionString": "sample string 3",
"isDefault": true
}
}
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DeviceRegistrationInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| registrationId | string |
None. |
|
| platform | Platform |
None. |
|
| token | string |
None. |
|
| removeOldToken | boolean |
None. |
|
| model | ModelInfo |
None. |
|
| tags | Collection of TagInfo |
None. |
|
| createTime | date |
None. |
|
| updateTime | date |
None. |
|
| hubSettingInfo | HubSettingInfo |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"registrationId": "sample string 2",
"platform": 0,
"token": "sample string 3",
"removeOldToken": true,
"model": {
"id": 1,
"brand": "sample string 2",
"name": "sample string 3"
},
"tags": [
{
"id": 1,
"category": "sample string 2",
"value": "sample string 3"
},
{
"id": 1,
"category": "sample string 2",
"value": "sample string 3"
}
],
"createTime": "2026-11-27T05:24:56.0070488-05:00",
"updateTime": "2026-11-27T05:24:56.0070488-05:00",
"hubSettingInfo": {
"id": 1,
"hubName": "sample string 2",
"connectionString": "sample string 3",
"isDefault": true
}
}