updateOrganization
@svenvw/fdm-source / fdm-core/src / updateOrganization
Function: updateOrganization()
updateOrganization(
fdm
,admin_id
,organization_id
,name?
,slug?
,description?
,logo?
,isVerified?
):Promise
<void
>
Defined in: fdm-core/src/organization.ts:80
Updates an existing organization.
Parameters
fdm
any
The FDM instance providing the connection to the database.
admin_id
string
The ID of the user initiating the update (must be owner or admin).
organization_id
string
The ID of the organization to update.
name?
string
(Optional) The new name of the organization.
slug?
string
(Optional) The new unique slug for the organization.
description?
string
(Optional) The new description of the organization.
logo?
(Optional) The new logo of the organization.
null
| string
isVerified?
boolean
(Optional) set isVerified boolean.
Returns
Promise
<void
>
A promise that resolves when the organization has been updated.
Throws
Throws an error if any database operation fails, if the user does not have permissions, or if input data is invalid.