Rateplans API

update values

PUT /api/rest/admin/routing/rateplans/:id

Parameters

Name Description
data[type] Resource type (rateplans)
data[id] Rateplan ID
data[attributes][name] Name
data[attributes][profit-control-mode-id] Profit control mode id

Request

Headers

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

Route

PUT /api/rest/admin/routing/rateplans/24

Body

{"data":{"type":"rateplans","id":24,"attributes":{"name":"name","profit-control-mode-id":1}}}

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/"d772df788d9849604371362c26d79dd5"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 490af515-2e26-4476-b116-7f047ec54c1e
X-Runtime: 0.013923
Content-Length: 169

Status

200 OK

Body

{
  "data": {
    "id": "24",
    "type": "rateplans",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/rateplans/24"
    },
    "attributes": {
      "name": "name",
      "profit-control-mode-id": 1
    }
  }
}