Skip to content

Gathering methods: update, delete

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

Reference for Gathering, one group of Gathering methods.

Gathering.update

Changes the given properties of a Gathering. Verb page.

TypeScript
interface GatheringVerbs {
  update(input: GatheringUpdateInput, options?: SB.CallOptions): SB.Call<Gathering>
}

Emits Gathering.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Gathering.
titlestringWhat the Gathering is called on its Page and invitations.
atdatetimeWhen it starts.
capacityintegerThe most Registrations it admits before new ones join the waitlist.
recordingurlWhere the replay lives once it ends.

Returns

OutputTypeRequiredDescription
gatheringGatheringrequiredThe Gathering.

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 gathering = await $.Gathering.update({ id: 'gathering_ACB9Q1atRR', title: 'Leaseline Pro' })

Gathering.delete

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

TypeScript
interface GatheringVerbs {
  delete(input: GatheringDeleteInput, options?: SB.CallOptions): SB.Call<Gathering>
}

Emits Gathering.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Gathering.

Returns

OutputTypeRequiredDescription
gatheringGatheringrequiredThe Gathering.

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 gathering = await $.Gathering.delete({ id: 'gathering_ACB9Q1atRR' })