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;
organizationId: string;Identifier for the target resource.
›roleId: string;
roleId: string;Identifier for the target resource.
›request: UpdateOrganizationRoleRequest;
request: UpdateOrganizationRoleRequest;Request payload object sent to the backend API.
›name?: string | undefined;
name?: string | undefined;Display name for the target resource.
Return value
›result?: OrganizationRole | undefined;
result?: OrganizationRole | undefined;Operation result payload.