Routing NumberlistItems API

create new entry

POST /api/rest/admin/routing/numberlist-items

Parameters

Name Description
data[type] Resource type (numberlist-items)
data[attributes][key] Key
data[attributes][src-rewrite-rule] Src rewrite rule
data[attributes][src-rewrite-result] Src rewrite result
data[attributes][defer-src-rewrite] Defer src rewrite
data[attributes][dst-rewrite-rule] Dst rewrite rule
data[attributes][dst-rewrite-result] Dst rewrite result
data[attributes][defer-dst-rewrite] Defer dst rewrite
data[attributes][tag-action-value] Tag action value
data[relationships][numberlist] Numberlist
data[relationships][action] Action
data[relationships][tag-action] Tag action

Request

Headers

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MzE1Nzg3NjAsInN1YiI6MTY4fQ.EVbfXq3JhKpl5yQ-YZN1gOe7cFbWNtly7PX5V6m3A40
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing/numberlist-items

Body

{"data":{"type":"numberlist-items","attributes":{"key":"123"},"relationships":{"numberlist":{"data":{"type":"numberlists","id":4}}}}}

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/"033c5e330a95ff800c4d87956f9e64da"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bb84241e-b0dc-4bc9-bd32-3a132bcc2865
X-Runtime: 0.016231
Content-Length: 895

Status

201 Created

Body

{
  "data": {
    "id": "4",
    "type": "numberlist-items",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/numberlist-items/4"
    },
    "attributes": {
      "key": "123",
      "number-min-length": 0,
      "number-max-length": 100,
      "action-id": null,
      "src-rewrite-rule": null,
      "src-rewrite-result": null,
      "defer-src-rewrite": false,
      "dst-rewrite-rule": null,
      "dst-rewrite-result": null,
      "defer-dst-rewrite": false,
      "tag-action-value": [

      ],
      "created-at": "2024-11-14T09:56:00.257Z",
      "updated-at": "2024-11-14T09:56:00.257Z"
    },
    "relationships": {
      "numberlist": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing/numberlist-items/4/relationships/numberlist",
          "related": "http://example.org/api/rest/admin/routing/numberlist-items/4/numberlist"
        }
      },
      "tag-action": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing/numberlist-items/4/relationships/tag-action",
          "related": "http://example.org/api/rest/admin/routing/numberlist-items/4/tag-action"
        }
      }
    }
  }
}