create new entry
POST /api/rest/admin/dialpeer-next-rates
Parameters
Name |
Description |
data[type]
|
Resource type (dialpeers-next-rates)
|
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
|
data[relationships][dialpeer]
|
Dialpeer
|
Request
Headers
Route
POST /api/rest/admin/dialpeer-next-rates
Body
{"data":{"type":"dialpeer-next-rates","attributes":{"next-rate":0.0,"initial-rate":0.0,"initial-interval":60,"next-interval":60,"connect-fee":0,"apply-time":"2024-11-14T10:55:53.805Z","applied":false},"relationships":{"dialpeer":{"data":{"type":"dialpeers","id":1376786}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "dialpeer-next-rates",
"links": {
"self": "http://example.org/api/rest/admin/dialpeer-next-rates/4"
},
"attributes": {
"next-rate": "0.0",
"initial-rate": "0.0",
"initial-interval": 60,
"next-interval": 60,
"connect-fee": "0.0",
"apply-time": "2024-11-14T10:55:53.805Z",
"applied": false,
"external-id": null
},
"relationships": {
"dialpeer": {
"links": {
"self": "http://example.org/api/rest/admin/dialpeer-next-rates/4/relationships/dialpeer",
"related": "http://example.org/api/rest/admin/dialpeer-next-rates/4/dialpeer"
},
"data": {
"type": "dialpeers",
"id": "1376786"
}
}
}
}
}