Get Details of user Preference

Description

You can use this API to get details of user preferences on a tracking preset.

OAuth Scope: 

SalesIQ.userpreferences.READ

URL:

Copiedhttps://{[zohosalesiq_server_uri](https://www.zoho.com/salesiq/help/developer-section/rest-api-v2.html)}/api/v2/{screenname}/userpreferences

Example

Copiedhttps://salesiq.zoho.com/api/v2/zylkerinc/userpreferences

Success Response

Copied{
  "url": "/api/v2/zylkerinc/userpreferences",
  "object": "userpreference_config",
  "data": {
    "visitorhistoryviews": {
      "list_three": {
        "view_id": "-2",
        "view_name": "Returning Visitors"
      },
      "list_two": {
        "view_id": "40526000000286213",
        "view_name": "Chrome Visitors"
      },
      "list_one": {
        "view_id": "40526000001402003",
        "view_name": "Last Visited Time in the last 1 Day "
      }
    },
    "tracking": {
      "applied_preset": {
        "enabled": true,
        "name": "uts.tracking.config.pchats",
        "applied": true,
        "description": "",
        "rule": {
          "ring_three": [
            {
              "or_criteria": [
                {
                  "comparator": "greater_than",
                  "values": [
                    "3"
                  ],
                  "field_name": "number_of_past_chats"
                }
              ]
            }
          ],
          "ring_two": [
            {
              "or_criteria": [
                {
                  "comparator": "greater_than",
                  "values": [
                    "5"
                  ],
                  "field_name": "number_of_past_chats"
                }
              ]
            }
          ],
          "ring_four": [
            {
              "or_criteria": [
                {
                  "comparator": "greater_than",
                  "values": [
                    "1"
                  ],
                  "field_name": "number_of_past_chats"
                }
              ]
            }
          ],
          "ring_one": [
            {
              "or_criteria": [
                {
                  "comparator": "greater_than",
                  "values": [
                    "7"
                  ],
                  "field_name": "number_of_past_chats"
                }
              ]
            }
          ]
        },
        "modified_time": "1560935241163",
        "system_generated": true,
        "id": "40526000000002071"
      },
      "view": "ring",
      "hide_other_agent_connected_visitors": "enabled"
    }
  }
}