PUT api/utlExchangeRate/{id}

Update an existing record from the ExchangeRates table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

utlExchangeRateDb
NameDescriptionTypeAdditional information
ExchangeRateID

integer

None.

FromCurrencyCode

string

Required

Max length: 3

ToCurrencyCode

string

Required

Max length: 3

ExchangeDate

date

Required

ExchangeRate

decimal number

Required

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "ExchangeRateID": 1,
  "FromCurrencyCode": "sample string 2",
  "ToCurrencyCode": "sample string 3",
  "ExchangeDate": "2025-12-06T23:39:32.0041238+00:00",
  "ExchangeRate": 5.0,
  "CreatedBy": 6,
  "CreatedDate": "2025-12-06T23:39:32.0041238+00:00",
  "UpdatedBy": 8,
  "UpdatedDate": "2025-12-06T23:39:32.0041238+00:00"
}

application/xml, text/xml

Sample:
<utlExchangeRateDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <CreatedBy>6</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:32.0041238Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <ExchangeDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:32.0041238Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </ExchangeDate>
  <ExchangeRate>5</ExchangeRate>
  <ExchangeRateID>1</ExchangeRateID>
  <FromCurrencyCode>sample string 2</FromCurrencyCode>
  <ToCurrencyCode>sample string 3</ToCurrencyCode>
  <UpdatedBy>8</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:39:32.0041238Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</utlExchangeRateDb>

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

Response Information

Resource Description

UpsertRetOfutlExchangeRateDb
NameDescriptionTypeAdditional information
returnID

integer

None.

results

Collection of ValidationResult

None.

returnItem

utlExchangeRateDb

None.

displayMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "returnID": 1,
  "results": null,
  "returnItem": {
    "results": null,
    "ExchangeRateID": 1,
    "FromCurrencyCode": "sample string 2",
    "ToCurrencyCode": "sample string 3",
    "ExchangeDate": "2025-12-06T23:39:32.0041238+00:00",
    "ExchangeRate": 5.0,
    "CreatedBy": 6,
    "CreatedDate": "2025-12-06T23:39:32.0041238+00:00",
    "UpdatedBy": 8,
    "UpdatedDate": "2025-12-06T23:39:32.0041238+00:00"
  },
  "displayMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<UpsertRetOfutlExchangeRateDb66KPc_SrH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility">
  <displayMessage>sample string 1</displayMessage>
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
  <returnID>1</returnID>
  <returnItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
    <results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
    <d2p1:CreatedBy>6</d2p1:CreatedBy>
    <d2p1:CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:39:32.0041238Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:CreatedDate>
    <d2p1:ExchangeDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:39:32.0041238Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:ExchangeDate>
    <d2p1:ExchangeRate>5</d2p1:ExchangeRate>
    <d2p1:ExchangeRateID>1</d2p1:ExchangeRateID>
    <d2p1:FromCurrencyCode>sample string 2</d2p1:FromCurrencyCode>
    <d2p1:ToCurrencyCode>sample string 3</d2p1:ToCurrencyCode>
    <d2p1:UpdatedBy>8</d2p1:UpdatedBy>
    <d2p1:UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-12-06T23:39:32.0041238Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </d2p1:UpdatedDate>
  </returnItem>
</UpsertRetOfutlExchangeRateDb66KPc_SrH>