PUT api/Discounts/UpdateDiscount?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DiscountDto
NameDescriptionTypeAdditional information
Id

integer

None.

ProductId

integer

None.

DiscountTriggerTypeId

integer

Required

DiscountTriggerValue

string

String length: inclusive between 0 and 150

DiscountRewardTypeId

integer

Required

DiscountRewardValue

string

String length: inclusive between 0 and 150

DateStart

date

None.

DateEnd

date

None.

ClientId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ProductId": 1,
  "DiscountTriggerTypeId": 2,
  "DiscountTriggerValue": "sample string 3",
  "DiscountRewardTypeId": 4,
  "DiscountRewardValue": "sample string 5",
  "DateStart": "2026-04-29T22:08:46.131552+00:00",
  "DateEnd": "2026-04-29T22:08:46.131552+00:00",
  "ClientId": 1
}

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

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
Message

string

None.

Result

Object

None.

StatusCode

integer

None.

StatusGroup

string

None.

Details

Collection of Object

None.

Response Formats

application/json, text/json

Sample:

Sample not available.