Update the details of Visitor History View
Description
You can use this API to update the details of the visitor history view.
Requested Payload:
- and_criteria - To add more than one condition and criteria to the rule.
- or_criteria : Specifies a set of criteria containing the comparator, values and fieldname ie., you can provide more than one criteria and the rule will execute if the visitor matches any of the given criteria.
- field_name : Fields that you set to filter the visitor who matches the rule.
- sub_field: The sub field that you set to filter the visitor who matches the rule.
- comparator : The comparator strings for that specific rule you have set is used to match the values (eg: contains, is_equal_to, etc.)
- values : The values that you have defined for each field that the visitor should obtain to match the rule.
- integ_name : The name of the integration.
- or_criteria : Specifies a set of criteria containing the comparator, values and fieldname ie., you can provide more than one criteria and the rule will execute if the visitor matches any of the given criteria.
- name - To name the visitor history list view.
- sort_by - To sort the visitor history list based on the default options (Values:frequency, leadscore, last_visit_time, time_on_site.)
- favourited - To mark the visitor history list as your favourite.
OAuth Scope:
SalesIQ.visitorhistoryviews.UPDATE
URL:
Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screenname}/visitorhistoryviews/{id}
Example
Copiedhttps://salesiq.zoho.com/api/v2/zylker/visitorhistoryviews/66000000011015
Request Payload
Copied{
"and_criteria": [
{
"or_criteria": [
{
"field_name": "browser",
"comparator": "is_equal_to",
"values": [
"opera"
]
},
{
"comparator": "is_equal_to",
"sub_field": "No of Open Deals",
"values": [
"12"
],
"field_name": "crm_deal",
"integ_name": "zohocrm"
}
]
}
],
"sort_by": "leadscore",
"favourited": false,
"name": "Patricia"
}
Sample Response
Copied{
"url": "/api/v2/zylker/visitorhistoryviews/66000000011015",
"object": "visitorhistoryview",
"data": {
"and_criteria": [
{
"or_criteria": [
{
"comparator": "is_equal_to",
"values": [
"opera"
],
"field_name": "browser"
},
{
"comparator": "is_equal_to",
"sub_field": "No of Open Deals",
"values": [
"12"
],
"field_name": "crm_deal",
"integ_name": "zohocrm"
}
]
}
],
"system": false,
"favourited": false,
"name": "Patricia",
"creator": {
"id": "66000000000005"
},
"sort_by": "leadscore",
"modified_time": 1555917442819,
"id": "66000000011001"
}
}