Routing plans API

update values

PUT /api/rest/admin/routing-plans/:id

Parameters

Name Description
data[type] Resource type (routing-plans)
data[id] Routing plan ID
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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE5OCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU3MH0._yofEOptRzxrJ1TIO-mx1llklh3zBGN_LeTOgC06DDg
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/routing-plans/11

Body

{"data":{"type":"routing-plans","id":11,"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
vary: Accept
etag: W/"c27f346f81fde09ab647e7be5a66bf28"
cache-control: max-age=0, private, must-revalidate
x-request-id: c9e3d377-19bd-4a9a-accc-10a467c9c2de
x-runtime: 0.013626
content-length: 348

Status

200 OK

Body

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