Skip to main content
POST
Create project_score

Authorizations

Authorization
string
header
required

Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.

Body

application/json

Any desired information about the new project_score object

A project score is a user-configured score, which can be manually-labeled through the UI

project_id
string<uuid>
required

Unique identifier for the project that the project score belongs under

name
string
required

Name of the project score

score_type
enum<string>
required

The type of the configured score

Available options:
slider,
categorical,
weighted,
minimum,
maximum,
online,
free-form
description
string | null

Textual description of the project score

categories

For categorical-type project scores, the list of all categories

config
object | null

Response

Returns the new project_score object

A project score is a user-configured score, which can be manually-labeled through the UI

id
string<uuid>
required

Unique identifier for the project score

project_id
string<uuid>
required

Unique identifier for the project that the project score belongs under

user_id
string<uuid>
required
name
string
required

Name of the project score

score_type
enum<string>
required

The type of the configured score

Available options:
slider,
categorical,
weighted,
minimum,
maximum,
online,
free-form
created
string<date-time> | null

Date of project score creation

description
string | null

Textual description of the project score

categories

For categorical-type project scores, the list of all categories

config
object | null
position
string | null

An optional LexoRank-based string that sets the sort position for the score in the UI