Skip to main content
PUT
/
agents
/
{agent_id}
/
system-steps
/
{step}
/
config
Update agent system step config
curl --request PUT \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/system-steps/{step}/config \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "model": "gpt-4o",
  "temperature": 0.2,
  "fallback_model": "claude-sonnet-4-5"
}
'
{
  "data": {
    "model": "gpt-4o",
    "temperature": 0.2
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required
step
string
required

Body

application/json
model
string
temperature
number
max_tokens
integer
fallback_model
string
fallback_config
object

{model, strategy, timeout} failover settings.

metadata
object

Intent metadata. For final_response, request_parameters.response_format sets a built-in structured JSON default (replaces existing metadata wholesale — read first and merge).

Response

200 - application/json

Update agent system step config.

data
any