POST api/category

Request Information

URI Parameters

None.

Body Parameters

Category
NameDescriptionTypeAdditional information
CategoryId

integer

None.

Account

Account

None.

CategoryName

string

None.

CategoryDescription

string

None.

CategoryImage

string

None.

CategoryActive

integer

None.

CategoryActiveDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "CategoryId": 1,
  "Account": {
    "AccountId": 1,
    "AccountName": "sample string 2",
    "AccountActive": 3,
    "AccountActiveDate": "2024-04-24T03:13:09.4914557-05:00"
  },
  "CategoryName": "sample string 2",
  "CategoryDescription": "sample string 3",
  "CategoryImage": "sample string 4",
  "CategoryActive": 5,
  "CategoryActiveDate": "2024-04-24T03:13:09.4914557-05:00"
}

text/html

Sample:
{"CategoryId":1,"Account":{"AccountId":1,"AccountName":"sample string 2","AccountActive":3,"AccountActiveDate":"2024-04-24T03:13:09.4914557-05:00"},"CategoryName":"sample string 2","CategoryDescription":"sample string 3","CategoryImage":"sample string 4","CategoryActive":5,"CategoryActiveDate":"2024-04-24T03:13:09.4914557-05:00"}

application/xml, text/xml

Sample:
<Category xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FeedFlowAPI.Models.Content">
  <Account xmlns:d2p1="http://schemas.datacontract.org/2004/07/FeedFlowAPI.Models.Permissions">
    <d2p1:AccountActive>3</d2p1:AccountActive>
    <d2p1:AccountActiveDate>2024-04-24T03:13:09.4914557-05:00</d2p1:AccountActiveDate>
    <d2p1:AccountId>1</d2p1:AccountId>
    <d2p1:AccountName>sample string 2</d2p1:AccountName>
  </Account>
  <CategoryActive>5</CategoryActive>
  <CategoryActiveDate>2024-04-24T03:13:09.4914557-05:00</CategoryActiveDate>
  <CategoryDescription>sample string 3</CategoryDescription>
  <CategoryId>1</CategoryId>
  <CategoryImage>sample string 4</CategoryImage>
  <CategoryName>sample string 2</CategoryName>
</Category>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.