Numberlist API

create new entry

POST /api/rest/admin/routing/numberlists

Parameters

Name Description
data[type] Resource type (numberlist)
data[attributes][name] Name
data[attributes][default-action-id] Default action id
data[attributes][mode-id] Mode id
data[attributes][default-src-rewrite-rule] Default src rewrite rule
data[attributes][default-src-rewrite-result] Default src rewrite result
data[attributes][defer-src-rewrite] Defer src rewrite
data[attributes][default-dst-rewrite-rule] Default dst rewrite rule
data[attributes][default-dst-rewrite-result] Default dst rewrite result
data[attributes][defer-dst-rewrite] Defer dst rewrite
data[attributes][tag-action-value] Tag action value
data[attributes][external-id] External id
data[attributes][external-type] External type
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.eyJleHAiOjE3MzE1Nzg3NjAsInN1YiI6MTczfQ.UxN5-ckFPD6J9Em-50e62fFrBcnCg-85VnvJO5oaRJY
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing/numberlists

Body

{"data":{"type":"numberlists","attributes":{"name":"name"}}}

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/"b4ed0dc57fb43f7d6238df33e0ce3a6d"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bb7b14c4-cde4-4f3d-b79a-6ebaa0d3e33b
X-Runtime: 0.014752
Content-Length: 720

Status

201 Created

Body

{
  "data": {
    "id": "10",
    "type": "numberlists",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/numberlists/10"
    },
    "attributes": {
      "name": "name",
      "default-action-id": 1,
      "mode-id": 1,
      "created-at": "2024-11-14T09:56:00.571Z",
      "updated-at": "2024-11-14T09:56:00.571Z",
      "default-src-rewrite-rule": null,
      "default-src-rewrite-result": null,
      "defer-src-rewrite": false,
      "default-dst-rewrite-rule": null,
      "default-dst-rewrite-result": null,
      "defer-dst-rewrite": false,
      "tag-action-value": [

      ],
      "external-id": null,
      "external-type": null
    },
    "relationships": {
      "tag-action": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing/numberlists/10/relationships/tag-action",
          "related": "http://example.org/api/rest/admin/routing/numberlists/10/tag-action"
        }
      }
    }
  }
}