Update Single Currency API
This API is used to update compensation single-currency details at a time, such as currency format and exchange rates.
Request URL:
https://people.zoho.com/api/compensation/v1/currencies/{currency_id}/update
Header:
Authorization:Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf
Request Method:
PUT
Scope:
ZohoPeople.compensation.ALL
Request Parameters:
Parameters | Values Allowed | Mandatory Keys |
data: | {currency_id:"148113000000970104","exchange_rate":"4.5",format_type:3} | Either the exchange_rate or format_type parameter must be provided |
Note:
The format_type must be either 0, 1, 2, 3, or 4.
Currency format | Type |
12,34,56,789.00 | 0 |
123,456,789.00 | 1 |
123.456.789,00 | 2 |
123 456 789,00 | 3 |
123456789.00 | 4 |
Threshold Limit: 30 requests | Lock period: 5 minutes
Threshold Limit - Number of API calls allowed within a minute.
Lock Period - Wait time before consecutive API requests.
Sample Request
Copiedhttps://people.zoho.com/api/compensation/v1/currencies/{currency_id}/update
Sample Response
Copied{
"response": {
"result": {
"data": [
{
"message": "Record updated successfully.",
"currency_id": "148113000001091013",
"status": "success"
}
]
},
"message": "Success",
"uri": "/api/compensation/v1/currencies/148113000001091013/update",
"status": 0
}
}