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
Route
PUT /api/rest/admin/routing/numberlist-items/5
Body
{"data":{"type":"numberlist-items","id":5,"attributes":{"key":"123"}}}
Response
Headers
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"
}
}
}
}
}