Skip to main content
PUT
/
api
/
agent-server
/
models
/
{id}
Update a model
curl --request PUT \
  --url http://localhost:6060/api/agent-server/models/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "model_id": "<string>",
  "provider_type": "OpenAI",
  "parameters": {}
}
'
{
  "error": true,
  "message": "<string>",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "model_id": "<string>",
    "provider_type": "<string>",
    "parameters": {},
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  },
  "status": 123,
  "errorDetails": {}
}

Path Parameters

id
string<uuid>
required

Query Parameters

project_id
string<uuid>
required

Body

application/json
name
string
model_id
string
provider_type
enum<string>
Available options:
OpenAI,
Anthropic,
Gemini,
xAI
parameters
object

Response

Model updated successfully

error
boolean
message
string
data
object
status
integer
errorDetails
object