PUT api/Order/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

OrderExt
NameDescriptionTypeAdditional information
IsAdult

boolean

None.

Id

integer

None.

TypeId

integer

None.

Quantity

integer

None.

Name

string

None.

Email

string

None.

Price

decimal number

None.

Date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "IsAdult": true,
  "Id": 2,
  "TypeId": 3,
  "Quantity": 1,
  "Name": "sample string 4",
  "Email": "sample string 5",
  "Price": 6.0,
  "Date": "2025-04-28T19:39:48.7028679+03:00"
}

application/xml, text/xml

Sample:
<OrderExt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/storefront.Models">
  <Date>2025-04-28T19:39:48.7028679+03:00</Date>
  <Email>sample string 5</Email>
  <Id>2</Id>
  <Name>sample string 4</Name>
  <Price>6</Price>
  <Quantity>1</Quantity>
  <TypeId>3</TypeId>
  <IsAdult>true</IsAdult>
</OrderExt>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.