Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Type

Description

result

Status
titleBOOLEAN

If true, the service response was performed correctly

error

Status
titleNULL
/
Status
titleSTRING

Contains the error description if an error has occurred in the request

iddocument

Status
titleSTRINGobject

The document id. (only if new document is created, otherwise empty string)saved on mongo db.

Example:

Request:

http://<hostname>:<port>/ctreplay/default/saveExportRule

...

Code Block
languagejson
  {
    "document":{
        "idname" : "5f4e175a3a239d29a425b7b8Esportazione ogni notte",
        "nameenable" : "Esportazione notturna"true,
        "schedule" : "0 0 1 * * *",
        "query" : "{\"macroactivity\": \"DEFAULT\"}",
        "destination" : {
            "type" : "fs",
            "path" : "/destination",
            "parameters"server" : "",
            "port" : "",
            "username" : "",
            "password" : ""
        },
        "format" : "zip",
        "fileNamePattern" : "callId",
        "maxNumber" : 500,
        "blockSize" : "100",
        "action" : "export",
        "userexportWithTags" : "admin"false
    }
  }

Response:

Code Block
languagejson
{
    "result": true,
    "error": null,
    "document": {
        "name": "Esportazione ogni notte",
        "enable": true,
        "schedule": "0 0 1 * * *",
        "query": "{\"macroactivity\": \"DEFAULT\"}",
        "destination": {
            "type": "fs",
            "path": "/destination",
           "id": "" "server": "",
            "port": "",
            "username": "",
            "password": ""
        },
        "format": "zip",
        "fileNamePattern": "callId",
        "maxNumber": 500,
        "blockSize": "100",
        "action": "export",
        "exportWithTags": false,
        "user": "admin",
        "$setOnInsert": {
            "__v": 0
        },
    "error    "_id": null"5f5a4a561f05c72768e22d85"
    }
}