Skip to main content
The ablo.decks namespace is the entry point for managing presentation decks. Every method resolves to a single atomic commit on the server, so a create call that includes slides and layers either succeeds completely or fails without partial state. Deck ids are minted client-side before the commit is sent, so you can capture the id immediately and use it in subsequent calls without an extra round-trip.

ablo.decks.create(input?, options?)

Creates a new deck. Pass input.slides to include the complete slide and layer tree in one commit. When omitted, an empty deck is created and slides can be added later via ablo.slides.create.

Parameters

CreateDeckInput
The deck configuration. All fields are optional; omit entirely to create a blank deck.
RequestOptions
Per-call commit controls.

Returns

string
Client-minted UUID for the new deck.
string
The deck title ("Untitled" when not supplied).
string | null
The layout container id, or null if none was specified.
string | null
The theme id, or null if none was specified.
SlideResult[]
One entry per slide passed in input.slides, in order.

Example


ablo.decks.retrieve(id)

Fetches the stored record for a deck by id. Requires a readable client.

Parameters

string
required
The deck id returned by create.

Returns

string
The deck UUID.
string
The deck title.
string | null
The attached layout container id, or null.
string | null
The attached theme id, or null.

Example


ablo.decks.update(params, options?)

Applies a field-level patch to an existing deck. Only the fields you include are changed; omitted fields are left untouched.

Parameters

UpdateDeckParams
required
RequestOptions

Returns

string
The commit UUID.
'queued' | 'confirmed'
The acknowledgement level reached.
number
Monotonic sync cursor — use this to wait for a specific state in a real-time client.

Example


ablo.decks.delete(id, options?)

Permanently deletes a deck and all of its slides and layers in one atomic commit.

Parameters

string
required
The deck id to delete.
RequestOptions

Returns

string
The commit UUID.
'queued' | 'confirmed'
The acknowledgement level reached.
number
Monotonic sync cursor.

Example