PUT api/CMStockiestPricing/EditStockiestPricing/{pricingId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pricingId

integer

Required

Body Parameters

StockiestPricingForSavingModels
NameDescriptionTypeAdditional information
SP_Id

integer

None.

SP_SK_Id_FK

integer

None.

SP_Date

date

Required

SP_Note

string

Required

SP_Inactive

string

None.

SP_UserId_FK

integer

None.

SP_TS

date

None.

SP_TS_LastEdited

date

None.

SP_TS_Edited_Uid_FK

integer

None.

StockiestPricingDetails

Collection of StockiestPricingDetailsModels

None.

Request Formats

application/json, text/json

Sample:
{
  "SP_Id": 1,
  "SP_SK_Id_FK": 2,
  "SP_Date": "2024-04-18T12:48:26.8408217+05:30",
  "SP_Note": "sample string 4",
  "SP_Inactive": "sample string 5",
  "SP_UserId_FK": 6,
  "SP_TS": "2024-04-18T12:48:26.8413208+05:30",
  "SP_TS_LastEdited": "2024-04-18T12:48:26.8413208+05:30",
  "SP_TS_Edited_Uid_FK": 9,
  "StockiestPricingDetails": [
    {
      "SPD_Id": 1,
      "SPD_Price": 2.0,
      "SPD_SP_ID_FK": 3,
      "SPD_P_ID_FK": 4,
      "SPD_PA_Id_FK": 5,
      "SPD_CurrentPrice": 6.0,
      "SPD_MRP": 7.0,
      "SPD_Inactive": "sample string 8",
      "SPD_UserId_FK": 9,
      "SPD_TS": "2024-04-18T12:48:26.8428184+05:30",
      "SPD_TS_LastEdited": "2024-04-18T12:48:26.8428184+05:30",
      "SPD_TS_Edited_Uid_FK": 12
    },
    {
      "SPD_Id": 1,
      "SPD_Price": 2.0,
      "SPD_SP_ID_FK": 3,
      "SPD_P_ID_FK": 4,
      "SPD_PA_Id_FK": 5,
      "SPD_CurrentPrice": 6.0,
      "SPD_MRP": 7.0,
      "SPD_Inactive": "sample string 8",
      "SPD_UserId_FK": 9,
      "SPD_TS": "2024-04-18T12:48:26.8428184+05:30",
      "SPD_TS_LastEdited": "2024-04-18T12:48:26.8428184+05:30",
      "SPD_TS_Edited_Uid_FK": 12
    }
  ]
}

application/xml, text/xml

Sample:
<StockiestPricingForSavingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <SP_Date>2024-04-18T12:48:26.8408217+05:30</SP_Date>
  <SP_Id>1</SP_Id>
  <SP_Inactive>sample string 5</SP_Inactive>
  <SP_Note>sample string 4</SP_Note>
  <SP_SK_Id_FK>2</SP_SK_Id_FK>
  <SP_TS>2024-04-18T12:48:26.8413208+05:30</SP_TS>
  <SP_TS_Edited_Uid_FK>9</SP_TS_Edited_Uid_FK>
  <SP_TS_LastEdited>2024-04-18T12:48:26.8413208+05:30</SP_TS_LastEdited>
  <SP_UserId_FK>6</SP_UserId_FK>
  <StockiestPricingDetails>
    <StockiestPricingDetailsModels>
      <SPD_CurrentPrice>6</SPD_CurrentPrice>
      <SPD_Id>1</SPD_Id>
      <SPD_Inactive>sample string 8</SPD_Inactive>
      <SPD_MRP>7</SPD_MRP>
      <SPD_PA_Id_FK>5</SPD_PA_Id_FK>
      <SPD_P_ID_FK>4</SPD_P_ID_FK>
      <SPD_Price>2</SPD_Price>
      <SPD_SP_ID_FK>3</SPD_SP_ID_FK>
      <SPD_TS>2024-04-18T12:48:26.8428184+05:30</SPD_TS>
      <SPD_TS_Edited_Uid_FK>12</SPD_TS_Edited_Uid_FK>
      <SPD_TS_LastEdited>2024-04-18T12:48:26.8428184+05:30</SPD_TS_LastEdited>
      <SPD_UserId_FK>9</SPD_UserId_FK>
    </StockiestPricingDetailsModels>
    <StockiestPricingDetailsModels>
      <SPD_CurrentPrice>6</SPD_CurrentPrice>
      <SPD_Id>1</SPD_Id>
      <SPD_Inactive>sample string 8</SPD_Inactive>
      <SPD_MRP>7</SPD_MRP>
      <SPD_PA_Id_FK>5</SPD_PA_Id_FK>
      <SPD_P_ID_FK>4</SPD_P_ID_FK>
      <SPD_Price>2</SPD_Price>
      <SPD_SP_ID_FK>3</SPD_SP_ID_FK>
      <SPD_TS>2024-04-18T12:48:26.8428184+05:30</SPD_TS>
      <SPD_TS_Edited_Uid_FK>12</SPD_TS_Edited_Uid_FK>
      <SPD_TS_LastEdited>2024-04-18T12:48:26.8428184+05:30</SPD_TS_LastEdited>
      <SPD_UserId_FK>9</SPD_UserId_FK>
    </StockiestPricingDetailsModels>
  </StockiestPricingDetails>
</StockiestPricingForSavingModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.