Create an Issue View
POST /api/0/organizations/{organization_id_or_slug}/group-search-views/
Create a new custom view for the current organization member.
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
Body Parameters
name(string)REQUIREDThe name of the issue view.
query(string)REQUIREDThe issue search query. Issue search does not support the
AND/ORboolean operators or parenthesized boolean groups. To match any of several values, use the list form instead:issue:[PROJ-AB1, PROJ-CD2],issue.priority:[high, medium].projects(array(integer))REQUIREDThe project IDs included in the view. Use
-1to include all projects.environments(array(string))REQUIREDThe environment names included in the view. An empty list includes all environments.
timeFiltersREQUIREDThe time range for the view.
querySort(string)How to sort issues in the view.
date- Last Seennew- First Seentrends- Trendsfreq- Eventsuser- Usersinbox- Date Addedrecommended- Recommended
starred(boolean)Whether to star the issue view for the current user.
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:member:readmember:write
Copied
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/group-search-views/ \ -H 'Authorization: Bearer <auth_token>' \ -H 'Content-Type: application/json' \ -d '{}'
RESPONSESCHEMA
Copied.
Was this helpful?