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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NDcsInN1YiI6MjN9.7GgKinH-n4x-rnwFVPA6RYfg-7-fgKA2dIEJboZobWo
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-Download-Options: noopen
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: fa4e628e-bb36-4a08-8a12-0951702628fb
X-Runtime: 0.019475
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
    }
  }
}