PUT /currencies/{id}.json
PUT
/currencies/{id}.json
Path parameters
-
id integer(int64) Required
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
createdAt string(date-time)
Created at
-
exchangeRate number(float) Required
Exchange rate
Default value is
1
. -
id integer(int32)
Id
-
iso string Required
Iso
-
name string Required
Name
-
roundUp boolean | null Required
Round up
Default value is
false
. -
symbol string Required
Symbol
-
updatedAt string(date-time)
Updated at
-
useLiveRates boolean | null Required
Use live rates
Default value is
true
.
PUT /currencies/{id}.json
curl \
-X PUT http://api.example.com/v1/currencies/{id}.json \
-H "Content-Type: application/json" \
-d '{"createdAt":"2023-05-04T09:42:00+00:00","exchangeRate":1,"id":42,"iso":"string","name":"string","roundUp":false,"symbol":"string","updatedAt":"2023-05-04T09:42:00+00:00","useLiveRates":true}'
Request example
{
"createdAt": "2023-05-04T09:42:00+00:00",
"exchangeRate": 1,
"id": 42,
"iso": "string",
"name": "string",
"roundUp": false,
"symbol": "string",
"updatedAt": "2023-05-04T09:42:00+00:00",
"useLiveRates": true
}