Skip to main content
POST
/
v2
/
{entity}
/
{project}
/
scores
{
  "score_id": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

entity
string
required
project
string
required

Body

application/json

Request body for creating a Score via REST API.

This model excludes project_id since it comes from the URL path in RESTful endpoints.

prediction_id
string
required

The prediction ID

scorer
string
required

The scorer reference (weave:// URI)

value
number
required

The value of the score

evaluation_run_id
string | null

Optional evaluation run ID to link this score as a child call

Response

Successful Response

score_id
string
required

The score ID