POST api/user/devices

Request Information

URI Parameters

None.

Body Parameters

UserDeviceRegisterRequestDTO
NameDescriptionTypeAdditional information
Platform

string

None.

PushToken

string

None.

DeviceIdentifier

string

None.

ClientType

integer

None.

AppVersion

string

None.

WebPushP256dh

string

None.

WebPushAuth

string

None.

Request Formats

application/json, text/json

Sample:
{
  "platform": "sample string 1",
  "pushToken": "sample string 2",
  "deviceIdentifier": "sample string 3",
  "clientType": 1,
  "appVersion": "sample string 4",
  "webPushP256dh": "sample string 5",
  "webPushAuth": "sample string 6"
}

application/xml, text/xml

Sample:
<UserDeviceRegisterRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <AppVersion>sample string 4</AppVersion>
  <ClientType>1</ClientType>
  <DeviceIdentifier>sample string 3</DeviceIdentifier>
  <Platform>sample string 1</Platform>
  <PushToken>sample string 2</PushToken>
  <WebPushAuth>sample string 6</WebPushAuth>
  <WebPushP256dh>sample string 5</WebPushP256dh>
</UserDeviceRegisterRequestDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserDeviceRegisterRequestDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.