Routing plan static routes API

create new entry

POST /api/rest/admin/routing-plan-static-routes

Parameters

Name Description
data[type] Resource type (routing-plan-static-routes)
data[attributes][prefix] Prefix
data[attributes][priority] Priority
data[attributes][weight] Weight
data[relationships][routing-plan] Routing plan
data[relationships][vendor] Vendor

Request

Headers

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

Route

POST /api/rest/admin/routing-plan-static-routes

Body

{"data":{"type":"routing-plan-static-routes","attributes":{"prefix":"1234","priority":100,"weight":100},"relationships":{"routing-plan":{"data":{"type":"routing_plans","id":10}},"vendor":{"data":{"type":"contractors","id":100}}}}}

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-plan-static-routes/4
vary: Accept
etag: W/"0b03dfac71f4fe698b29f80290836d56"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2f53a91b-16c2-40c5-a8f8-4d4cdae8e33f
x-runtime: 0.017687
content-length: 734

Status

201 Created

Body

{
  "data": {
    "id": "4",
    "type": "routing-plan-static-routes",
    "links": {
      "self": "http://example.org/api/rest/admin/routing-plan-static-routes/4"
    },
    "attributes": {
      "prefix": "1234",
      "priority": 100,
      "weight": 100,
      "network-prefix-id": 512718
    },
    "relationships": {
      "routing-plan": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-plan-static-routes/4/relationships/routing-plan",
          "related": "http://example.org/api/rest/admin/routing-plan-static-routes/4/routing-plan"
        },
        "data": {
          "type": "routing-plans",
          "id": "10"
        }
      },
      "vendor": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-plan-static-routes/4/relationships/vendor",
          "related": "http://example.org/api/rest/admin/routing-plan-static-routes/4/vendor"
        },
        "data": {
          "type": "contractors",
          "id": "100"
        }
      }
    }
  }
}