Skip to main content

Uniphore Customer Portal

Get Preferences

Use the get preferences request to get a list of your private and shared preferences and their details.

As mentioned previously a preference works as a saved view for the U-Capture application, this can include what metadata columns to display and in what order, as well as set a filter for that view such as a specific date/time range. Preferences can be shared (available to everyone in your organization) or private (just for one user).

Endpoint

Method: GET

URL: /preference

Response and Error Code

Response Code

Condition

200

OK

Response Parameter

Parameter Name

Data Type

Description

preferences

Array

A list of the preferences available to you. Each preference usually consisting of the following parameters.

category

String

The category of the preference, this will show as PREFERENCE_CATEGORY_VIEW_STATE.

scope

String

Determines if the preference is shared (ACCESS_SCOPE_PUBLIC) or private (ACCESS_SCOPE_PRIVATE_AUTOSAVED).

id

Integer

The automatically generated unique ID for the preference.

title

String

A useful name for the preference (view).

viewState

Array

The details that determine how the preference works, what the view will show, consisting of the following parameters, fields, filter, and pageSize.

fields

Array

A comma separated list of metadata fields to display as columns in the U-Capture application when using the preference.

filter

Array

A filter to apply automatically apply when using the preference, for more information on filters, see Filters.

pageSize

Number

Placeholder for future enhancements.

isOwner

Boolean

If the user responsible for the get preferences request is the owner of the preference. Either true (the user is the owner) or the isOwner parameter will not be displayed in the response if the user is not the owner.

Sample Response
{
    "preferences": [
        {
            "category": "PREFERENCE_CATEGORY_VIEW_STATE",
            "scope": "ACCESS_SCOPE_PRIVATE_AUTOSAVED",
            "id": "14441",
            "viewState": {
                "fields": [
                    "agentFullName",
                    "agent.extension",
                    "callProperties.startDate",
                    "agent.location",
                    "agent.manager",
                    "agent.number"
                ],
                "filter": {
                    "groupFilter": {
                        "leftGroupFilter": {
                            "leftGroupFilter": {
                                "leftFilter": {
                                    "fieldName": "agent.extension",
                                    "operator": "CONVERSATION_FILTER_OPERATOR_CONTAINS",
                                    "stringValue": "502"
                                }
                            }
                        },
                        "operator": "CONVERSATION_LOGICAL_OPERATOR_AND",
                        "rightGroupFilter": {
                            "leftFilter": {
                                "fieldName": "callProperties.startDate",
                                "operator": "CONVERSATION_FILTER_OPERATOR_GREATER_THAN_OR_EQUAL",
                                "timestampValue": "2024-06-17T23:00:00Z"
                            },
                            "operator": "CONVERSATION_LOGICAL_OPERATOR_AND",
                            "rightFilter": {
                                "fieldName": "callProperties.endDate",
                                "operator": "CONVERSATION_FILTER_OPERATOR_LESS_THAN_OR_EQUAL",
                                "timestampValue": "2024-09-16T22:59:59.999Z"
                            }
                        }
                    },
                    "pageSize": "0"
                }
            },
            "isOwner": true
        },
        {
            "category": "PREFERENCE_CATEGORY_VIEW_STATE",
            "scope": "ACCESS_SCOPE_PUBLIC",
            "id": "12191",
            "title": "new shared view",
            "viewState": {
                "fields": [
                    "agentFullName",
                    "callProperties.otherPartyName",
                    "conversationId",
                    "callProperties.startDate",
                    "agent.number",
                    "agent.manager",
                    "agent.location",
                    "agent.lastName",
                    "agent.id",
                    "agent.extension"
                ],
                "filter": {
                    "groupFilter": {
                        "leftFilter": {
                            "fieldName": "callProperties.startDate",
                            "operator": "CONVERSATION_FILTER_OPERATOR_GREATER_THAN_OR_EQUAL",
                            "timestampValue": "2024-06-01T18:30:00Z"
                        },
                        "operator": "CONVERSATION_LOGICAL_OPERATOR_AND",
                        "rightFilter": {
                            "fieldName": "callProperties.endDate",
                            "operator": "CONVERSATION_FILTER_OPERATOR_LESS_THAN_OR_EQUAL",
                            "timestampValue": "2024-06-05T18:29:59.999Z"
                        }
                    },
                    "pageSize": "0"
                }
            }
        }
    ]
}