PUT api/Warehouse/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

WarehouseModels
NameDescriptionTypeAdditional information
WH_Id

integer

None.

WH_Code

string

None.

WH_Name

string

Required

Max length: 30

StateSpeedSearch

StateSpeedSearchModels

Required

DistrictSpeedSearch

DistrictSpeedSearchModels

Required

TalukSpeedSearch

TalukSpeedSearchModels

Required

VillageSpeedSearch

VillageSpeedSearchModels

Required

WH_Country

string

None.

WH_Street

string

Required

Max length: 20

WH_DoorNo

string

Required

Max length: 10

WH_PinCode

integer

Required

WH_MobileNo

integer

Required

WH_Email

string

Required

Max length: 50

WH_Note

string

Required

Max length: 500

WH_TINNo

string

Required

Max length: 30

WH_STNo

string

Required

Max length: 30

WH_UserId_FK

integer

None.

WH_TS

date

None.

WH_Inactive

character

None.

WH_TS_LastEdited

date

None.

WH_TS_Edited_Uid_FK

integer

None.

TotalAmount

decimal number

None.

SelectedManufacturers

Collection of WarehouseManufacturersList

None.

Request Formats

application/json, text/json

Sample:
{
  "WH_Id": 1,
  "WH_Code": "sample string 2",
  "WH_Name": "sample string 3",
  "StateSpeedSearch": {
    "ST_Id": 1,
    "ST_StateID": "sample string 2",
    "ST_StateName": "sample string 3"
  },
  "DistrictSpeedSearch": {
    "DI_Id": 1,
    "DI_DistrictId": "sample string 2",
    "DI_District": "sample string 3"
  },
  "TalukSpeedSearch": {
    "TA_Id": 1,
    "TA_TalukId": "sample string 2",
    "TA_Taluk": "sample string 3"
  },
  "VillageSpeedSearch": {
    "VI_Id": 1,
    "VI_VillageId": "sample string 2",
    "VI_Village": "sample string 3"
  },
  "WH_Country": "sample string 4",
  "WH_Street": "sample string 5",
  "WH_DoorNo": "sample string 6",
  "WH_PinCode": 7,
  "WH_MobileNo": 8,
  "WH_Email": "sample string 9",
  "WH_Note": "sample string 10",
  "WH_TINNo": "sample string 11",
  "WH_STNo": "sample string 12",
  "WH_UserId_FK": 13,
  "WH_TS": "2019-05-26T18:54:07.7567523+05:30",
  "WH_Inactive": "A",
  "WH_TS_LastEdited": "2019-05-26T18:54:07.7567523+05:30",
  "WH_TS_Edited_Uid_FK": 17,
  "TotalAmount": 18.0,
  "SelectedManufacturers": [
    {
      "MA_Id": 1,
      "MA_Name": "sample string 2",
      "IsSelected": true,
      "P_Partner_Name": "sample string 4"
    },
    {
      "MA_Id": 1,
      "MA_Name": "sample string 2",
      "IsSelected": true,
      "P_Partner_Name": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<WarehouseModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <DistrictSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:DI_District>sample string 3</d2p1:DI_District>
    <d2p1:DI_DistrictId>sample string 2</d2p1:DI_DistrictId>
    <d2p1:DI_Id>1</d2p1:DI_Id>
  </DistrictSpeedSearch>
  <SelectedManufacturers>
    <WarehouseManufacturersList>
      <IsSelected>true</IsSelected>
      <MA_Id>1</MA_Id>
      <MA_Name>sample string 2</MA_Name>
      <P_Partner_Name>sample string 4</P_Partner_Name>
    </WarehouseManufacturersList>
    <WarehouseManufacturersList>
      <IsSelected>true</IsSelected>
      <MA_Id>1</MA_Id>
      <MA_Name>sample string 2</MA_Name>
      <P_Partner_Name>sample string 4</P_Partner_Name>
    </WarehouseManufacturersList>
  </SelectedManufacturers>
  <StateSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:ST_Id>1</d2p1:ST_Id>
    <d2p1:ST_StateID>sample string 2</d2p1:ST_StateID>
    <d2p1:ST_StateName>sample string 3</d2p1:ST_StateName>
  </StateSpeedSearch>
  <TalukSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:TA_Id>1</d2p1:TA_Id>
    <d2p1:TA_Taluk>sample string 3</d2p1:TA_Taluk>
    <d2p1:TA_TalukId>sample string 2</d2p1:TA_TalukId>
  </TalukSpeedSearch>
  <TotalAmount>18</TotalAmount>
  <VillageSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:VI_Id>1</d2p1:VI_Id>
    <d2p1:VI_Village>sample string 3</d2p1:VI_Village>
    <d2p1:VI_VillageId>sample string 2</d2p1:VI_VillageId>
  </VillageSpeedSearch>
  <WH_Code>sample string 2</WH_Code>
  <WH_Country>sample string 4</WH_Country>
  <WH_DoorNo>sample string 6</WH_DoorNo>
  <WH_Email>sample string 9</WH_Email>
  <WH_Id>1</WH_Id>
  <WH_Inactive>65</WH_Inactive>
  <WH_MobileNo>8</WH_MobileNo>
  <WH_Name>sample string 3</WH_Name>
  <WH_Note>sample string 10</WH_Note>
  <WH_PinCode>7</WH_PinCode>
  <WH_STNo>sample string 12</WH_STNo>
  <WH_Street>sample string 5</WH_Street>
  <WH_TINNo>sample string 11</WH_TINNo>
  <WH_TS>2019-05-26T18:54:07.7567523+05:30</WH_TS>
  <WH_TS_Edited_Uid_FK>17</WH_TS_Edited_Uid_FK>
  <WH_TS_LastEdited>2019-05-26T18:54:07.7567523+05:30</WH_TS_LastEdited>
  <WH_UserId_FK>13</WH_UserId_FK>
</WarehouseModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.