PUT api/PromoCode

Request Information

URI Parameters

None.

Body Parameters

PromoCode
NameDescriptionTypeAdditional information
RecordNo

integer

None.

Name

string

None.

Code

string

None.

PromoType

string

None.

Discount

string

None.

StartDate

date

None.

EndDate

date

None.

Uses

string

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "Name": "sample string 2",
  "Code": "sample string 3",
  "PromoType": "sample string 4",
  "Discount": "sample string 5",
  "StartDate": "2021-10-16T14:32:28.4162747+00:00",
  "EndDate": "2021-10-16T14:32:28.4162747+00:00",
  "Uses": "sample string 8",
  "CreatedOn": "2021-10-16T14:32:28.4162747+00:00",
  "UpdatedOn": "2021-10-16T14:32:28.4162747+00:00",
  "IsDeleted": true
}

application/xml, text/xml

Sample:
<PromoCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.Models">
  <Code>sample string 3</Code>
  <CreatedOn>2021-10-16T14:32:28.4162747+00:00</CreatedOn>
  <Discount>sample string 5</Discount>
  <EndDate>2021-10-16T14:32:28.4162747+00:00</EndDate>
  <IsDeleted>true</IsDeleted>
  <Name>sample string 2</Name>
  <PromoType>sample string 4</PromoType>
  <RecordNo>1</RecordNo>
  <StartDate>2021-10-16T14:32:28.4162747+00:00</StartDate>
  <UpdatedOn>2021-10-16T14:32:28.4162747+00:00</UpdatedOn>
  <Uses>sample string 8</Uses>
</PromoCode>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.