Skip to main content
POST
Adds one or more criteria to a test set. Send either a defaultCriterionId or a full custom criterion definition.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
string
required
application/json

Path parameters

string
required
Test set ID.

Body parameters

array
required
One or more criteria to attach to the test set.
string
Default criterion ID from Get fields context. When this is present, do not send custom definition fields; the API copies the default’s definition.
string
Required for custom criteria.
string
Required for custom criteria. Use deterministic, basic_judge, or complex_judge.
string
Required for basic_judge and complex_judge criteria.
string
Required for basic_judge and complex_judge criteria.
string
Required for basic_judge and complex_judge criteria.
object
Required for deterministic criteria. Judge criteria cannot include a condition.
boolean
default:"false"
Whether failing this criterion should fail the conversation overall.

Response

Returns the test set’s updated criteria array.