updateCompany()
updateCompany(
request:UpdateCompanyRequest):Promise<Company>
Defined in: packages/core/src/index.ts:2692
Update company information
Parameters
| Parameter | Type | Description |
|---|---|---|
request | UpdateCompanyRequest | Company data to update (name, settings) |
Returns
Promise<Company>
The updated company object
Throws
401 - Not authenticated
Throws
403 - Admin privileges required
Example
import { updateCompany } from "@cpod/sdk";
const updated = await updateCompany({
name: "Acme Corporation",
settings: { theme: "dark" },
});