POST api/users

Request Information

URI Parameters

None.

Body Parameters

user
NameDescriptionTypeAdditional information
id

integer

None.

userid

string

Required

partnerid

string

Required

downloadsize

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "userid": "sample string 2",
  "partnerid": "sample string 3",
  "downloadsize": 4
}

text/html

Sample:
{"id":1,"userid":"sample string 2","partnerid":"sample string 3","downloadsize":4}

application/xml, text/xml

Sample:
<user xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FileServiceAPI.Models">
  <downloadsize>4</downloadsize>
  <id>1</id>
  <partnerid>sample string 3</partnerid>
  <userid>sample string 2</userid>
</user>

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

Response Information

Resource Description

user
NameDescriptionTypeAdditional information
id

integer

None.

userid

string

Required

partnerid

string

Required

downloadsize

integer

Required

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "userid": "sample string 2",
  "partnerid": "sample string 3",
  "downloadsize": 4
}

text/html

Sample:
{"id":1,"userid":"sample string 2","partnerid":"sample string 3","downloadsize":4}

application/xml, text/xml

Sample:
<user xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FileServiceAPI.Models">
  <downloadsize>4</downloadsize>
  <id>1</id>
  <partnerid>sample string 3</partnerid>
  <userid>sample string 2</userid>
</user>