Numberlist API

update values

PUT /api/rest/admin/numberlists/:id

Parameters

Name Description
data[type] Resource type (numberlist)
data[id] Customer Auth ID
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.eyJzdWIiOjE2MiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc0MDg1MzAzN30.NpvQu9xpkgi3RRJpm5b2env3tZcFoDYh_gztP5HKo64
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/numberlists/11

Body

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

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
Vary: Accept
ETag: W/"761029597beb6f22ae794e9a1b6b4845"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: da9c1fae-4114-4f0c-baca-e2b81a2cd514
X-Runtime: 0.016839
Content-Length: 696

Status

200 OK

Body

{
  "data": {
    "id": "11",
    "type": "numberlists",
    "links": {
      "self": "http://example.org/api/rest/admin/numberlists/11"
    },
    "attributes": {
      "name": "name",
      "default-action-id": 1,
      "mode-id": 1,
      "created-at": "2025-03-01T18:07:17.969Z",
      "updated-at": "2025-03-01T18:07:17.999Z",
      "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/numberlists/11/relationships/tag-action",
          "related": "http://example.org/api/rest/admin/numberlists/11/tag-action"
        }
      }
    }
  }
}