/
getImportRules
getImportRules
Retrieves all import rules documents.
HTTP GET /ctreplay/:domain?/getImportRules
Path variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | NO | STRING | Unique domain identifier |
Authorization: BEARER
Response:
Type: JSON
Name | Type | Description |
---|---|---|
result | BOOLEAN | If true, the service response was performed correctly |
error | NULL / STRING | Contains the error description if an error has occurred in the request |
documents | OBJECT | list of import rules objects |
Example:
Request:
http://<hostname>:<port>/ctreplay/default/getImportRules
Response:
{
"result": true,
"documents": [
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f04494f0ec292c33e3110da",
"__v": 0,
"value": "X-REC_VUUID: (.*)",
"type": "regex",
"tagName": "uuid"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449600ec292c33e3110db",
"__v": 0,
"value": "X-REC_AGENT: (.*)",
"type": "regex",
"tagName": "agent"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f04496c0ec292c33e3110dc",
"__v": 0,
"value": "Call-ID: (.*)",
"type": "regex",
"tagName": "callId"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449790ec292c33e3110dd",
"__v": 0,
"value": "Start: (.*)",
"type": "regex",
"tagName": "startTs"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449c30ec292c33e3110de",
"__v": 0,
"value": "Duration: (.*)",
"type": "regex",
"tagName": "duration"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449ce0ec292c33e3110df",
"__v": 0,
"value": "X-REC_EXTENSION: (.*)",
"type": "regex",
"tagName": "extension"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449e50ec292c33e3110e0",
"__v": 0,
"value": "X-REC_REMOTE: (.*)",
"type": "regex",
"tagName": "remote"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449ef0ec292c33e3110e1",
"__v": 0,
"value": "X-REC_ECID: (.*)",
"type": "regex",
"tagName": "ecid"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f0449f90ec292c33e3110e2",
"__v": 0,
"value": "X-REC_MACROACTIVITY: (.*)",
"type": "regex",
"tagName": "macroactivity"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f044a050ec292c33e3110e3",
"__v": 0,
"value": "auto: (.*)",
"type": "regex",
"tagName": "auto"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f044a100ec292c33e3110e4",
"__v": 0,
"value": "CallType: (.*)",
"type": "regex",
"tagName": "callType"
},
{
"replace": {
"searchValue": "",
"newValue": ""
},
"_id": "5f044a1c0ec292c33e3110e5",
"__v": 0,
"value": "RecorderAddr: (.*)",
"type": "regex",
"tagName": "recorderAddr"
}
],
"error": null
}