PUT api/Users/RegisterDevice

Request Information

URI Parameters

None.

Body Parameters

LiteUserDevice
NameDescriptionTypeAdditional information
DeviceIdentifier

string

Required

String length: inclusive between 0 and 256

Id

integer

None.

NotificationHubToken

string

None.

Platform

byte

Required

PnsHandle

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceIdentifier": "sample string 1",
  "Id": 2,
  "NotificationHubToken": "sample string 3",
  "Platform": 64,
  "PnsHandle": "sample string 5"
}

application/xml, text/xml

Sample:
<LiteUserDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <DeviceIdentifier>sample string 1</DeviceIdentifier>
  <Id>2</Id>
  <NotificationHubToken>sample string 3</NotificationHubToken>
  <Platform>64</Platform>
  <PnsHandle>sample string 5</PnsHandle>
</LiteUserDevice>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.