Update Project
PUT
/api/projects/{project_id}
const url = 'http://localhost:8080/api/projects/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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": {} }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
ProjectUpdate
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": {}}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}