Rateplans API

create new entry

POST /api/rest/admin/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.eyJzdWIiOjE3NiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzOH0.Y6vkkrGQGlp3Ggqk2jpCdX1W2zTh39l_kaMzh89dwkI
Host: example.org
Cookie: 

Route

POST /api/rest/admin/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-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"ebb7d027f1892d2dc7cf180943cec8ed"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 32e3aced-1f95-40f5-9040-1f144d3ce391
X-Runtime: 0.014295
Content-Length: 276

Status

201 Created

Body

{
  "data": {
    "id": "24",
    "type": "rateplans",
    "links": {
      "self": "http://example.org/api/rest/admin/rateplans/24"
    },
    "attributes": {
      "name": "name",
      "profit-control-mode-id": 2
    },
    "relationships": {
      "rate-groups": {
        "links": {
          "related": "http://example.org/api/rest/admin/rateplans/24/rate-groups"
        }
      }
    }
  }
}