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