Create Variant
POST /api/divinity/authored-library/variants
POST
/api/divinity/authored-library/variants
Create a new user variant under the target situation.
Request Body required
Section titled “Request Body required ” AuthoredLibraryVariantCreateRequest
Payload for POST /variants.
Responses
Section titled “ Responses ”Successful Response
AuthoredLibraryVariantMutationResponse
Response body for any successful variant mutation.
object
variant
required
AuthoredLibraryVariantModel
A single variant as exposed through the API.
source reports whether the variant came from the bundled pack, a
user override, or a community pack. source_pack is the filename
(bundled) or pack id (community). editorial_status (M15)
reports the variant’s shadow-review state — defaults to
"approved" for backwards compat with pre-M15 clients.
object
id
required
Id
string
text
required
Text
string
tags
Tags
Array<string>
severityFilter
Severityfilter
Array<string>
weight
Weight
number
isDefault
Isdefault
boolean
engineVersionMin
Engineversionmin
string
source
required
Source
string
sourcePack
required
Sourcepack
string
editorialStatus
Editorialstatus
string
situationKey
required
Situationkey
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