Views

Create or replace view

Changed on

Create or replace view. If there is an existing view with the same name as the one specified in the request, will replace the existing view with the provided fields

put/v1/view

Request

  • Base URL
    https://api.braintrust.dev
  • Auth
    • HTTP bearer
    • or none

Request body

object_type'organization' | 'project' | 'experiment' | 'dataset' | 'prompt' | 'prompt_session' | 'group' | 'role' | 'org_member' | 'project_log' | 'org_project' | 'org_audit_logs' | 'project_group' | 'project_group_projects' | 'ai_secret' | 'org_ai_secret' | 'org_account' required

The object type that the ACL applies to

object_idstring uuid required

The id of the object the view applies to

view_type'projects' | 'experiments' | 'experiment' | 'playgrounds' | 'playground' | 'datasets' | 'dataset' | 'prompts' | 'parameters' | 'tools' | 'scorers' | 'classifiers' | 'logs' | 'patterns' | 'monitor' | 'for_review_project_log' | 'for_review_experiments' | 'for_review_datasets' required

Type of object that the view corresponds to.

namestring required

Name of the view

descriptionstring nullable

Textual description of the view

user_idstring uuid nullable

Identifies the user who created the view

deleted_atstring date-time nullable

Date of role deletion, or null if the role is still active

Response

Returns the new view object

idstring uuid required

Unique identifier for the view

object_type'organization' | 'project' | 'experiment' | 'dataset' | 'prompt' | 'prompt_session' | 'group' | 'role' | 'org_member' | 'project_log' | 'org_project' | 'org_audit_logs' | 'project_group' | 'project_group_projects' | 'ai_secret' | 'org_ai_secret' | 'org_account' required

The object type that the ACL applies to

object_idstring uuid required

The id of the object the view applies to

view_type'projects' | 'experiments' | 'experiment' | 'playgrounds' | 'playground' | 'datasets' | 'dataset' | 'prompts' | 'parameters' | 'tools' | 'scorers' | 'classifiers' | 'logs' | 'patterns' | 'monitor' | 'for_review_project_log' | 'for_review_experiments' | 'for_review_datasets' required

Type of object that the view corresponds to.

namestring required

Name of the view

descriptionstring nullable

Textual description of the view

starredboolean

Whether the view is starred in its project

createdstring date-time nullable

Date of view creation

updated_atstring date-time nullable

Date of last view update

user_idstring uuid nullable

Identifies the user who created the view

deleted_atstring date-time nullable

Date of role deletion, or null if the role is still active

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property / became not nullable

    • breaking

      the request property / became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      the request property // became not nullable

    • breaking

      the request property /// became not nullable

    • breaking

      removed the enum value undefined of the request property

    • info

      removed the undefined enum value from the response property for the response status

    • warning

      added the new patterns enum value to the response property for the response status

    • info

      added the new patterns enum value to the request property