Skip to content

Create Fact

POST
/api/writing/knowledge/facts
project_id
required
Project Id
string
>= 1 characters
KnowledgeCreateRequest
object
characterEntityId
required
Characterentityid
string
>= 1 characters
factType
Facttype
string
default: lore_entry
Allowed values: lore_entry lore_section custom
loreEntryId
Any of:
string
loreSectionKey
Any of:
string
customFact
Any of:
string
learnedAtNodeId
Any of:
string
knownFromStart
Knownfromstart
boolean
notes
Notes
string
""

Successful Response

KnowledgeFactResponse
object
id
required
Id
string
projectId
required
Projectid
string
characterEntityId
required
Characterentityid
string
characterName
required
Charactername
string
factType
required
Facttype
string
Allowed values: lore_entry lore_section custom
loreEntryId
required
Any of:
string
loreEntryTitle
required
Any of:
string
loreSectionKey
required
Any of:
string
loreSectionLabel
required
Any of:
string
customFact
required
Any of:
string
learnedAtNodeId
required
Any of:
string
learnedAtNodeTitle
required
Any of:
string
learnedAtOrdinal
required
Any of:
integer
knownFromStart
required
Knownfromstart
boolean
notes
required
Notes
string
createdAt
required
Createdat
integer
modifiedAt
required
Modifiedat
integer

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