POST api/device/v2/register
Request Information
URI Parameters
None.
Body Parameters
DeviceCredentialModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SerialNumber | string |
None. |
|
| MacAddress | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"SerialNumber": "sample string 1",
"MacAddress": "sample string 2"
}
application/xml, text/xml
Sample:
<DeviceCredentialModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Iot.Domain.Models.Credential"> <MacAddress>sample string 2</MacAddress> <SerialNumber>sample string 1</SerialNumber> </DeviceCredentialModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
DeviceSessionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SessionToken | string |
None. |
|
| DeviceId | integer |
None. |
|
| CreatedTimestampGmt | date |
None. |
|
| ExpiryTimestampGmt | date |
None. |
Response Formats
application/json, text/json
Sample:
{
"SessionToken": "sample string 1",
"DeviceId": 2,
"CreatedTimestampGmt": "2026-01-10T03:27:06.9541467+02:00",
"ExpiryTimestampGmt": "2026-01-10T03:27:06.9541467+02:00"
}
application/xml, text/xml
Sample:
<DeviceSessionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Iot.Domain.Models.Session"> <CreatedTimestampGmt>2026-01-10T03:27:06.9541467+02:00</CreatedTimestampGmt> <DeviceId>2</DeviceId> <ExpiryTimestampGmt>2026-01-10T03:27:06.9541467+02:00</ExpiryTimestampGmt> <SessionToken>sample string 1</SessionToken> </DeviceSessionModel>