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.eyJleHAiOjE3MTAyNTQ3MjksInN1YiI6NjN9.8NmnpJwX_6wEdmwSq6a3WpOo1uzXzUGig4uFypQfYEs
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/"c1b670b4967952ec2f6ea92c453159e5"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 7ad7dadf-d39a-4302-a618-5d10a6d2fcb4
X-Runtime: 0.015896
Content-Length: 519

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-03-12T15:35:29.531Z",
      "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"
        }
      }
    }
  }
}