Skip to content

Update Multi-Agent

Endpoint used to update a multi-agent.

Terminal window
curl --request PUT \
--url https://chat.api.toolzz.com.br/api/v1/bot/update-multi/{id} \
--header 'Authorization: Bearer TOKEN_HERE' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"agentIds": [
"<string>"
]
}
'
{
"id": "uuid",
"name": "<string>",
"prompt": "<string>",
"metaprompt": "<string>",
"description": "<string>",
"folders": [
{
"id": "uuid",
"botId": "uuid",
"folderId": "uuid",
"kbId": "uuid",
"kbFolder": {
"isRoot": false,
"id": "uuid",
"institutionId": "uuid",
"name": "<string>",
"knowLedgeBaseId": "uuid"
}
}
],
"botMultiAgents": [
{
"id": "uuid",
"botId": "uuid",
"promptFlow": "<string>",
"agentIds": [
"uuid"
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
"favorites": [],
"botFallBack": []
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
promptStringSystem Prompt with instructions and AI personality.Yes
agentIdsArray[String]Array of identifiers of the agents that make up the multi-agent.Yes

KeyTypeDescription
idUUIDBot unique identifier.
nameStringBot identification name.
promptStringBehavior and personality instructions (System Prompt).
metapromptStringGlobal AI control instructions and limitations.
descriptionStringBrief description of the Bot’s functions.
foldersArrayList of folders and knowledge bases linked to the Bot.
folders[].idUUIDUnique identifier of the link between the Bot and the folder.
folders[].botIdUUIDIdentifier of the Bot to which the folder belongs.
folders[].folderIdUUIDFolder identifier.
folders[].kbIdUUIDLinked knowledge base identifier.
folders[].kbFolderObjectObject containing details of the folder in the knowledge base.
folders[].kbFolder.isRootBooleanIndicates if the folder is the root of the directory.
folders[].kbFolder.nameStringFolder name in the knowledge base.
botMultiAgentsArrayFlow and transition settings between multiple agents.
botMultiAgents[].idUUIDUnique identifier of the multi-agent rule.
botMultiAgents[].promptFlowStringLogical instructions that define when to switch between agents.
botMultiAgents[].agentIdsArrayList of UUIDs of the agents that are part of the flow.
botMultiAgents[].createdAtStringCreation date of the multi-agent configuration.
favoritesArrayList of identifiers of users who favorited the Bot.
botFallBackArrayList of agents or rules configured for automatic overflow.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.

To access your access token, follow these steps:

  1. Log in to the ToolzzAI platform
  2. Click on “Settings”
  3. Click on “Access Token”
  4. Copy the access token

Access token page