POST api/UsersDevice

Request Information

URI Parameters

None.

Body Parameters

DeviceToSave
NameDescriptionTypeAdditional information
userID

integer

None.

platform

string

None.

deviceID

string

None.

ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "userID": 1,
  "platform": "sample string 2",
  "deviceID": "sample string 3",
  "ID": 4
}

application/xml, text/xml

Sample:
<DeviceToSave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ChatFidelity.Models">
  <ID>4</ID>
  <deviceID>sample string 3</deviceID>
  <platform>sample string 2</platform>
  <userID>1</userID>
</DeviceToSave>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>