| Name | Description |
|---|---|
| data[type] | Resource type (currencies) |
| data[attributes][name] | Name |
| data[attributes][rate] | Rate |
| data[attributes][rate-provider-id] | Rate provider id |
Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjcyLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzg4NjA2NTA5fQ.RfytKBYG3qUI4ug4Cs8rT2LDcP9IlPi2ht5q0qnvjVc Host: example.org Cookie:
POST /api/rest/admin/currencies
{"data":{"type":"currencies","attributes":{"name":"EUR","rate":1.2}}}
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 location: http://example.org/api/rest/admin/currencies/5 vary: Accept etag: W/"bdc3859662fff3f9927963f378f678d2" cache-control: max-age=0, private, must-revalidate x-request-id: b2b939d7-8a30-4bfb-ac72-45f37c8a8545 x-runtime: 0.012787 content-length: 168
201 Created
{
"data": {
"id": "5",
"type": "currencies",
"links": {
"self": "http://example.org/api/rest/admin/currencies/5"
},
"attributes": {
"name": "EUR",
"rate": 1.2,
"rate-provider-id": null
}
}
}