PUT api/2.0/crm/currency/rates/{id}
Updates a currency rate with the parameters specified in the request.
Name |
Description |
Type |
Example |
id
sent in url
|
Currency ID
|
number
|
1234
|
fromCurrency
sent in url
|
New currency to convert
|
string
|
some text
|
toCurrency
sent in url
|
New currency into which the original currency will be converted
|
string
|
some text
|
rate
sent in body
|
New currency rate
|
decimal
|
1.1
|
PUT api/2.0/crm/currency/rates/1234?fromCurrency=%22some+text%22&toCurrency=%22some+text%22
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
{
"rate": 1.1
}
application/json
{
"status": 0,
"response": {
"FromCurrency": "EUR",
"ToCurrency": "USD",
"Rate": "1.1",
"id": 1234
}
}
text/xml
<result>
<status>0</status>
<response>
<FromCurrency>EUR</FromCurrency>
<ToCurrency>USD</ToCurrency>
<Rate>1.1</Rate>
<id>1234</id>
</response>
</result>