create new entry
POST /api/rest/admin/equipment/radius/accounting-profiles
Parameters
Name |
Description |
data[type]
|
Resource type (accounting_profiles)
|
data[attributes][name]
|
Name
|
data[attributes][server]
|
Server
|
data[attributes][port]
|
Port
|
data[attributes][secret]
|
Secret
|
data[attributes][timeout]
|
Timeout
|
data[attributes][attempts]
|
Attempts
|
data[attributes][enable-start-accounting]
|
Enable start accounting
|
data[attributes][enable-interim-accounting]
|
Enable interim accounting
|
data[attributes][interim-accounting-interval]
|
Interim accounting interval
|
data[attributes][enable-stop-accounting]
|
Enable stop accounting
|
Request
Headers
Route
POST /api/rest/admin/equipment/radius/accounting-profiles
Body
{"data":{"type":"accounting-profiles","attributes":{"name":"name","server":"server","port":"1","secret":"secret","timeout":100,"attempts":2}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "accounting-profiles",
"links": {
"self": "http://example.org/api/rest/admin/equipment/radius/accounting-profiles/4"
},
"attributes": {
"name": "name",
"server": "server",
"port": 1,
"secret": "secret",
"timeout": 100,
"attempts": 2,
"enable-start-accounting": false,
"enable-interim-accounting": false,
"interim-accounting-interval": 30,
"enable-stop-accounting": true
}
}
}