update values
PUT /api/rest/admin/dialpeer-next-rates/:id
Parameters
Name |
Description |
data[type]
|
Resource type (dialpeers-next-rates)
|
data[id]
|
Dialpeer next rate ID
|
data[attributes][next-rate]
|
Next rate
|
data[attributes][initial-rate]
|
Initial rate
|
data[attributes][initial-interval]
|
Initial interval
|
data[attributes][next-interval]
|
Next interval
|
data[attributes][connect-fee]
|
Connect fee
|
data[attributes][apply-time]
|
Apply time
|
data[attributes][applied]
|
Applied
|
data[attributes][external-id]
|
External id
|
Request
Headers
Route
PUT /api/rest/admin/dialpeer-next-rates/5
Body
{"data":{"type":"dialpeer-next-rates","id":5,"attributes":{"initial-rate":22}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "5",
"type": "dialpeer-next-rates",
"links": {
"self": "http://example.org/api/rest/admin/dialpeer-next-rates/5"
},
"attributes": {
"next-rate": "0.0",
"initial-rate": "22.0",
"initial-interval": 5,
"next-interval": 10,
"connect-fee": "0.0",
"apply-time": "2024-11-14T10:55:54.004Z",
"applied": false,
"external-id": null
},
"relationships": {
"dialpeer": {
"links": {
"self": "http://example.org/api/rest/admin/dialpeer-next-rates/5/relationships/dialpeer",
"related": "http://example.org/api/rest/admin/dialpeer-next-rates/5/dialpeer"
},
"data": {
"type": "dialpeers",
"id": "1376787"
}
}
}
}
}