Skip to content

Software methods: update, delete

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

Reference for Software, one group of Software methods.

Software.update

Changes the given properties of a Software. Verb page.

TypeScript
interface SoftwareVerbs {
  update(input: SoftwareUpdateInput, options?: SB.CallOptions): SB.Call<Software>
}

Emits Software.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Software.
namestringThe name of the Product.
promisetextWhat the Customer can rely on.
headlessbooleanTrue when it ships without screens of its own.

Returns

OutputTypeRequiredDescription
softwareSoftwarerequiredThe Software.

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 software = await $.Software.update({ id: 'software_D5qhJn6mF5', headless: true })

Software.delete

Deletes a Software: a soft delete that keeps its history, undone by Thing.restore. Verb page.

TypeScript
interface SoftwareVerbs {
  delete(input: SoftwareDeleteInput, options?: SB.CallOptions): SB.Call<Software>
}

Emits Software.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Software.

Returns

OutputTypeRequiredDescription
softwareSoftwarerequiredThe Software.

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 software = await $.Software.delete({ id: 'software_D5qhJn6mF5' })