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.eyJzdWIiOjE5NywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU3MH0.bjyDQSnQb8_RSpOSjDynjcXcweGC6Qi1rgHKcs-q_Gk
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/10
vary: Accept
etag: W/"52a82642dd007d26cb39898f44a5424e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 888f8d66-4bf9-4147-8614-a893b9988f88
x-runtime: 0.011698
content-length: 349

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
    },
    "relationships": {
      "routing-groups": {
        "links": {
          "related": "http://example.org/api/rest/admin/routing-plans/10/routing-groups"
        }
      }
    }
  }
}