Skip to content

Registration methods: update, delete

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

Reference for Registration, one group of Registration methods.

Registration.update

Changes the given properties of a Registration. Verb page.

TypeScript
interface RegistrationVerbs {
  update(input: RegistrationUpdateInput, options?: SB.CallOptions): SB.Call<Registration>
}

Emits Registration.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Registration.
registeredAtdatetimeWhen the place was confirmed.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration.

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 registration = await $.Registration.update({ id: 'registration_95lvb7R17L', registeredAt: '2026-10-22T12:00:00Z' })

Registration.delete

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

TypeScript
interface RegistrationVerbs {
  delete(input: RegistrationDeleteInput, options?: SB.CallOptions): SB.Call<Registration>
}

Emits Registration.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Registration.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration.

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 registration = await $.Registration.delete({ id: 'registration_95lvb7R17L' })