Skip to main content
PATCH
Updates one criterion. For criteria created from a default, only blocking can be changed.

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.
string
required
Criterion ID.

Body parameters

string
New criterion name for custom criteria.
string
New judge prompt for judge criteria.
string
New pass prompt for judge criteria.
string
New fail prompt for judge criteria.
object
New condition for deterministic criteria.
boolean
Whether failing this criterion should fail the conversation overall.
boolean
Whether the criterion is active.

Response

Returns the updated Criterion object.