Skip to main content

updateCompany()

updateCompany(request: UpdateCompanyRequest): Promise<Company>

Defined in: packages/core/src/index.ts:2692

Update company information

Parameters

ParameterTypeDescription
requestUpdateCompanyRequestCompany 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" },
});