Routing plan static routes API

update values

PUT /api/rest/admin/routing-plan-static-routes/:id

Parameters

Name Description
data[type] Resource type (routing-plan-static-routes)
data[id] Routing plan static route ID
data[attributes][prefix] Prefix
data[attributes][priority] Priority
data[attributes][weight] Weight

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIxNCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc5MjYxOTgxMn0.c3YtbdupEf0Ec8Iw3HrAouvb1utgKhI7KKs28E5_MKA
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/routing-plan-static-routes/5

Body

{"data":{"type":"routing-plan-static-routes","id":5,"attributes":{"prefix":"5678"}}}

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/"349edfe47170b3d45bbfed10f1c9deb0"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2590f16e-d984-4006-813d-84aa1a733297
x-runtime: 0.018191
content-length: 734

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "routing-plan-static-routes",
    "links": {
      "self": "http://example.org/api/rest/admin/routing-plan-static-routes/5"
    },
    "attributes": {
      "prefix": "5678",
      "priority": 100,
      "weight": 100,
      "network-prefix-id": 255239
    },
    "relationships": {
      "routing-plan": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-plan-static-routes/5/relationships/routing-plan",
          "related": "http://example.org/api/rest/admin/routing-plan-static-routes/5/routing-plan"
        },
        "data": {
          "type": "routing-plans",
          "id": "11"
        }
      },
      "vendor": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-plan-static-routes/5/relationships/vendor",
          "related": "http://example.org/api/rest/admin/routing-plan-static-routes/5/vendor"
        },
        "data": {
          "type": "contractors",
          "id": "104"
        }
      }
    }
  }
}