NewWacht Bench is live — AI-assisted development for Wacht

createActorProject()

Creates a project for the given actor id and returns the created 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 createActorProject(actorId: string) {  const client = await wachtClient();  return client.ai.createActorProject(actorId, {    name: 'SDK Reliability',  });}

Signature

function createActorProject(  actorId: string,  request: CreateActorProjectRequest,): Promise<ActorProject>

CreateActorProjectRequest

actorId?: string | undefined;
Owner actor id.
name?: string | undefined;
Project display name.
description?: string | undefined;
Optional project description.

Return value

id?: string | undefined;
Created project id.
actor_id?: string | undefined;
Owning actor id.
name?: string | undefined;
Created project name.
archived_at?: string | null | undefined;
Archive timestamp when archived.

Behavior

  • Creates a new resource and returns the created object from the backend.
  • Validate required fields before calling to avoid predictable request failures.

On this page