Update an agent in a FlowAI project

Updates an Agent Definition within a FlowAI Project. Requires editor or owner GBAC role; updating operators requires owner GBAC role.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Path parameters

agentIdstringRequiredformat: "uuid"

Agent _id (UUID).

Request

request body
namestringOptionalformat: "^\S(.*\S)?$"1-100 characters
descriptionstringOptional<=500 characters
promptobjectOptional
providerobjectOptional
addToolslist of objectsOptional
decorateToolslist of objectsOptional
authorizeToolslist of objectsOptional
removeToolslist of objectsOptional
operatorslist of stringsOptional

Response

The updated Agent Definition
messagestring
dataobject

Errors

500
Internal Server Error