Smart Views
Smart Views are "saved search queries" in Close and show up in the sidebar in the UI. They can be private for a user or shared with an entire Organization.
Smart Views can filter by leads or contacts.
List Smart Views.
GET /saved_search/{?type, type__in}
Accepts:
- A
type
filter that accepts eitherlead
orcontact
. Defaults tolead
. - A
type__in
filter that can be used to select multiple comma-separated types:lead,contact
.
Create a Lead Smart View.
POST /saved_search/
For Lead Smart Views, the type
field is optional (since lead
is the default type
).
When creating a Lead Smart View, you must specify that you want to get objects of type lead
via a specify object_type
clause as per the Advanced Filtering section. See the example below.
Create a Contact Smart View.
POST /saved_search/
When creating a Contact Smart View, you must specify that you want to get objects of type contact
via a specify object_type
clause as per the Advanced Filtering section. See the example below.
Get a single Smart View.
GET /saved_search/{id}/
Update a Smart View.
PUT /saved_search/{id}/
Delete a Smart View.
DELETE /saved_search/{id}/