ApiAccesses API

update values

PUT /api/rest/admin/api-accesses/:id

Parameters

Name Description
data[type] Resource type (api-accesses)
data[id] ApiAccess ID
data[attributes][customer-id] Customer id
data[attributes][login] Login
data[attributes][password] Password
data[attributes][account-ids] Account ids
data[attributes][allowed-ips] Allowed ips

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjI4LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYwfQ.DgtsDCh3i72-5nuA5tKcOe6SW5B2M60s9Twq3OdH0U8
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/api-accesses/5

Body

{"data":{"type":"api-accesses","id":5,"attributes":{"login":"login","password":"111111","account-ids":[27],"allowed-ips":["127.0.0.1","127.0.0.2"]}}}

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/"cab4036dd112404251bab00ed4bc1385"
cache-control: max-age=0, private, must-revalidate
x-request-id: f1311cc8-2289-4a25-b8fd-df0e238410bb
x-runtime: 0.016673
content-length: 247

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "api-accesses",
    "links": {
      "self": "http://example.org/api/rest/admin/api-accesses/5"
    },
    "attributes": {
      "customer-id": 11,
      "login": "login",
      "account-ids": [
        27
      ],
      "allowed-ips": [
        "127.0.0.1",
        "127.0.0.2"
      ],
      "allow-listen-recording": false
    }
  }
}