Skip to main content
POST
/
api
/
agents
/
config
/
apply
cURL
curl --request POST \
  --url http://localhost:8080/api/agents/config/apply \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "apply_to_all": false,
  "agent_ids": [
    "agent_123",
    "agent_456"
  ],
  "configuration": {
    "llm_config": {
      "model": "gpt-4",
      "provider": "openai"
    },
    "tts_config": {
      "provider": "elevenlabs",
      "voice_id": "new_voice_id"
    }
  }
}
'
{
  "message": "Configuration changes applied",
  "status": "success",
  "error": null,
  "data": {
    "organization_id": "org_456",
    "total_agents": 2,
    "success_count": 2,
    "failure_count": 0,
    "apply_to_all": false,
    "results": [
      {
        "agent_id": "agent_123",
        "agent_name": "Agent 1",
        "status": "success",
        "message": "Configuration updated successfully"
      },
      {
        "agent_id": "agent_456",
        "agent_name": "Agent 2",
        "status": "success",
        "message": "Configuration updated successfully"
      }
    ]
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Body

application/json
apply_to_all
boolean
agent_ids
string[]
configuration
object

Response

200 - application/json

OK

message
string
status
string
error
string
data
object