Currencies API

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjcyLCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzc2MzY1NzM0fQ.peYuxA9k59tFKNY0dIQ--ciiJ0MmxcTv4NfqxM8MO5k
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/currencies/6

Body

{"data":{"type":"currencies","id":6,"attributes":{"name":"GBP","rate":1.5}}}

Response

Headers

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

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
    }
  }
}