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
data[attributes][sorting-id] Sorting id
data[attributes][validate-dst-number-format] Validate dst number format
data[attributes][validate-dst-number-network] Validate dst number network
data[attributes][external-id] External id

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIxOSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc5MjYxOTgxMn0.92kMuRsjZG3-uxdUMJNq2Si2DgG2g0KcZVwGm8brBwg
Host: example.org
Cookie: 

Route

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

Body

{"data":{"type":"routing-plans","id":17,"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/"8da2f372c64ca45adf319193663bb318"
cache-control: max-age=0, private, must-revalidate
x-request-id: e1aaf486-ee60-494f-a6e2-5f7dacf2bb83
x-runtime: 0.016293
content-length: 543

Status

200 OK

Body

{
  "data": {
    "id": "17",
    "type": "routing-plans",
    "links": {
      "self": "http://example.org/api/rest/admin/routing-plans/17"
    },
    "attributes": {
      "name": "name",
      "rate-delta-max": "0.0",
      "use-lnp": false,
      "max-rerouting-attempts": 9,
      "sorting-id": 1,
      "validate-dst-number-format": false,
      "validate-dst-number-network": false,
      "external-id": null
    },
    "relationships": {
      "routing-groups": {
        "links": {
          "related": "http://example.org/api/rest/admin/routing-plans/17/routing-groups"
        }
      },
      "static-routes": {
        "links": {
          "related": "http://example.org/api/rest/admin/routing-plans/17/static-routes"
        }
      }
    }
  }
}