NewWacht Bench is live — AI-assisted development for Wacht

updateActorProject()

This method updates metadata/configuration for an actor project.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function example() {  const client = await wachtClient();  const projectId: string = 'projectid-123';  const request: UpdateActorProjectRequest = {    name: 'Customer Support Project v2',  };  return client.ai.updateActorProject(projectId, request);}

Signature

function updateActorProject(  projectId: string,  request: UpdateActorProjectRequest,  client?: WachtClient,): Promise<ActorProject>

Parameters

projectId: string;
Target actor project id.
request: UpdateActorProjectRequest;
Request payload object sent to the backend API.
name?: string | undefined;
Display name for the target resource.

Return value

id?: string | undefined;
Actor project id.
name?: string | undefined;
Actor project display name.
archived_at?: string | null | undefined;
Archive timestamp when archived.

On this page