/v3/views to manage the saved Views used by Traces and Logs. A View stores a display name, page, filter string, columns, optional column labels, and visibility.
Access
Authenticate with a workspace-wide API key and grant theview permission domain. Read access permits listing and retrieving shared Views; write access also permits creating, updating, and deleting them. Project-scoped API keys cannot access workspace Views.
Private Views require a user session. Only users listed in private_for_ids can list, retrieve, update, or delete a private View. API keys can access shared Views only, and cannot create private Views or convert shared Views to private Views.
Create and retrieve a View
Setdisplay_name and page. Supported pages are traces, traces-studio, logs, and finder. Duplicate names are allowed.
cURL
view. Use the returned view.id with GET /v3/views/{view_id}.
Set is_private: true when creating a View with a user session to limit access to that user. Set is_default: true to make a View the default for its page and visibility: a shared default replaces the previous shared default, while a private default replaces that user’s private default on the same page.
List Views
cURL
data and has_more. Set starting_after to the last returned View’s id for the next page, or ending_before to the first returned View’s id for the previous page. Use one cursor at a time. The default limit is 10 and the maximum is 100. Omit page to list all accessible Views.
Update and delete a View
Send changed fields toPATCH /v3/views/{view_id}. Omitted scalar fields retain their saved values. When setting update_mask, include every field to change; fields outside the mask retain their saved values. To clear all columns or column labels, include their paths in the mask. Protobuf JSON encodes the mask as a comma-separated string.
cURL
DELETE /v3/views/{view_id}. A successful deletion returns an empty JSON object. Missing Views, Views in another workspace, and private Views outside the caller’s access return 404.
See the Views API reference for the complete request and response fields. Replace legacy /v2/views and /v2/workspaces/views calls with /v3/views and the response shapes above.