Skip to content

Evaluate one exact Business Invariant metadata record for an explicit bounded object set without persisting calculated state.

POST
/api/workspace/admin/business-invariants/evaluate
curl --request POST \
--url https://example.com/api/workspace/admin/business-invariants/evaluate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "MetadataId": "example", "Objects": [ { "ModuleKey": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" } ], "OperationKeys": [ "example" ] }'
access_token
string

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

Requests a bounded live diagnostic evaluation for one exact metadata record.

object
MetadataId

Exact invariant target metadata identifier.

string
nullable
Objects

Explicit bounded existing resource identities.

Array<object>
nullable

Stable identity of one Moltaro resource instance.

object
ModuleKey
string
nullable
ResourceKind
string
nullable
ContextResourceId
string
nullable
ResourceObjectId
string
nullable
OperationKeys

Exact requested operation keys when Grant diagnostics are required.

Array<string>
nullable
Examplegenerated
{
"MetadataId": "example",
"Objects": [
{
"ModuleKey": "example",
"ResourceKind": "example",
"ContextResourceId": "example",
"ResourceObjectId": "example"
}
],
"OperationKeys": [
"example"
]
}

OK

Media typeapplication/json
object
Data

Safe bounded diagnostic evaluation result.

object
MetadataId

Exact invariant target metadata identifier.

string
nullable
InvariantKey

Stable invariant key.

string
nullable
TargetKey

Stable target key.

string
nullable
DurationMilliseconds

Total live evaluation time.

number format: double
Objects

Exactly one result per requested resource.

Array<object>
nullable

Safe diagnostic state and operation decisions for one requested resource.

object
Resource

Stable identity of one Moltaro resource instance.

object
ModuleKey
string
nullable
ResourceKind
string
nullable
ContextResourceId
string
nullable
ResourceObjectId
string
nullable
IsActive

Current live invariant state.

boolean
SafeMessage

Localized safe active-state message, or null when inactive.

string
nullable
Operations

Requested diagnostic operation decisions keyed by stable operation key.

object
key
additional properties

Composed current decision for one applicable object operation.

object
OperationKey

Stable Object Operation Catalog key.

string
nullable
IsAllowed

Whether all independent authorities allow the operation.

boolean
Denials

Deterministically ordered safe denial details.

Array<object>
nullable

One safe denial contributing to a composed object-operation decision.

object
Source

Identifies the independent authority that denied an object operation.

integer format: int32
Allowed values: 0 1 2 3
SourceKey

Stable source identity, such as an invariant key or domain policy key.

string
nullable
ReasonCode

Stable machine-readable reason code.

string
nullable
SafeMessage

Non-empty localized safe message.

string
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
{
"Data": {
"Objects": [
{
"Operations": {
"additionalProperty": {
"Denials": [
{
"Source": 0
}
]
}
}
}
]
},
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}

Bad Request

Media typeapplication/json
object
Data

Safe bounded diagnostic evaluation result.

object
MetadataId

Exact invariant target metadata identifier.

string
nullable
InvariantKey

Stable invariant key.

string
nullable
TargetKey

Stable target key.

string
nullable
DurationMilliseconds

Total live evaluation time.

number format: double
Objects

Exactly one result per requested resource.

Array<object>
nullable

Safe diagnostic state and operation decisions for one requested resource.

object
Resource

Stable identity of one Moltaro resource instance.

object
ModuleKey
string
nullable
ResourceKind
string
nullable
ContextResourceId
string
nullable
ResourceObjectId
string
nullable
IsActive

Current live invariant state.

boolean
SafeMessage

Localized safe active-state message, or null when inactive.

string
nullable
Operations

Requested diagnostic operation decisions keyed by stable operation key.

object
key
additional properties

Composed current decision for one applicable object operation.

object
OperationKey

Stable Object Operation Catalog key.

string
nullable
IsAllowed

Whether all independent authorities allow the operation.

boolean
Denials

Deterministically ordered safe denial details.

Array<object>
nullable

One safe denial contributing to a composed object-operation decision.

object
Source

Identifies the independent authority that denied an object operation.

integer format: int32
Allowed values: 0 1 2 3
SourceKey

Stable source identity, such as an invariant key or domain policy key.

string
nullable
ReasonCode

Stable machine-readable reason code.

string
nullable
SafeMessage

Non-empty localized safe message.

string
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
{
"Data": {
"Objects": [
{
"Operations": {
"additionalProperty": {
"Denials": [
{
"Source": 0
}
]
}
}
}
]
},
"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"
}