Routing NumberlistItems API

update values

PUT /api/rest/admin/routing/numberlist-items/:id

Parameters

Name Description
data[type] Resource type (numberlist-items)
data[id] Numberlist Item ID
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.eyJleHAiOjE3MzE1Nzg3NjAsInN1YiI6MTY5fQ.OOgxGx0cLIK_DvBGxzT5dOVRUNu8bWLYXVshEu9fKkw
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/routing/numberlist-items/5

Body

{"data":{"type":"numberlist-items","id":5,"attributes":{"key":"123"}}}

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/"84dfc7e6c9b75f1bf350bd98f4b528f0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 0c19b983-6ce0-43d5-a732-45da37111fe5
X-Runtime: 0.017248
Content-Length: 892

Status

200 OK

Body

{
  "data": {
    "id": "5",
    "type": "numberlist-items",
    "links": {
      "self": "http://example.org/api/rest/admin/routing/numberlist-items/5"
    },
    "attributes": {
      "key": "123",
      "number-min-length": 0,
      "number-max-length": 100,
      "action-id": 1,
      "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.304Z",
      "updated-at": "2024-11-14T09:56:00.337Z"
    },
    "relationships": {
      "numberlist": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing/numberlist-items/5/relationships/numberlist",
          "related": "http://example.org/api/rest/admin/routing/numberlist-items/5/numberlist"
        }
      },
      "tag-action": {
        "links": {
          "self": "http://example.org/api/rest/admin/routing/numberlist-items/5/relationships/tag-action",
          "related": "http://example.org/api/rest/admin/routing/numberlist-items/5/tag-action"
        }
      }
    }
  }
}