| 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.eyJzdWIiOjczLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzgxMjc5Mzk1fQ.jQETt60TssaGaXmSHy74EyQnvMYUIXxq9knq6AsH3uk 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: cda3be12-afa3-46b4-9844-0620dc569b4e x-runtime: 0.010515 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
}
}
}