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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NTMsInN1YiI6ODJ9.fSbwGaq88pfbiOz7r5EnFIQJ9vVdzBcvOm3SkpT0FNk
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":"2024-11-14T10:55:53.805Z","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-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/"4ee588e2f7b9abcc78bec44fc60fbc26"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 8daaf2f4-df18-4df6-a52f-98594729c902
X-Runtime: 0.024038
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": "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"
        }
      }
    }
  }
}