PUT api/Purchase/PutExchangeRate/{exchangeRateId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
exchangeRateId

integer

Required

Body Parameters

mExchangeRate
NameDescriptionTypeAdditional information
usd

decimal number

Required

cny

decimal number

Required

dateExchange

date

Required

type

string

Required

Request Formats

application/json, text/json

Sample:
{
  "usd": 1.0,
  "cny": 2.0,
  "dateExchange": "2026-04-07T18:08:18.3134393+07:00",
  "type": "sample string 4"
}

application/xml, text/xml

Sample:
<mExchangeRate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Purchase">
  <cny>2</cny>
  <dateExchange>2026-04-07T18:08:18.3134393+07:00</dateExchange>
  <type>sample string 4</type>
  <usd>1</usd>
</mExchangeRate>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.