Skip to content

Company methods: update

The Company Verbs update as typed SDK methods, with inputs, result, refusals and an example.

Reference for Company, one group of Company methods.

Company.update

Changes the given properties of a Company. Verb page.

TypeScript
interface CompanyVerbs {
  update(input: CompanyUpdateInput, options?: SB.CallOptions): SB.Call<Company>
}

Emits Company.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Company.
namestringThe legal or personal name.
legalNamestringThe registered name.
jurisdictionstringWhere it is incorporated.

Returns

OutputTypeRequiredDescription
companyCompanyrequiredThe Company.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const company = await $.Company.update({ id: 'company_28zYNZEno0', legalName: 'Leaseline Inc.' })