Skip to main content
PUT
/
applications
/
{application_id}
/
config
Update application config
curl --request PUT \
  --url https://api.trymaitai.ai/api/v1/applications/{application_id}/config \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "model": "gpt-4o",
  "temperature": 0.5,
  "max_tokens": 4096
}
'
{
  "data": {
    "model": "gpt-4o",
    "temperature": 0.5,
    "max_tokens": 4096
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

application_id
integer
required

Body

application/json
model
string
temperature
number
max_tokens
integer
system_prompt
string

Response

200 - application/json

Update application config.

data
any