PUT api/Coupon/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CouponModels
NameDescriptionTypeAdditional information
C_Coupon_Id

integer

None.

C_Coupon_Code

string

Required

Max length: 50

GetPartnerDetailsSpeedSearch

PartnerSpeedSearchModels

Required

C_Coupon_Desc

string

Required

Max length: 500

C_Coupon_DiscountAmount

decimal number

Required

C_Coupon_DiscountPercentage

decimal number

Required

C_Coupon_DiscountFromDate

date

Required

C_Coupon_DiscountToDate

date

Required

C_Coupon_ValidFromDate

date

Required

C_Coupon_ValidToDate

date

Required

C_Coupon_image

string

Required

Max length: 500

IsImageUploaded

boolean

Required

C_UserId_FK

integer

None.

C_TS

date

None.

C_Inactive

character

None.

C_TS_LastEdited

date

None.

C_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "C_Coupon_Id": 1,
  "C_Coupon_Code": "sample string 2",
  "GetPartnerDetailsSpeedSearch": {
    "P_Id": 1,
    "P_Partner_Name": "sample string 2"
  },
  "C_Coupon_Desc": "sample string 3",
  "C_Coupon_DiscountAmount": 4.0,
  "C_Coupon_DiscountPercentage": 5.0,
  "C_Coupon_DiscountFromDate": "2019-05-22T23:04:33.1625614+05:30",
  "C_Coupon_DiscountToDate": "2019-05-22T23:04:33.1625614+05:30",
  "C_Coupon_ValidFromDate": "2019-05-22T23:04:33.1625614+05:30",
  "C_Coupon_ValidToDate": "2019-05-22T23:04:33.1625614+05:30",
  "C_Coupon_image": "sample string 10",
  "IsImageUploaded": true,
  "C_UserId_FK": 12,
  "C_TS": "2019-05-22T23:04:33.1625614+05:30",
  "C_Inactive": "A",
  "C_TS_LastEdited": "2019-05-22T23:04:33.1625614+05:30",
  "C_TS_Edited_Uid_FK": 16
}

application/xml, text/xml

Sample:
<CouponModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <C_Coupon_Code>sample string 2</C_Coupon_Code>
  <C_Coupon_Desc>sample string 3</C_Coupon_Desc>
  <C_Coupon_DiscountAmount>4</C_Coupon_DiscountAmount>
  <C_Coupon_DiscountFromDate>2019-05-22T23:04:33.1625614+05:30</C_Coupon_DiscountFromDate>
  <C_Coupon_DiscountPercentage>5</C_Coupon_DiscountPercentage>
  <C_Coupon_DiscountToDate>2019-05-22T23:04:33.1625614+05:30</C_Coupon_DiscountToDate>
  <C_Coupon_Id>1</C_Coupon_Id>
  <C_Coupon_ValidFromDate>2019-05-22T23:04:33.1625614+05:30</C_Coupon_ValidFromDate>
  <C_Coupon_ValidToDate>2019-05-22T23:04:33.1625614+05:30</C_Coupon_ValidToDate>
  <C_Coupon_image>sample string 10</C_Coupon_image>
  <C_Inactive>65</C_Inactive>
  <C_TS>2019-05-22T23:04:33.1625614+05:30</C_TS>
  <C_TS_Edited_Uid_FK>16</C_TS_Edited_Uid_FK>
  <C_TS_LastEdited>2019-05-22T23:04:33.1625614+05:30</C_TS_LastEdited>
  <C_UserId_FK>12</C_UserId_FK>
  <GetPartnerDetailsSpeedSearch 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>
  </GetPartnerDetailsSpeedSearch>
  <IsImageUploaded>true</IsImageUploaded>
</CouponModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.