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[attributes][routing-tag-mode-id] Routing tag mode id
data[relationships][src-area] Src area
data[relationships][dst-area] Dst area
data[relationships][tag-action] Tag action
data[relationships][routing-tag] Routing tag

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNCwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc5MjYxOTgxM30.w--S8wSRbUQthYwjW8VU8EcI5Gc90nfDfSHUvVwqK_c
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: 00760a8c-e05e-4ae0-8137-9ed8afbd82e8
x-runtime: 0.012654
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"
        }
      }
    }
  }
}