Skip to content

Update Project

PUT
/api/projects/{project_id}
curl --request PUT \
--url http://localhost:8080/api/projects/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "base_url": "example", "description": "example", "ai_config_id": "example", "notify_webhook": "example", "notify_on": "example", "notify_email": "example", "default_retries": 1, "score_threshold": 1, "judge_ai_config_id": "example", "settings": {} }'
project_id
required
Project Id
string
Media typeapplication/json
ProjectUpdate
object
name
Any of:
string
base_url
Any of:
string
description
Any of:
string
ai_config_id
Any of:
string
notify_webhook
Any of:
string
notify_on
Any of:
string
notify_email
Any of:
string
default_retries
Any of:
integer
<= 5
score_threshold
Any of:
number
<= 1
judge_ai_config_id
Any of:
string
settings
Any of:
object
Examplegenerated
{
"name": "example",
"base_url": "example",
"description": "example",
"ai_config_id": "example",
"notify_webhook": "example",
"notify_on": "example",
"notify_email": "example",
"default_retries": 1,
"score_threshold": 1,
"judge_ai_config_id": "example",
"settings": {}
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}