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
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
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"
}
}
}
}
}