POST api/DeviceUser

Request Information

URI Parameters

None.

Body Parameters

DeviceUser
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

integer

None.

UserId

string

None.

IsOwner

boolean

None.

UserEmail

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": 2,
  "UserId": "sample string 3",
  "IsOwner": true,
  "UserEmail": "sample string 5"
}

application/xml, text/xml

Sample:
<DeviceUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CheapIdeas.Web.Models.Entities">
  <DeviceId>2</DeviceId>
  <Id>1</Id>
  <IsOwner>true</IsOwner>
  <UserEmail>sample string 5</UserEmail>
  <UserId>sample string 3</UserId>
</DeviceUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DeviceUser
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceId

integer

None.

UserId

string

None.

IsOwner

boolean

None.

UserEmail

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceId": 2,
  "UserId": "sample string 3",
  "IsOwner": true,
  "UserEmail": "sample string 5"
}

application/xml, text/xml

Sample:
<DeviceUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CheapIdeas.Web.Models.Entities">
  <DeviceId>2</DeviceId>
  <Id>1</Id>
  <IsOwner>true</IsOwner>
  <UserEmail>sample string 5</UserEmail>
  <UserId>sample string 3</UserId>
</DeviceUser>