Management API

Edit Agent

PUT/v1/agent/:id

Programmatically update an existing Agent. Only the fields you provide will be changed — omitted fields keep their current values.

Definition

Path Parameters

ParameterTypeRequiredDescription
idstringYesThe ID of the agent to update

Headers

bash
X-API-Key: YOUR_API_KEY

Body Parameters

ParameterTypeRequiredDescription
environmentIdstringYesID of the environment the agent belongs to
namestringNoDisplay name for the agent
instructionsstringNoSystem instructions defining the agent's behavior, persona, and responsibilities
toolIdsstring[]NoReplaces the full set of action IDs attached to this agent
mcpToolIdsstring[]NoReplaces the full set of MCP tool IDs attached to this agent
agentTypestringNoconversational or functional
roleNamestringNoControls the agent's role. assistant handles tasks directly using tools. orchestration coordinates a network of sub-agents.
displayNamestringNoOptional alternate display name shown in the chat UI
subAgentIdsstring[]NoReplaces the full set of sub-agent IDs for orchestration agents. Pass an empty array to remove all sub-agents.
temperaturenumberNoModel temperature between 0 and 1
modelsobject[]NoCustom model configurations. Each entry has name, provider, apiKey, and optional baseUrl.
quickActionsobject[]NoPre-defined prompt shortcuts shown in the chat UI. Each has label and text.
outputSchemaobjectNoJSON Schema defining the structured output for functional agents
enableToolSearchbooleanNoEnable semantic search to dynamically select relevant tools from a large action set
enableCustomerMemoryPremiumbooleanNoEnable persistent customer memory across conversations
enableSemanticRecallPremiumbooleanNoEnable automatic surfacing of relevant past conversation snippets
enableHumanHandoffPremiumbooleanNoEnable human handoff for this agent
agenticConfigPremiumobjectNoAgent Intelligence processor pipeline. Contains a processors array. See Processors for the full schema.
profilePictureUrlPremiumstringNoURL of the agent's avatar shown in the chat UI

Response

Returns 200 OK with the updated agent object.

json
{
  "id": "agent_xyz456",
  "name": "Support Assistant",
  "agentType": "conversational",
  "roleName": "assistant",
  "environmentId": "env_xyz789",
  "toolIds": ["action_abc123"],
  "mcpToolIds": [],
  "subAgentIds": [],
  "temperature": 0.5,
  "instructions": "You are a helpful customer support agent...",
  "createdAt": "2025-01-15T12:00:00Z"
}

Sample Request

bash
curl -X PUT "https://api.meebly.ai/v1/agent/agent_xyz456" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "environmentId": "env_xyz789",
    "temperature": 0.5,
    "instructions": "You are a helpful customer support agent. Be concise and friendly."
  }'
Last updated: March 2026Report an issue