Search...
/
Contact
Sign in
Documentation
API Reference
Glossary
Overview
API Reference
Testset
GET
Read Testset
DEL
Delete
PATCH
Update Testset
POST
Create Testset
GET
Read Testset Schema
GET
Read Testcases
Testcase
POST
Create Testcase
GET
Read Testcase
DEL
Delete Testcase
PATCH
Update Testcase
POST
Batch Copy Testcases
PATCH
Batch Delete Testcases
Testrecord
GET
Read Testrecord
POST
Create Testrecord
Run
POST
Create Run
GET
Read Run
PATCH
Update Run Status
Score
POST
Create Score
PATCH
Update Score
Run Metric
GET
Read Run Metrics
Tracing
GET
Get Traces
GET
Get Trace
GET
Get Trace Span
Prompt
GET
Get Prompt By Name
POST
Create Prompt
GET
Get Prompt By Id
DEL
Delete Scoring Config
PATCH
Update Prompt
Scoring Config
POST
Create Scoring Config
GET
Get Scoring Config
Contact
Sign in
API Reference
Score
Update Score
PATCH
https://
api.getscorecard.ai
/
v1
/
run
/
:run_id
/
testrecord
/
:testrecord_id
/
score
/
:score_id
Update a score
Path parameters
run_id
integer
Required
The run ID that created the test record to be scored.
testrecord_id
integer
Required
The ID of the testrecord whose score will be updated.
score_id
integer
Required
The ID of the score to be updated.
Request
This endpoint expects an object.
int_score
integer
Optional
The new integer score to assign.
binary_score
boolean
Optional
The new boolean score to assign.
reasoning
string
Optional
The reasoning for the score update.
Response
This endpoint returns an object
user_id
string
Optional
id
integer
Optional
The ID of the grade.
run_id
integer
Optional
The ID of the run that created the grade.
testcase_id
integer
Optional
The ID of the testcase associated with the grade.
testrecord_id
integer
Optional
The ID of the testrecord for which the grade was created.
metric_id
integer
Optional
The ID of the metric used to compute the grade.
binary_score
boolean
Optional
The binary score assigned to the grade.
int_score
integer
Optional
The integer score assigned to the grade.
reasoning
string
Optional
The reasoning for the assigned score.
human_eval
boolean
Optional
Indicates if a human should assign a grade.
status
enum
Optional
Allowed values:
pending
error
completed
The status of the grade.
error_message
string
Optional
The error message if the grade was not created successfully.
created_at
datetime
Optional
when the grade was created.
updated_at
datetime
Optional
when the grade was last updated.
Errors
401
Unauthorized
403
Forbidden
404
Not Found
422
Unprocessable Entity
Built with