Save Ability
POST /api/creative/mechanics/ability-workshop/save
POST
/api/creative/mechanics/ability-workshop/save
Persist an ability to the abilities table.
Request Body required
Section titled “Request Body required ” SaveAbilityRequest
object
projectId
required
Projectid
string
rulesetRef
required
Rulesetref
string
magicSystemRef
Magicsystemref
string
components
required
AbilityComponents
Full component tree for one ability.
object
target
TargetComponent
object
kind
Kind
string
range
RangeComponent
object
value
Value
integer
unit
Unit
string
scalesWithLevel
Scaleswithlevel
boolean
special
Special
string
cost
CostComponent
object
resource
Resource
string
amount
Amount
integer
alternate
Alternate
string
effect
EffectComponent
object
kind
Kind
string
magnitude
Magnitude
string
scalingFormulaRef
Scalingformularef
string
elementalTag
Elementaltag
string
secondary
Secondary
Array<string>
duration
DurationComponent
object
kind
Kind
string
rounds
Rounds
integer
repeatTrigger
Repeattrigger
string
save
SaveComponent
object
stat
Stat
string
dcFormula
Dcformula
string
partialEffect
Partialeffect
string
specifiedReduction
Specifiedreduction
string
tags
TagsComponent
Boolean flags for ability metadata tags.
object
stealth
Stealth
boolean
loud
Loud
boolean
visible
Visible
boolean
ritual
Ritual
boolean
materialComponent
Materialcomponent
boolean
verbal
Verbal
boolean
somatic
Somatic
boolean
reactionTrigger
Reactiontrigger
boolean
concentration
Concentration
boolean
areaSelectable
Areaselectable
boolean
lineOfSightRequired
Lineofsightrequired
boolean
metadata
AbilityMetadata
object
name
Name
string
flavorDescription
Flavordescription
string
sourceArchetype
Sourcearchetype
string
schoolOrTradition
Schoolortradition
string
rarity
Rarity
string
tier
Tier
integer
name
required
Name
string
description
required
Description
string
powerLevel
Powerlevel
number
tier
Tier
integer
rarity
Rarity
string
sourceTemplateId
Sourcetemplateid
string
Responses
Section titled “ Responses ”Successful Response
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