Skip to main content

Module draft_api

Module draft_api 

Source

Enums§

GetDraftForUserError
struct for typed errors of method get_draft_for_user
GetOwnDraftError
struct for typed errors of method get_own_draft
ListDraftsError
struct for typed errors of method list_drafts
MigrateLegacyDraftError
struct for typed errors of method migrate_legacy_draft
MoveDraftError
struct for typed errors of method move_draft
UpdateDraftError
struct for typed errors of method update_draft

Functions§

get_draft_for_user
get_own_draft
list_drafts
migrate_legacy_draft
Delete a legacy draft (email NULL) or assign it to the authed admin as a per-user draft. Workspace admins / superadmins only.
move_draft
Relocates the authed user’s own draft row, along with both path keys inside its value (the typed path and the mirror the editors keep beside it). Only for draft-only items — a deployed item must be moved through its own deploy endpoint, which carries every draft with it. Restricted to script, flow, app and raw_app; any other kind is rejected with 400, because only these keep their deploy target where this endpoint rewrites it.
update_draft