Skip to content

Refresh configured Object Context Facts for a bounded set of Entity instances.

POST
/api/workspace/entity/{entityIdOrKey}/instances/object-context-facts/query
curl --request POST \
--url https://example.com/api/workspace/entity/example/instances/object-context-facts/query \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "InstanceIds": [ "example" ], "ObjectContextFactIds": [ "example" ] }'

Accepts up to 100 instances and 100 configured facts. Current SQL View filtering precedes provider materialization; hidden instances are omitted.

entityIdOrKey
required
string
access_token
string

Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.

Refreshes configured facts for at most 100 explicit instances and 100 configured fact identifiers.

object
InstanceIds
Array<string>
nullable
ObjectContextFactIds
Array<string>
nullable
Examplegenerated
{
"InstanceIds": [
"example"
],
"ObjectContextFactIds": [
"example"
]
}

OK

Media typeapplication/json
object
Data
object
key
additional properties

Core-owned projection for one readable Entity instance.

object
ObjectContextFactMembers

Validated, live source-member values keyed by Entity binding identifier.

object
key
additional properties

Authorized members from one selected source instance, projected once per binding and record.

object
State

Availability of a context source or one of its typed members.

integer format: int32
Allowed values: 0 1 2 3 4
Handle

Exact selected source instance and its provider-owned version token. Core must not interpret the token or reselect another instance when a mutation supplies this handle.

object
Resource

Stable identity of one Moltaro resource instance.

object
ModuleKey
string
nullable
ResourceKind
string
nullable
ContextResourceId
string
nullable
ResourceObjectId
string
nullable
Version
string
nullable
Values
object
key
additional properties

One typed value; restricted and unavailable values carry no payload or display text.

object
State

Availability of a context source or one of its typed members.

integer format: int32
Allowed values: 0 1 2 3 4
Value
nullable
DisplayValue
string
nullable
PlainTextPreview

Safe compact visible-text representation of a Markdown value.

object
Text

Visible text when available.

string
nullable
IsTruncated

Whether the visible text was shortened for compact presentation.

boolean
State
integer format: int32
Allowed values: 0 1 2 3
CanEdit

Whether the provider permits ordinary editing of this exact readable source member.

boolean
key
additional properties
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Data": {
"additionalProperty": {
"ObjectContextFactMembers": {
"additionalProperty": {
"State": 0,
"Values": {
"additionalProperty": {
"State": 0,
"PlainTextPreview": {
"State": 0
}
}
}
}
}
}
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Bad Request

Media typeapplication/json
object
Data
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Forbidden

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/json
object
Data
nullable
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}