POST Account/DeviceToken

Sets the device token.

Request Information

URI Parameters

None.

Body Parameters

The data.

DeviceTokenBindingModel
NameDescriptionTypeAdditional information
DonorId

DonorId in Aversys - Dont send for PCT

integer

None.

DeviceToken

Device Id

string

Required

OS

Operation System - iOS or Android

string

Required

Request Formats

application/json, text/json

Sample:
{
  "DonorId": 1,
  "DeviceToken": "sample string 1",
  "OS": "sample string 2"
}

application/xml, text/xml

Sample:
<DeviceTokenBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Avertest.Mobile.API.Models.Account">
  <DeviceToken>sample string 1</DeviceToken>
  <DonorId>1</DonorId>
  <OS>sample string 2</OS>
</DeviceTokenBindingModel>

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 'DeviceTokenBindingModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.