Routing RoutingTagDetectionRules API

create new entry

POST /api/rest/admin/routing-tag-detection-rules

Parameters

Name Description
data[type] Resource type (routing-tag-detection-rules)
data[attributes][src-prefix] Src prefix
data[attributes][dst-prefix] Dst prefix
data[attributes][tag-action-value] Tag action value
data[attributes][routing-tag-ids] Routing tag ids
data[relationships][src-area] Src area
data[relationships][dst-area] Dst area
data[relationships][tag-action] Tag action
data[relationships][routing-tag-modes] Routing tag modes

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIxMCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwOX0.6EiQw0mvpy2oWNAzpvZKzL34FJPXLd5U508GUurYPlY
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing-tag-detection-rules

Body

{"data":{"type":"routing-tag-detection-rules"}}

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-tag-detection-rules/7
vary: Accept
etag: W/"68ccdaf6f3fea4d1b2842d71fefca69c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0123180e-27e2-4073-a7e2-57a3d875ebe3
x-runtime: 0.008507
content-length: 1102

Status

201 Created

Body

{
  "data": {
    "id": "7",
    "type": "routing-tag-detection-rules",
    "links": {
      "self": "http://example.org/api/rest/admin/routing-tag-detection-rules/7"
    },
    "attributes": {
      "src-prefix": "",
      "dst-prefix": "",
      "tag-action-value": [

      ],
      "routing-tag-ids": [

      ],
      "routing-tag-mode-id": 0
    },
    "relationships": {
      "src-area": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/relationships/src-area",
          "related": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/src-area"
        }
      },
      "dst-area": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/relationships/dst-area",
          "related": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/dst-area"
        }
      },
      "routing-tag": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/relationships/routing-tag",
          "related": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/routing-tag"
        }
      },
      "tag-action": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/relationships/tag-action",
          "related": "http://example.org/api/rest/admin/routing-tag-detection-rules/7/tag-action"
        }
      }
    }
  }
}