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.eyJzdWIiOjIxMSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc4NjM2MDI5Nn0.r8T_wAa3BfpDfm0nK0Fp_N-_sw2DamWTyrpDzSJRiws
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/"bcf17e052be181463d2ddcdb0f6513e5"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4a79f4ec-30dd-40ed-9493-4fcd4ed44081
x-runtime: 0.013117
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": "101"
        }
      }
    }
  }
}