Test Render
POST /api/divinity/authored-library/test-render
POST
/api/divinity/authored-library/test-render
Render a variant against a caller-supplied slot context.
Request Body required
Section titled “Request Body required ” AuthoredLibraryTestRenderRequest
Payload for POST /test-render — used by the variant editor.
object
situationKey
required
Situationkey
string
projectId
Projectid
string
projectGenres
Projectgenres
Array<string>
slotValues
scopeRef
Scoperef
string
selectionAlgorithm
Selectionalgorithm
string
tonePreference
Tonepreference
string
tagAllowlist
Tagallowlist
Array<string>
sessionId
Sessionid
string
Responses
Section titled “ Responses ”Successful Response
AuthoredLibraryTestRenderResponse
Response body for POST /test-render (success only — failures 4xx).
object
text
required
Text
string
variantId
required
Variantid
string
situationKey
required
Situationkey
string
algorithmUsed
required
Algorithmused
string
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context