Update Variant
PUT /api/divinity/authored-library/variants/{variant_id}
PUT
/api/divinity/authored-library/variants/{variant_id}
Update an existing user variant, replacing it in-place.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” variant_id
required
Variant Id
string
Request Body required
Section titled “Request Body required ” AuthoredLibraryVariantUpdateRequest
Payload for PUT /variants/{variant_id}.
The situation_key is required alongside the id — user overrides live in per-situation YAML files so we need both to locate the row.
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