Accounting profiles API

update values

PUT /api/rest/admin/equipment/radius/accounting-profiles/:id

Parameters

Name Description
data[type] Resource type (accounting_profiles)
data[id] Accounting profile ID
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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTUsInN1YiI6MTA4fQ.B0uO_wEzqIB0IdwGjpazw4r_Kh9ZElJ_b-MjOXnZRvI
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/equipment/radius/accounting-profiles/5

Body

{"data":{"type":"accounting-profiles","id":5,"attributes":{"name":"name"}}}

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/"9c8cfb4ed2e449b33c9eb5817b329c59"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: c219f98d-a4ff-41c2-a86d-835107fac47c
X-Runtime: 0.023209
Content-Length: 370

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "accounting-profiles",
    "links": {
      "self": "http://example.org/api/rest/admin/equipment/radius/accounting-profiles/5"
    },
    "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
    }
  }
}