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.eyJleHAiOjE3MTAyNTQ3MzUsInN1YiI6MTU3fQ.AjVetxpYXRk5yohTzT_MfZH_TF4nuDpfCiib4jMYQ8Y
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: d3bf9125-d0dd-46ad-81fe-feaa01da8721
X-Runtime: 0.011048
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
    }
  }
}