NewWacht Bench is live — AI-assisted development for Wacht

updateOrganizationRole()

Patches a custom organization role definition.

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 roleId: string = 'roleid-123';  const request: UpdateOrganizationRoleRequest = {    name: 'Organization Admin',  };  return client.organizations.updateOrganizationRole(organizationId, roleId, request);}

Signature

function updateOrganizationRole(  organizationId: string,  roleId: string,  request: UpdateOrganizationRoleRequest,  client?: WachtClient,): Promise<OrganizationRole>

Parameters

organizationId: string;
Identifier for the target resource.
roleId: string;
Identifier for the target resource.
request: UpdateOrganizationRoleRequest;
Request payload object sent to the backend API.
name?: string | undefined;
Display name for the target resource.

Return value

result?: OrganizationRole | undefined;
Operation result payload.

On this page