NewWacht Bench is live — AI-assisted development for Wacht

updateWorkspaceMember()

Patches an existing workspace membership record.

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 workspaceId: string = 'workspaceid-123';  const memberId: string = 'memberid-123';  const request: UpdateWorkspaceMemberRequest = {    role: 'editor',  };  return client.workspaces.updateWorkspaceMember(workspaceId, memberId, request);}

Signature

function updateWorkspaceMember(  workspaceId: string,  memberId: string,  request: UpdateWorkspaceMemberRequest,  client?: WachtClient,): Promise<void>

Parameters

workspaceId: string;
Identifier for the target resource.
memberId: string;
Identifier for the target resource.
request: UpdateWorkspaceMemberRequest;
Request payload object sent to the backend API.
role?: string | undefined;
role value used by this request.

On this page