| Name | Description |
|---|---|
| data[type] | Resource type (currencies) |
| data[id] | Currency ID |
| data[attributes][name] | Name |
| data[attributes][rate] | Rate |
Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjcyLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzc2MzY1NzM0fQ.peYuxA9k59tFKNY0dIQ--ciiJ0MmxcTv4NfqxM8MO5k Host: example.org Cookie:
PUT /api/rest/admin/currencies/6
{"data":{"type":"currencies","id":6,"attributes":{"name":"GBP","rate":1.5}}}
x-frame-options: SAMEORIGIN x-xss-protection: 0 x-content-type-options: nosniff x-permitted-cross-domain-policies: none referrer-policy: strict-origin-when-cross-origin content-type: application/vnd.api+json vary: Accept etag: W/"8865a6190bfc849440f81ae5c46ae1f9" cache-control: max-age=0, private, must-revalidate x-request-id: 9ef1551c-2212-43dc-916c-ce2270158494 x-runtime: 0.010521 content-length: 144
200 OK
{
"data": {
"id": "6",
"type": "currencies",
"links": {
"self": "http://example.org/api/rest/admin/currencies/6"
},
"attributes": {
"name": "GBP",
"rate": 1.5
}
}
}