/
getProfiles
getProfiles
Retrieves all profile documents.
HTTP get /ctreplay/:domain?/getProfiles
Path variables:
Name | Mandatory | Type | Description |
---|---|---|---|
domain | NO | STRING | Unique domain identifier |
Authorization: BEARER (token returned by EasyCIM SSO)
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": true,
"onlyCallcenter": false,
"onlyMacroactivity": false
},
"allowedActions": {
"canPlay": true,
"canDownload": true,
"canEdit": true,
"canDelete": true,
"canListenOriginalAudio": true,
"canReopen": true
},
"hideTags": [],
"searchableTags": [],
"editableTags": [
{
"options": [
"YES",
"NO"
],
"_id": "5f3255752aa616456ca03fe0",
"name": "validazione",
"type": "select",
"immutable" : false
},
{
"options": [],
"_id": "5f3255752aa616456ca03fdf",
"name": "note",
"type": "text",
"immutable" : false
}
],
"hideTagsForSearch" : [],
"_id": "5eeb85035bdd4841745497e3",
"__v": 0,
"description": "profilo visibilità solo partner",
"name": "onlyPartner"
},
{
"securityRules": {
"onlyPartner": true,
"onlyCallcenter": true,
"onlyMacroactivity": false,
"onlyTags": "{\"tags.ECID\" : \"saasher|11|41479|57\"}"
},
"allowedActions": {
"canPlay": true,
"canDownload": true,
"canEdit": true,
"canDelete": true,
"canListenOriginalAudio": true,
"canReopen": true
},
"hideTags": [
"agent",
"callId"
],
"searchableTags": [
"ECID",
"AGENT"
],
"editableTags": [
{
"options": [
"YES",
"NO"
],
"_id": "5f33bcf74a682e2d48629788",
"name": "validazione",
"type": "select",
"immutable" : false
},
{
"options": [],
"_id": "5f33bcf74a682e2d48629787",
"name": "note",
"type": "text",
"immutable" : false
}
],
"hideTagsForSearch" : [],
"_id": "5eea3d2919eb88cfb639fecb",
"name": "default",
"__v": 0,
"description": "profilo default"
}
],
"error": null
}