Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Inserts/updates an export rule document.

HTTP POST /ctreplay/:domain?/saveExportRule

Path variables:

Name

Mandatory

Type

Description

domain

NO

STRING

Unique domain identifier

Authorization: BEARER

Request body:

Name

Mandatory

Type

Description

document

YES

OBJECT

export rule object to be saved/updated. (if id property is present the profile will be updated, otherwise a new profile will be inserted)

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

id

STRING

document id. (only if new document is created, otherwise empty string)

Example:

Request:

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

Request Body:

  {
    "document":{
        "id" : "5f4e175a3a239d29a425b7b8",
        "enable" : true,
        "name" : "Esportazione notturna",
        "schedule" : "0 0 1 * * *",
        "query" : "{\"macroactivity\": \"DEFAULT\"}",
        "destination" : {
            "type" : "fs",
            "path" : "/destination",
            "parameters" : ""
        },
        "format" : "archive",
        "fileNamePattern" : "callId",
        "maxNumber" : 500,
        "blockSize" : "100",
        "action" : "export",
        "user" : "admin"
    }
  }

Response:

{
    "result": true,
    "id": "",
    "error": null
}
  • No labels