update values
PUT /api/rest/admin/currencies/:id
Parameters
| Name |
Description |
|
data[type]
|
Resource type (currencies)
|
|
data[id]
|
Currency ID
|
|
data[attributes][name]
|
Name
|
|
data[attributes][rate]
|
Rate
|
|
data[attributes][rate-provider-id]
|
Rate provider id
|
Request
Headers
Route
PUT /api/rest/admin/currencies/6
Body
{"data":{"type":"currencies","id":6,"attributes":{"name":"GBP","rate":1.5}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "6",
"type": "currencies",
"links": {
"self": "http://example.org/api/rest/admin/currencies/6"
},
"attributes": {
"name": "GBP",
"rate": 1.5,
"rate-provider-id": null
}
}
}