Skip to main content

updateAgentProfile

client.agentPortfolioApi.updateAgentProfile(agentId: string, data: UpdateAgentProfileRequest): Promise<AgentPortfolio>

Updates an agent's profile information.

Modifies the profile section of an agent's portfolio, such as their display name, description, or avatar.

Parameters​

ParameterTypeRequiredDescription
agentIdstringYesThe unique identifier of the agent
dataUpdateAgentProfileRequestYesThe profile fields to update

Returns​

Promise<AgentPortfolio> — A promise that resolves to the updated AgentPortfolio

Example​

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.agentPortfolioApi.updateAgentProfile('agentId', /* UpdateAgentProfileRequest */);
console.log(result);