PUT api/ProductSubCategory/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ProductSubCategoryModels
NameDescriptionTypeAdditional information
PSC_Id

integer

None.

ProductCategorySpeedSearch

ProductCategorySpeedSearchModels

Required

PCS_SubCategory

string

Required

Max length: 50

PSC_DisplayOrder

integer

Required

PSC_UserId_FK

integer

None.

PSC_TS

date

None.

PSC_Inactive

character

None.

PSC_TS_LastEdited

date

None.

PSC_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PSC_Id": 1,
  "ProductCategorySpeedSearch": {
    "PC_Id": 1,
    "PC_Category": "sample string 2"
  },
  "PCS_SubCategory": "sample string 2",
  "PSC_DisplayOrder": 3,
  "PSC_UserId_FK": 4,
  "PSC_TS": "2019-05-26T18:53:50.2723949+05:30",
  "PSC_Inactive": "A",
  "PSC_TS_LastEdited": "2019-05-26T18:53:50.2723949+05:30",
  "PSC_TS_Edited_Uid_FK": 8
}

application/xml, text/xml

Sample:
<ProductSubCategoryModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <PCS_SubCategory>sample string 2</PCS_SubCategory>
  <PSC_DisplayOrder>3</PSC_DisplayOrder>
  <PSC_Id>1</PSC_Id>
  <PSC_Inactive>65</PSC_Inactive>
  <PSC_TS>2019-05-26T18:53:50.2723949+05:30</PSC_TS>
  <PSC_TS_Edited_Uid_FK>8</PSC_TS_Edited_Uid_FK>
  <PSC_TS_LastEdited>2019-05-26T18:53:50.2723949+05:30</PSC_TS_LastEdited>
  <PSC_UserId_FK>4</PSC_UserId_FK>
  <ProductCategorySpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:PC_Category>sample string 2</d2p1:PC_Category>
    <d2p1:PC_Id>1</d2p1:PC_Id>
  </ProductCategorySpeedSearch>
</ProductSubCategoryModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.