POST api/Devices/Post

Request Information

URI Parameters

None.

Body Parameters

Devices
NameDescriptionTypeAdditional information
device_id

integer

None.

user_id

string

None.

device_data

string

None.

device_model

string

None.

status

integer

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "device_id": 1,
  "user_id": "sample string 2",
  "device_data": "sample string 3",
  "device_model": "sample string 4",
  "status": 5
}

application/xml, text/xml

Sample:
<Devices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/circularAPI.Models">
  <device_data>sample string 3</device_data>
  <device_id>1</device_id>
  <device_model>sample string 4</device_model>
  <status>5</status>
  <user_id>sample string 2</user_id>
</Devices>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json, text/html

Sample:
1

application/xml, text/xml

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