updateProfile
codebolt.agentPortfolio.updateProfile(agentId: string, profile: { displayName?: string; bio?: string; specialties?: string[]; avatarUrl?: string; location?: string; website?: string; }): Promise<UpdateProfileResponse>
Updates an agent's profile information including display name, bio, specialties, avatar, and more.
Parameters
agentId(string): The ID of the agent to update.profile({ displayName?: string; bio?: string; specialties?: string[]; avatarUrl?: string; location?: string; website?: string; }): The profile data to update.
Returns
Promise<[UpdateProfileResponse](/docs/reference/type-reference/codeboltjs/interfaces/UpdateProfileResponse)>: A promise that resolves to the updated profile.
Examples
// Update basic info
await codebolt.agentPortfolio.updateProfile('agent-123', {
displayName: 'John Doe',
bio: 'Full-stack developer specializing in React and Node.js'
});
// Update specialties
await codebolt.agentPortfolio.updateProfile('agent-123', {
specialties: ['JavaScript', 'React', 'Node.js', 'TypeScript']
});
// Update avatar
await codebolt.agentPortfolio.updateProfile('agent-123', {
avatarUrl: 'https://example.com/avatar.jpg'
});
Notes
- Only include fields you want to update
- All fields are optional
- Avatar URLs should be publicly accessible