Get Started
Usage API
More information

PUT api/2.0/crm/currency/rates/{id} This function requires authentication

Description

Updates a currency rate with the parameters specified in the request.

Parameters
Name Description Type Example
id
sent in url
Currency ID number 1234
fromCurrency
sent in body
New original currency string some text
toCurrency
sent in body
New converted currency string some text
rate
sent in body
New currency rate System.Decimal
Example
PUT api/2.0/crm/currency/rates/1234
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "fromCurrency": "some text",
  "toCurrency": "some text",
  "rate": 0.0
}
Returns

Updated currency rate

Example Response

application/json

{
  "status": 0,
  "response": {
    "fromCurrency": "EUR",
    "toCurrency": "USD",
    "rate": 1.1,
    "id": 1
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <fromCurrency>EUR</fromCurrency>
    <toCurrency>USD</toCurrency>
    <rate>1.1</rate>
    <id>1</id>
  </response>
</result>