create new entry
POST /api/rest/admin/routing/numberlist-items
Parameters
Name |
Description |
data[type]
|
Resource type (numberlist-items)
|
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
POST /api/rest/admin/routing/numberlist-items
Body
{"data":{"type":"numberlist-items","attributes":{"key":"123"},"relationships":{"numberlist":{"data":{"type":"numberlists","id":4}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "4",
"type": "numberlist-items",
"links": {
"self": "http://example.org/api/rest/admin/routing/numberlist-items/4"
},
"attributes": {
"key": "123",
"number-min-length": 0,
"number-max-length": 100,
"action-id": null,
"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.257Z",
"updated-at": "2024-11-14T09:56:00.257Z"
},
"relationships": {
"numberlist": {
"links": {
"self": "http://example.org/api/rest/admin/routing/numberlist-items/4/relationships/numberlist",
"related": "http://example.org/api/rest/admin/routing/numberlist-items/4/numberlist"
}
},
"tag-action": {
"links": {
"self": "http://example.org/api/rest/admin/routing/numberlist-items/4/relationships/tag-action",
"related": "http://example.org/api/rest/admin/routing/numberlist-items/4/tag-action"
}
}
}
}
}