Skip to main content
PUT
/
agents
/
{agent_id}
/
routing
/
config
Update routing config
curl --request PUT \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/routing/config \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "config": {
    "type": "rules",
    "default": {
      "type": "llm"
    }
  }
}
'
{
  "data": {
    "config": {
      "type": "rules",
      "default": {
        "type": "llm"
      }
    }
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Body

application/json
config
object

Response

200 - application/json

Update routing config.

data
any