Routing RoutingTagDetectionRules API

create new entry

POST /api/rest/admin/routing/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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NjEsInN1YiI6MTkzfQ.oucLMlO9pubEtPfmMSsPzFi64q3w8x7gVB-r-xMbIY4
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing/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-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"75482cd623d877917aad81e0b8c61acb"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 41d02ae1-7840-446b-bf01-c9294c31ec38
X-Runtime: 0.012914
Content-Length: 1394

Status

201 Created

Body

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

      ],
      "routing-tag-ids": [

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