...
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
result |
| If true, the service response was performed correctly | ||||||||
error |
| Contains the error description if an error has occurred in the request | ||||||||
iddocument |
| 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 | ||
---|---|---|
| ||
{ "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 | ||
---|---|---|
| ||
{ "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" } } |