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

Version 1 Next »

Retrieves all profile documents.

HTTP GET /ctreplay/:domain?/getProfiles

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 profile objects

Example:

Request:

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

Response:

{
    "result": true,
    "documents": [
        {
            "securityRules": {
                "onlyPartner": false,
                "onlyCallcenter": false,
                "onlyMacroactivity": false
            },
            "allowedActions": {
                "canPlay": true,
                "canDownload": true,
                "canEdit": true
            },
            "_id": "5eea3d2919eb88cfb639fecb",
            "name": "default",
            "__v": 0,
            "description": "profilo di default"
        },
        {
            "securityRules": {
                "onlyPartner": true,
                "onlyCallcenter": false,
                "onlyMacroactivity": false
            },
            "allowedActions": {
                "canPlay": true,
                "canDownload": true,
                "canEdit": true
            },
            "_id": "5eeb85035bdd4841745497e3",
            "__v": 0,
            "description": "profilo visibilità solo partner",
            "name": "onlyPartner"
        }
    ],
    "error": null
}
  • No labels