Skip to content

Test Render

POST
/api/divinity/authored-library/test-render

Render a variant against a caller-supplied slot context.

AuthoredLibraryTestRenderRequest

Payload for POST /test-render — used by the variant editor.

object
situationKey
required
Situationkey
string
projectId
Projectid
string
default: test-project
projectGenres
Projectgenres
Array<string>
severity
Any of:
string
Allowed values: error warning info
slotValues
Slotvalues
object
key
additional properties
Any of:
string
scopeRef
Scoperef
string
default: test-scope
selectionAlgorithm
Selectionalgorithm
string
default: hash_deterministic
Allowed values: hash_deterministic round_robin weighted_random user_preference
tonePreference
Tonepreference
string
default: balanced
Allowed values: constructive analytical urgent warm direct balanced
tagAllowlist
Tagallowlist
Array<string>
seed
Any of:
integer
sessionId
Sessionid
string
default: test-session

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
Allowed values: hash_deterministic round_robin weighted_random user_preference

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