Skip to main content
Applies to:
  • Plan -
  • Deployment -

Summary

Goal: Create a blank monitoring view with no pre-populated charts using the Views API. Features: POST /v1/view endpoint, Monitor page.

Configuration steps

Create a blank view via API

POST to /v1/view with an empty custom_charts layout. Replace placeholder values with your actual IDs and desired view name.
curl --request POST \
  --url https://api.braintrust.dev/v1/view \
  --header 'Authorization: Bearer <your-api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "object_type": "org_project",
    "object_id": "<your-org-id>",
    "name": "<view-name>",
    "view_type": "monitor",
    "options": {
      "viewType": "monitor",
      "options": {
        "projectId": "<your-project-id>",
        "type": "project"
      }
    },
    "view_data": {
      "custom_charts": {
        "layout": {
          "type": "linear",
          "order": []
        },
        "charts": {},
        "version": "0.0.0"
      }
    }
  }'
The view_data.custom_charts.charts object must be empty ({}) and layout.order must be an empty array ([]) to produce a view with no charts.