PUT api/StockiestStockScrap/Update/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

StockiestStockScrapModels
NameDescriptionTypeAdditional information
SSR_Id

integer

None.

SSR_Code

string

Max length: 10

SSR_Date

date

Required

SSR_Note

string

Required

Max length: 100

SSR_UserId_FK

integer

None.

SSR_TS

date

None.

SSR_Inactive

string

None.

SSR_TS_LastEdited

integer

None.

SSR_TS_Edited_Uid_FK

date

None.

Mode

string

Required

IsHidden

boolean

None.

StockiestStockReconcileDetails

Collection of StockiestStockScrapDetailsModels

Required

Request Formats

application/json, text/json

Sample:
{
  "SSR_Id": 1,
  "SSR_Code": "sample string 2",
  "SSR_Date": "2019-10-23T03:51:46.2535257+05:30",
  "SSR_Note": "sample string 4",
  "SSR_UserId_FK": 5,
  "SSR_TS": "2019-10-23T03:51:46.2535257+05:30",
  "SSR_Inactive": "sample string 7",
  "SSR_TS_LastEdited": 8,
  "SSR_TS_Edited_Uid_FK": "2019-10-23T03:51:46.2535257+05:30",
  "Mode": "sample string 10",
  "IsHidden": true,
  "StockiestStockReconcileDetails": [
    {
      "SSRD_Id": 1,
      "SSRD_SSR_Id_FK": 2,
      "SSRD_P_Id_FK": 3,
      "SSRD_PA_Id_FK": 4,
      "SSRD_StockOnDate": 5.0,
      "SSRD_ReconsileStock": 6.0,
      "SSRD_Note": "sample string 7",
      "SSRD_UserId_FK": 8,
      "SSRD_TS": "2019-10-23T03:51:46.2535257+05:30",
      "SSRD_Inactive": "A",
      "SSRD_TS_LastEdited": "2019-10-23T03:51:46.2535257+05:30",
      "SSRD_TS_Edited_Uid_FK": 12
    },
    {
      "SSRD_Id": 1,
      "SSRD_SSR_Id_FK": 2,
      "SSRD_P_Id_FK": 3,
      "SSRD_PA_Id_FK": 4,
      "SSRD_StockOnDate": 5.0,
      "SSRD_ReconsileStock": 6.0,
      "SSRD_Note": "sample string 7",
      "SSRD_UserId_FK": 8,
      "SSRD_TS": "2019-10-23T03:51:46.2535257+05:30",
      "SSRD_Inactive": "A",
      "SSRD_TS_LastEdited": "2019-10-23T03:51:46.2535257+05:30",
      "SSRD_TS_Edited_Uid_FK": 12
    }
  ]
}

application/xml, text/xml

Sample:
<StockiestStockScrapModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <IsHidden>true</IsHidden>
  <Mode>sample string 10</Mode>
  <SSR_Code>sample string 2</SSR_Code>
  <SSR_Date>2019-10-23T03:51:46.2535257+05:30</SSR_Date>
  <SSR_Id>1</SSR_Id>
  <SSR_Inactive>sample string 7</SSR_Inactive>
  <SSR_Note>sample string 4</SSR_Note>
  <SSR_TS>2019-10-23T03:51:46.2535257+05:30</SSR_TS>
  <SSR_TS_Edited_Uid_FK>2019-10-23T03:51:46.2535257+05:30</SSR_TS_Edited_Uid_FK>
  <SSR_TS_LastEdited>8</SSR_TS_LastEdited>
  <SSR_UserId_FK>5</SSR_UserId_FK>
  <StockiestStockReconcileDetails>
    <StockiestStockScrapDetailsModels>
      <SSRD_Id>1</SSRD_Id>
      <SSRD_Inactive>65</SSRD_Inactive>
      <SSRD_Note>sample string 7</SSRD_Note>
      <SSRD_PA_Id_FK>4</SSRD_PA_Id_FK>
      <SSRD_P_Id_FK>3</SSRD_P_Id_FK>
      <SSRD_ReconsileStock>6</SSRD_ReconsileStock>
      <SSRD_SSR_Id_FK>2</SSRD_SSR_Id_FK>
      <SSRD_StockOnDate>5</SSRD_StockOnDate>
      <SSRD_TS>2019-10-23T03:51:46.2535257+05:30</SSRD_TS>
      <SSRD_TS_Edited_Uid_FK>12</SSRD_TS_Edited_Uid_FK>
      <SSRD_TS_LastEdited>2019-10-23T03:51:46.2535257+05:30</SSRD_TS_LastEdited>
      <SSRD_UserId_FK>8</SSRD_UserId_FK>
    </StockiestStockScrapDetailsModels>
    <StockiestStockScrapDetailsModels>
      <SSRD_Id>1</SSRD_Id>
      <SSRD_Inactive>65</SSRD_Inactive>
      <SSRD_Note>sample string 7</SSRD_Note>
      <SSRD_PA_Id_FK>4</SSRD_PA_Id_FK>
      <SSRD_P_Id_FK>3</SSRD_P_Id_FK>
      <SSRD_ReconsileStock>6</SSRD_ReconsileStock>
      <SSRD_SSR_Id_FK>2</SSRD_SSR_Id_FK>
      <SSRD_StockOnDate>5</SSRD_StockOnDate>
      <SSRD_TS>2019-10-23T03:51:46.2535257+05:30</SSRD_TS>
      <SSRD_TS_Edited_Uid_FK>12</SSRD_TS_Edited_Uid_FK>
      <SSRD_TS_LastEdited>2019-10-23T03:51:46.2535257+05:30</SSRD_TS_LastEdited>
      <SSRD_UserId_FK>8</SSRD_UserId_FK>
    </StockiestStockScrapDetailsModels>
  </StockiestStockReconcileDetails>
</StockiestStockScrapModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.