Skip to content

Accept All Drafts

POST
/api/creative/council/drafts/{session_id}/accept-all

Accept all pending draft entries and create lore entries for them.

Returns the mapping of each accepted draft to the lore entry minted from it so the frontend can wire a single undo-toast that reverts statuses and deletes the created lore entries.

session_id
required
Session Id
string

Successful Response

AcceptAllDraftsResponse

Response from the bulk accept-all endpoint.

Returns both the count (for UI messaging) and the full list of created draft→lore links (for wiring an undo that reverts statuses and deletes the lore entries that were minted from the drafts).

object
applied
required
Applied

Number of drafts accepted

integer
created
Created

Draft→lore links for undo

Array<object>
AcceptedDraftLink

Pairing of an accepted draft ID with the lore entry created from it.

object
draftId
required
Draftid

Draft entry ID

string
loreEntryId
required
Loreentryid

Created lore entry ID

string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object