Documentation Index
Fetch the complete documentation index at: https://braintrust.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Applies to:
- Plan -
- Deployment -
Summary
You can duplicate views across projects using the Braintrust API. This is useful for programmatic or bulk operations. Features: Views API, monitor custom charts, logs/experiment/dataset table views. To copy a view with the API, export its configuration via the List Views API and recreate it in the destination project via the Create View API.View type reference
Different view types require differentobject_type and object_id values. Use this table to determine the correct parameters for the view you want to duplicate.
| View | object_type | object_id | view_type |
|---|---|---|---|
| Monitor custom charts | org_project | your org ID | monitor |
| Logs table | project | project ID | logs |
| Experiments list | project | project ID | experiments |
| Single experiment table | project | project ID | experiment |
| Datasets list | project | project ID | datasets |
| Single dataset table | project | project ID | dataset |
Duplicating monitor custom charts
Monitor views are org-scoped, so theobject_type is org_project and the object_id is your org ID. The project a monitor view applies to is stored inside options.options.projectId.
Step 1: List monitor views in your org
view_data and options fields.
Step 2: Create the view for a different project
Post the sameview_data and options, but change options.options.projectId to the destination project ID.
Step 3: Verify
Navigate to Monitor in the destination project and confirm the view appears with the correct charts.Duplicating project-level views (logs, experiments, datasets)
Project-level views useobject_type: "project" with the project ID as object_id. To duplicate, list the views in the source project and recreate them in the destination.
Step 1: List views in the source project
Replaceyour-view-type with the type from the reference table above (e.g., logs, experiments, dataset).
Step 2: Create the view in the destination project
Post the sameview_data and options, but change object_id to the destination project ID.