POST api/ProductCategory

Request Information

URI Parameters

None.

Body Parameters

ProductCategoryModels
NameDescriptionTypeAdditional information
PC_Id

integer

None.

PC_Category

string

Required

Max length: 50

PC_DisplayOrder

integer

Required

PC_UserId_FK

integer

None.

PC_TS

date

None.

PC_Inactive

character

None.

PC_TS_LastEdited

date

None.

PC_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PC_Id": 1,
  "PC_Category": "sample string 2",
  "PC_DisplayOrder": 3,
  "PC_UserId_FK": 4,
  "PC_TS": "2019-05-26T00:51:43.724103+05:30",
  "PC_Inactive": "A",
  "PC_TS_LastEdited": "2019-05-26T00:51:43.724103+05:30",
  "PC_TS_Edited_Uid_FK": 8
}

application/xml, text/xml

Sample:
<ProductCategoryModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <PC_Category>sample string 2</PC_Category>
  <PC_DisplayOrder>3</PC_DisplayOrder>
  <PC_Id>1</PC_Id>
  <PC_Inactive>65</PC_Inactive>
  <PC_TS>2019-05-26T00:51:43.724103+05:30</PC_TS>
  <PC_TS_Edited_Uid_FK>8</PC_TS_Edited_Uid_FK>
  <PC_TS_LastEdited>2019-05-26T00:51:43.724103+05:30</PC_TS_LastEdited>
  <PC_UserId_FK>4</PC_UserId_FK>
</ProductCategoryModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.