Path Parameters
Request Body
openai)gpt-4o, gpt-4.1, gpt-4o-mini)Response
Returns the updatedAIAgent object with all current configuration.
Example Request
Example Response
Notes
- At least one field must be provided in the request body
- Only the specified fields will be updated
- Other fields remain unchanged
- The agent may need to be redeployed after significant changes
Authorizations
API Key for authentication
Path Parameters
Body
The organization id
The id of the agent we want to apply the changes to
use only when need to update name of an agent
use only when need to update instructions of an agent
use only when need to update icon (emoji) of an agent
Should reset graph of this agent?
Target environment id to create the agent in
Response
Successful Response
Enumeration of the agent delegation end strategies.
Attributes: ReturnToStart: when last agent is finished and about to announce "finish" it will summarize and return to the first agent. FinishWithLast: finish at the last agent.
return-to-start, finish-with-last serverless, container personal, organizational Enumeration of possible agent statuses.
Attributes: DRAFT: Agent is in a draft state. ACTIVE: Agent is active and operational. INACTIVE: Agent is inactive and not operational.
DRAFT, ACTIVE, INACTIVE Enumeration of the agent types.
Attributes: Manager: marks the agent as a Managing agent. Regular: marks the agent as a regular agent.
manager, regular Enumeration of the agent delegation types.
Attributes: Router: Marks the agent as a router agent - xpanderAI's LLM will decide which sub-agent to trigger. Sequence: Marks the agent as a sequence agent - sub-agents will delegate to other sub-agents.
router, sequence Enumeration of the agent delegation memory strategies.
Attributes: Full: The memory object will be passed completely between agents. Summarization: Between each sub-agent delegation, a summarization will occur, and a new thread will be created for each agent. OriginalInput: the sub agent will get the initial task with a fresh memory thread
full, summarization, original-input openai, nim, amazon_bedrock, huggingFace, friendlyAI, anthropic, gemini, fireworks text, markdown, json xpander, custom 
