updateOrganizationMember()
Patches an existing organization 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 organizationId: string = 'organizationid-123'; const memberId: string = 'memberid-123'; const request: UpdateOrganizationMemberRequest = { role: 'admin', }; return client.organizations.updateOrganizationMember(organizationId, memberId, request);}Signature
function updateOrganizationMember( organizationId: string, memberId: string, request: UpdateOrganizationMemberRequest, client?: WachtClient,): Promise<void>Parameters
›organizationId: string;
organizationId: string;Identifier for the target resource.
›memberId: string;
memberId: string;Identifier for the target resource.
›request: UpdateOrganizationMemberRequest;
request: UpdateOrganizationMemberRequest;Request payload object sent to the backend API.
›role?: string | undefined;
role?: string | undefined;role value used by this request.