Operations 5
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“Which saved segments exist on my project's dashboard?”
“Can I list saved views on a password-protected project?”
Tell an agent
List the saved views for project {pid}.
Show every saved dashboard segment in project {pid}.
Ask an LLM
“How do I save a filtered segment of my dashboard for reuse?”
“Can a saved view include both filters and custom events?”
Tell an agent
Create a {type} view named {name} in project {pid}.
Save a new {type} segment {name} in project {pid} with filters {filters}.
GET
/v1/project/{pid}/views/{viewId}
View one saved dashboard view's configuration · Get Project View
#
Ask an LLM
“What filters are stored in a particular saved view?”
“Can I fetch a single saved segment's settings by its ID?”
Tell an agent
Get saved view {viewId} in project {pid}.
Show the configuration of segment {viewId} on project {pid}.
PATCH
/v1/project/{pid}/views/{viewId}
Change a saved view's name, filters or events · Update Project View
#
Ask an LLM
“Can I change the filters on a segment I already saved?”
“Is renaming an existing saved view possible?”
Tell an agent
Rename saved view {viewId} in project {pid} to {name}.
Update the filters of existing view {viewId} on project {pid} to {filters}.
Ask an LLM
“How do I get rid of a saved segment I don't use anymore?”
“Can I delete one saved view from a project's dashboard?”
Tell an agent destructive · confirm first
Delete saved view {viewId} from project {pid}.
Remove segment {viewId} on project {pid}.
Documentation
Documentation
https://swetrix.com/docs/statistics-api
Documentation
https://swetrix.com/docs/admin-api