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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIxNSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc4NjM2MDI5N30.5hjMX5Yk2Np7XwTXYcPdsif5GDCGR-XYvN5DsnElXeI
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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/routing-plans/16
vary: Accept
etag: W/"183afaa2435408d5cda675da41d3e5f1"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7c305e09-9e45-4525-b923-a633fde58460
x-runtime: 0.008987
content-length: 454

Status

201 Created

Body

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