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.eyJzdWIiOjIxMywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc5MjYxOTgxMn0.4ZO5Tspyblhe1iaFP3hrkv0IO4oaU7WrgIdT1unXGuc
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":103}}}}}

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/"e225962ab728215752395d907d462502"
cache-control: max-age=0, private, must-revalidate
x-request-id: d0846850-49ec-4f73-b211-973f17841f52
x-runtime: 0.021851
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": "103"
        }
      }
    }
  }
}