Dialpeer next rates API

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

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

Route

PUT /api/rest/admin/dialpeer-next-rates/5

Body

{"data":{"type":"dialpeer-next-rates","id":5,"attributes":{"initial-rate":22}}}

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/"25a0bc4d65b8df03bddef4455ddd7059"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: fa781a19-f2bb-4ee5-b956-e12d746fde08
X-Runtime: 0.023649
Content-Length: 562

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"
        }
      }
    }
  }
}