PUT api/purchase/setting/{exchangeRateId}/edit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
exchangeRateId

integer

Required

Body Parameters

m_Add_Currency
NameDescriptionTypeAdditional information
fromCurrencyId

integer

None.

toCurrencyId

integer

None.

fromRate

decimal number

None.

toRate

decimal number

None.

dateExchange

date

None.

Request Formats

application/json, text/json

Sample:
{
  "fromCurrencyId": 1,
  "toCurrencyId": 2,
  "fromRate": 3.0,
  "toRate": 4.0,
  "dateExchange": "2026-04-07T18:08:16.0009+07:00"
}

application/xml, text/xml

Sample:
<m_Add_Currency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MRP.Domain.Models.Purchase.Setting">
  <dateExchange>2026-04-07T18:08:16.0009+07:00</dateExchange>
  <fromCurrencyId>1</fromCurrencyId>
  <fromRate>3</fromRate>
  <toCurrencyId>2</toCurrencyId>
  <toRate>4</toRate>
</m_Add_Currency>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.