create new entry
POST /api/rest/admin/api-accesses
Parameters
Name |
Description |
data[type]
|
Resource type (api-accesses)
|
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
POST /api/rest/admin/api-accesses
Body
{"data":{"type":"api-accesses","attributes":{"customer-id":10,"login":"login","password":"111111","account-ids":[26],"allowed-ips":["127.0.0.1","127.0.0.2"]}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "api-accesses",
"links": {
"self": "http://example.org/api/rest/admin/api-accesses/4"
},
"attributes": {
"customer-id": 10,
"login": "login",
"account-ids": [
26
],
"allowed-ips": [
"127.0.0.1",
"127.0.0.2"
],
"allow-listen-recording": false
}
}
}