Routing plans API

create new entry

POST /api/rest/admin/routing-plans

Parameters

Name Description
data[type] Resource type (routing-plans)
data[attributes][name] Name
data[attributes][rate-delta-max] Rate delta max
data[attributes][use-lnp] Use lnp
data[attributes][max-rerouting-attempts] Max rerouting attempts
data[relationships][sorting] Sorting

Request

Headers

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

Route

POST /api/rest/admin/routing-plans

Body

{"data":{"type":"routing-plans","attributes":{"name":"name"}}}

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/"dd98dacf4d77064f2a6c4fa199f512f1"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 9715acd9-99ac-4722-9a6a-22f56c36373c
X-Runtime: 0.013343
Content-Length: 224

Status

201 Created

Body

{
  "data": {
    "id": "10",
    "type": "routing-plans",
    "links": {
      "self": "http://example.org/api/rest/admin/routing-plans/10"
    },
    "attributes": {
      "name": "name",
      "rate-delta-max": "0.0",
      "use-lnp": false,
      "max-rerouting-attempts": 10,
      "sorting-id": 1
    }
  }
}