Create a Smart View

View as Markdown
Create a Lead or Contact Smart View. For Lead Smart Views, the `type` field is optional (since `lead` is the default `type`). When creating a Smart View, you must specify that you want to get objects of the appropriate type via an `object_type` clause as per the [Advanced Filtering](/resources/advanced-filtering/) section. See the examples below.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:)>.

OR
AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects any.

Response

Successful response
date_createddatetime
date_updateddatetime
descriptionstring or null
idstring
is_sharedboolean
is_user_dependentboolean or null
namestring
organization_idstring
querystring or null
s_querymap from strings to any or null
typeenum
user_idstring or null
selected_fieldslist of maps from strings to any or null
shared_withlist of strings or null
sharing_settingsobject or null

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error