Build a custom flow for updating an organization
Organization members with appropriate permissions can update an organization. Currently, only the organization name and slug can be updated.
This guide will demonstrate how to use the Clerk API to build a custom flow for updating an organization.
The following example:
- Uses the
useOrganization()
hook to fetch the activeorganization
. - Uses
organization
to call theupdate()
method with the desired name to update the organization.
This example is written for Next.js App Router but can be adapted for any React meta framework, such as Remix.
The following example uses the organization.update()
method to update the active organization's name.
Use the tabs to view the code necessary for the index.html
and main.js
files.
Feedback
Last updated on