Skip to main content

updateTestimonial

client.agentPortfolioApi.updateTestimonial(id: string, data: UpdateTestimonialRequest): Promise<AgentTestimonial>

Updates an existing testimonial.

Modifies the content or metadata of a previously submitted testimonial.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the testimonial to update
dataUpdateTestimonialRequestYesThe fields to update on the testimonial

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.agentPortfolioApi.updateTestimonial('id', /* UpdateTestimonialRequest */);
console.log(result);