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
Route
POST /api/rest/admin/routing/rateplans
Body
{"data":{"type":"rateplans","attributes":{"name":"name","profit-control-mode-id":2}}}
Response
Headers
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
}
}
}