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

documents

Status
titleOBJECT

list of profile objects

Example:

Request:

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

Response:

Code Block
languagejson
{
    "result": true,
    "documents": [
        {
            "securityRules": {
                "onlyPartner": falsetrue,
                "onlyCallcenter": false,
                "onlyMacroactivity": false
            },
            "allowedActions": {
                "canPlay": true,
                "canDownload": true,
                "canEdit": true,
                "canDelete": true,
                "canListenOriginalAudio": true
            },
            "hideTags": [],
            "searchableTags": [],
            "editableTags": [
                {
                    "options": [
                        "YES",
                        "NO"
                    ],
                    "_id": "5f3255752aa616456ca03fe0",
                    "name": "validazione",
                    "type": "select"
                },
                {
                    "options": [],
                    "_id": "5eea3d2919eb88cfb639fecb5f3255752aa616456ca03fdf",
                    "name": "note",
                    "type": "default"text"
                }
            ],
            "_id": "5eeb85035bdd4841745497e3",
            "__v": 0,
            "description": "profilo di default visibilità solo partner",
            "name": "onlyPartner"
        },
        {
            "securityRules": {
                "onlyPartner": true,
                "onlyCallcenter": falsetrue,
                "onlyMacroactivity": false,
                "onlyTags": "{\"tags.ECID\" : \"saasher|11|41479|57\"}"
            },
            "allowedActions": {
                "canPlay": true,
                "canDownload": true,
                "canEdit": true,
                "canDelete": true,
                "canListenOriginalAudio": true
            },
            "hideTags": [
                "agent",
                "callId"
            ],
            "searchableTags": [
                "ECID",
                "AGENT"
            ],
            "editableTags": [
                {
                    "options": [
                        "YES",
                        "NO"
                    ],
                    "_id": "5f33bcf74a682e2d48629788",
                    "name": "validazione",
                    "type": "select"
                },
                {
                    "5eeb85035bdd4841745497e3options": [],
                    "__v": 0id": "5f33bcf74a682e2d48629787",
                    "name": "note",
                    "type": "text"
                }
            ],
            "_id": "5eea3d2919eb88cfb639fecb",
            "descriptionname": "profilo visibilità solo partner"default",
            "__v": 0,
            "namedescription": "onlyPartnerprofilo default"
        }
    ],
    "error": null
}