POST api/user/device

Request Information

URI Parameters

None.

Body Parameters

UserDevice
NameDescriptionTypeAdditional information
idUserDevice

integer

None.

idUser

integer

None.

deviceName

string

None.

identifierForVendor

string

None.

notifichePush

boolean

None.

androidPushToken

string

None.

iOSPushToken

string

None.

huaweiPushToken

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idUserDevice": 1,
  "idUser": 2,
  "deviceName": "sample string 3",
  "identifierForVendor": "sample string 4",
  "notifichePush": true,
  "androidPushToken": "sample string 6",
  "iOSPushToken": "sample string 7",
  "huaweiPushToken": "sample string 8"
}

application/xml, text/xml

Sample:
<UserDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inlinea.Astegiudiziarie.BL.User">
  <androidPushToken>sample string 6</androidPushToken>
  <deviceName>sample string 3</deviceName>
  <huaweiPushToken>sample string 8</huaweiPushToken>
  <iOSPushToken>sample string 7</iOSPushToken>
  <idUser>2</idUser>
  <idUserDevice>1</idUserDevice>
  <identifierForVendor>sample string 4</identifierForVendor>
  <notifichePush>true</notifichePush>
</UserDevice>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.