PUT api/DealsOfTheDay/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DealsOfTheDayModels
NameDescriptionTypeAdditional information
D_Id

integer

None.

ProductSpeedSearch

ProductSpeedSearchModels

Required

PartnerSpeedSearch

PartnerSpeedSearchModels

Required

PackSizeSpeedSearch

PackSizeSpeedSearchModels

Required

D_FromDate

date

Required

D_ToDate

date

Required

D_MaxOQ

decimal number

Required

D_Discount

decimal number

Required

D_UserId_FK

integer

None.

D_TS

date

None.

D_Inactive

character

None.

D_TS_LastEdited

date

None.

D_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "D_Id": 1,
  "ProductSpeedSearch": {
    "P_Id": 1,
    "P_ProductCode": "sample string 2",
    "P_Name": "sample string 3"
  },
  "PartnerSpeedSearch": {
    "P_Id": 1,
    "P_Partner_Name": "sample string 2"
  },
  "PackSizeSpeedSearch": {
    "PA_Id": 1,
    "PA_Size": "sample string 2",
    "PA_PackUOM": "sample string 3",
    "PR_CustomerPrice": 4.0
  },
  "D_FromDate": "2019-07-16T07:56:07.3335605+05:30",
  "D_ToDate": "2019-07-16T07:56:07.3335605+05:30",
  "D_MaxOQ": 4.0,
  "D_Discount": 5.0,
  "D_UserId_FK": 6,
  "D_TS": "2019-07-16T07:56:07.3335605+05:30",
  "D_Inactive": "A",
  "D_TS_LastEdited": "2019-07-16T07:56:07.3335605+05:30",
  "D_TS_Edited_Uid_FK": 10
}

application/xml, text/xml

Sample:
<DealsOfTheDayModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <D_Discount>5</D_Discount>
  <D_FromDate>2019-07-16T07:56:07.3335605+05:30</D_FromDate>
  <D_Id>1</D_Id>
  <D_Inactive>65</D_Inactive>
  <D_MaxOQ>4</D_MaxOQ>
  <D_TS>2019-07-16T07:56:07.3335605+05:30</D_TS>
  <D_TS_Edited_Uid_FK>10</D_TS_Edited_Uid_FK>
  <D_TS_LastEdited>2019-07-16T07:56:07.3335605+05:30</D_TS_LastEdited>
  <D_ToDate>2019-07-16T07:56:07.3335605+05:30</D_ToDate>
  <D_UserId_FK>6</D_UserId_FK>
  <PackSizeSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:PA_Id>1</d2p1:PA_Id>
    <d2p1:PA_PackUOM>sample string 3</d2p1:PA_PackUOM>
    <d2p1:PA_Size>sample string 2</d2p1:PA_Size>
    <d2p1:PR_CustomerPrice>4</d2p1:PR_CustomerPrice>
  </PackSizeSpeedSearch>
  <PartnerSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:P_Id>1</d2p1:P_Id>
    <d2p1:P_Partner_Name>sample string 2</d2p1:P_Partner_Name>
  </PartnerSpeedSearch>
  <ProductSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:P_Id>1</d2p1:P_Id>
    <d2p1:P_Name>sample string 3</d2p1:P_Name>
    <d2p1:P_ProductCode>sample string 2</d2p1:P_ProductCode>
  </ProductSpeedSearch>
</DealsOfTheDayModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.