Skip to content

Conversation methods: update, delete

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

Reference for Conversation, one group of Conversation methods.

Conversation.update

Changes the given properties of a Conversation. Verb page.

TypeScript
interface ConversationVerbs {
  update(input: ConversationUpdateInput, options?: SB.CallOptions): SB.Call<Conversation>
}

Emits Conversation.updated.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Conversation.
subjectstringWhat the Thread is about.
answeredAtdatetimeWhen a Worker last answered.
resolutionstringHow it was resolved: the Customer said so, or 72 hours passed after an answer with no reply.

Returns

OutputTypeRequiredDescription
conversationConversationrequiredThe Conversation.

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 conversation = await $.Conversation.update({ id: 'conversation_0vg6SDjB6k', answeredAt: '2026-10-22T12:00:00Z' })

Conversation.delete

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

TypeScript
interface ConversationVerbs {
  delete(input: ConversationDeleteInput, options?: SB.CallOptions): SB.Call<Conversation>
}

Emits Conversation.deleted.

Inputs

InputTypeRequiredDescription
idstringrequiredThe id of the Conversation.

Returns

OutputTypeRequiredDescription
conversationConversationrequiredThe Conversation.

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 conversation = await $.Conversation.delete({ id: 'conversation_0vg6SDjB6k' })