Dialpeer next rates API

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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjg1LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTY0fQ.Pj4XOYA0rcqJ6RyWLPeD4Nae-nXo26id1UHc0wuJtR4
Host: example.org
Cookie: 

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":"2026-01-02T13:46:04.226Z","applied":false},"relationships":{"dialpeer":{"data":{"type":"dialpeers","id":1376786}}}}}

Response

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/dialpeer-next-rates/4
vary: Accept
etag: W/"bfaeb1d1062c740c41631f311083c14b"
cache-control: max-age=0, private, must-revalidate
x-request-id: 908916a2-ed38-4771-9197-658d396e071e
x-runtime: 0.012180
content-length: 562

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": "2026-01-02T13:46:04.226Z",
      "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"
        }
      }
    }
  }
}