updateOrganization()
Updates an Organization
.
- Name
organizationId
- Type
string
- Description
The organization ID of the organization being updated.
- Name
name?
- Type
string
- Description
The updated name of the organization.
- Name
slug?
- Type
string
- Description
The updated slug of the organization.
- Name
publicMetadata?
- Type
OrganizationPublicMetadata
- Description
Metadata that can be read from both the Frontend API and Backend API, but can be set only from the Backend API. Updating this property will override the existing metadata. To merge metadata, use
updateOrganizationMetadata()
.
- Name
privateMetadata?
- Type
OrganizationPrivateMetadata
- Description
Metadata that is only visible to your Backend API. Updating this property will override the existing metadata. To merge metadata, use
updateOrganizationMetadata()
.
- Name
maxAllowedMemberships?
- Type
number
- Description
The maximum number of memberships allowed in the organization. Setting this value to
0
removes any limit, allowing an unlimited number of memberships.
Example
In the following example, you can see that the returned Organization
object has its name
property updated to Test Updated
.
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint PATCH/organizations/{organization_id}
. See the BAPI reference for more information.
Feedback
Last updated on