Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
evaluation-criteria
cURL
curl --request POST \
  --url https://api.example.com/api/v2/projects/{project_id}/evaluation-criteria \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "target_type": "prompt",
  "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "llm_eval_enabled": true,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

Body

application/json
name
string
required
target_type
enum<string>
required
Available options:
prompt,
agent
target_id
string<uuid>
required
type
string
required
llm_eval_enabled
boolean
required
id
string<uuid> | null

Response

201 - application/json

CreateEvaluationCriteriaResponse(id: uuid.UUID)

id
string<uuid>
required