How This Helps
A saved view captures the current filter state of a dataset — entity type, search query, VQL filters, and threshold — so you can return to the same filtered perspective without reconfiguring it. Views are tied to a dataset and visible to anyone with access to it.
Prerequisites
- A Visual Layer Cloud account with API access.
- A valid JWT token. See Authentication.
- A dataset ID. See Retrieve Dataset Status.
Create a View
Save the current filter state of a dataset as a named view.Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
name | form field | string | Yes | Display name for the view. |
entity_type | query param | string | No | IMAGES, OBJECTS, or VIDEOS. |
threshold | query param | number | No | Similarity threshold (0–1). |
caption | query param | string | No | Caption search query to save with the view. |
vql | query param | string | No | URL-encoded VQL filter array. |
Example
Response
id — you need it to delete the view later.
List Views
Retrieve all saved views for a dataset.Example
Response
Delete a View
Delete a saved view by its ID.Example
null body.
Python Example
Response Codes
See Error Handling for the error response format and Python handling patterns.| HTTP Code | Meaning |
|---|---|
| 200 | Request successful. |
| 401 | Unauthorized — check your JWT token. |
| 404 | Dataset or view not found. |
| 500 | Internal Server Error — contact support if this persists. |