Update an Agent
PUT /agents/{agentId}
curl --location --request PUT 'https://ekoai.ekoapp.com/agents/{agentId}' \--header 'Content-Type: application/json' \--header 'Authorization: Bearer {token}' \--data '{ "id": "{cleintId}", "name": "API assistant", "networkId": "{networkId}", "type": "tools", "tools": { "report_builder": { "toolName": "report_builder", "config": { "timezone": "Asia/Bangkok" } }, "research": { "toolName": "research", "config": { "allowedResearchTypes": [ "web_search", "news", "images", "videos", "shopping", "places" ] } }, "web_scraper": { "toolName": "web_scraper" }, "image_generator": { "toolName": "image_generator", "config": { "image_preference": "" } }, "query_knowledge_base": { "toolName": "query_knowledge_base", "config": { "knowledgebases": [ { "id": {assistantId}, "description": "Knowledge Base 1", "assistant_secret": "{assistantSecret}", "language": "en" } ] } } }, "systemPrompt": "String", "model": "gpt-4o", "channels": [ { "channelType": "eko", "clientId": "{clientId}", "clientSecret": "{clientSecret}", "ekoaiUrl": "https://ekogreen-h1.ekoapp.com", "channelId": "{clientId}" } ], "homeScreen": { "title": "", "description": "", "predefinedPrompts": [ { "title": "Text me message", "text": "send me some message", "icon": { "color": "#ffb400", "id": "comment" } } ] }}'Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
Body
| Field | Type | Description |
|---|---|---|
| id* | String | The unique identifier for the agent. |
| name* | String | The name of the agent. |
| networkId* | String | The ID of the network to which the agent belongs. |
| type* | String |
|
| tools | Objects | An object containing the configuration for the tools used by the agent. Each key in the object represents a tool name, and the corresponding value is a ToolAssistantConfig object. This field is only applicable when the type is set to ‘tools’. |
| botsplusConfig | Objects | An object containing the configuration for the BotsPlus agent. It is only needed when the
|
| ekoaiStudioConfig | Objects | An object containing the configuration for the EkoaiStudio agent. It is only needed when the
|
| logging | Objects | An object containing the logging configuration for the agent. It includes the following field:
|
| systemPrompt | String | The system prompt used by the agent to provide instructions or context. |
| model | AgentModel | The configuration for the agent’s language model. Available options include:
|
| channels | Array of Objects | An array of channel configurations for the agent, specifying the channels through which the agent can communicate. Currently only supports
|
| feature | Objects | Set of feature flags and configuration to enable / disable for the assistant:
|
Response
{ "id": "{agentId}", "name": "API assistant", "networkId": "{networkId}", "type": "tools", "tools": { "report_builder": { "toolName": "report_builder", "config": { "timezone": "Asia/Bangkok" } }, "research": { "toolName": "research", "config": { "allowedResearchTypes": [ "web_search", "news", "images", "videos", "shopping", "places" ] } }, "web_scraper": { "toolName": "web_scraper" }, "image_generator": { "toolName": "image_generator", "config": { "image_preference": "" } }, "query_knowledge_base": { "toolName": "query_knowledge_base", "config": { "knowledgebases": [ { "id": {assistantId}, "description": "Knowledge Base 1", "assistant_secret": "{assistantSecret}", "language": "en" } ] } } }, "systemPrompt": "String", "model": "gpt-4o", "channels": [ { "channelType": "eko", "clientId": "{clientId}", "clientSecret": "{clientSecret}", "ekoaiUrl": "https://ekogreen-h1.ekoapp.com", "channelId": "{clientId}" } ], "homeScreen": { "title": "", "description": "", "predefinedPrompts": [ { "title": "Text me message", "text": "send me some message", "icon": { "color": "#ffb400", "id": "comment" } } ] }}{ "error": "Invalid request"}Was this page helpful?
Thank you for your feedback!