POST Categories/Add

Request Information

URI Parameters

None.

Body Parameters

Categories
NameDescriptionTypeAdditional information
id

integer

None.

CategoryName

string

None.

todaysNeed

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "CategoryName": "sample string 2",
  "todaysNeed": 1
}

text/html

Sample:
{"id":1,"CategoryName":"sample string 2","todaysNeed":1}

application/xml, text/xml

Sample:
<Categories xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NivendWebApi">
  <CategoryName>sample string 2</CategoryName>
  <id>1</id>
  <todaysNeed>1</todaysNeed>
</Categories>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MResult
NameDescriptionTypeAdditional information
Result

boolean

None.

Data

Object

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": true,
  "Data": {},
  "Message": "sample string 3"
}

text/html

Sample:
{"Result":true,"Data":{},"Message":"sample string 3"}

application/xml, text/xml

Sample:
<MResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NivendWebApi.Models">
  <Data />
  <Message>sample string 3</Message>
  <Result>true</Result>
</MResult>