Numberlist API

update values

PUT /api/rest/admin/routing/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.eyJleHAiOjE3MzE1Nzg3NjAsInN1YiI6MTc0fQ.GlUlpITIPZFC-JJu9L4jA4G0Ah9vYYsk67W6bfiX7Fw
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/routing/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-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/"e35a4836de3b32e9e86c1e892ace5674"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 46a6aa0b-08aa-4bfe-94cc-cf3fdb7f6b96
X-Runtime: 0.017705
Content-Length: 720

Status

200 OK

Body

{
  "data": {
    "id": "11",
    "type": "numberlists",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/numberlists/11"
    },
    "attributes": {
      "name": "name",
      "default-action-id": 1,
      "mode-id": 1,
      "created-at": "2024-11-14T09:56:00.605Z",
      "updated-at": "2024-11-14T09:56:00.635Z",
      "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/11/relationships/tag-action",
          "related": "http://example.org/api/rest/admin/routing/numberlists/11/tag-action"
        }
      }
    }
  }
}