Rateplans API

create new entry

POST /api/rest/admin/routing/rateplans

Parameters

Name Description
data[type] Resource type (rateplans)
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.eyJleHAiOjE3MzE1Nzg3NjAsInN1YiI6MTc3fQ.LHMDmGyMsU6IlsPzxI5_oC5o5UWMxsVTk1FChNJm0pM
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing/rateplans

Body

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

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/"a53aff29cbf5f2573ec0a3fa5131b8a2"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e7ab0fbf-35cb-46c5-b62e-e6f9a98635ac
X-Runtime: 0.013330
Content-Length: 169

Status

201 Created

Body

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