Evaluate one exact Business Invariant metadata record for an explicit bounded object set without persisting calculated state.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/business-invariants/evaluate"), Headers = { { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"MetadataId\": \"example\", \"Objects\": [ { \"ModuleKey\": \"example\", \"ResourceKind\": \"example\", \"ContextResourceId\": \"example\", \"ResourceObjectId\": \"example\" } ], \"OperationKeys\": [ \"example\" ] }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/business-invariants/evaluate';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"MetadataId":"example","Objects":[{"ModuleKey":"example","ResourceKind":"example","ContextResourceId":"example","ResourceObjectId":"example"}],"OperationKeys":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" ] }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Requests a bounded live diagnostic evaluation for one exact metadata record.
object
Exact invariant target metadata identifier.
Explicit bounded existing resource identities.
Stable identity of one Moltaro resource instance.
object
Exact requested operation keys when Grant diagnostics are required.
Examplegenerated
{ "MetadataId": "example", "Objects": [ { "ModuleKey": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" } ], "OperationKeys": [ "example" ]}Requests a bounded live diagnostic evaluation for one exact metadata record.
object
Exact invariant target metadata identifier.
Explicit bounded existing resource identities.
Stable identity of one Moltaro resource instance.
object
Exact requested operation keys when Grant diagnostics are required.
Examplegenerated
{ "MetadataId": "example", "Objects": [ { "ModuleKey": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" } ], "OperationKeys": [ "example" ]}Requests a bounded live diagnostic evaluation for one exact metadata record.
object
Exact invariant target metadata identifier.
Explicit bounded existing resource identities.
Stable identity of one Moltaro resource instance.
object
Exact requested operation keys when Grant diagnostics are required.
Examplegenerated
{ "MetadataId": "example", "Objects": [ { "ModuleKey": "example", "ResourceKind": "example", "ContextResourceId": "example", "ResourceObjectId": "example" } ], "OperationKeys": [ "example" ]}Responses
Section titled “Responses”OK
object
Safe bounded diagnostic evaluation result.
object
Exact invariant target metadata identifier.
Stable invariant key.
Stable target key.
Total live evaluation time.
Exactly one result per requested resource.
Safe diagnostic state and operation decisions for one requested resource.
object
Stable identity of one Moltaro resource instance.
object
Current live invariant state.
Localized safe active-state message, or null when inactive.
Requested diagnostic operation decisions keyed by stable operation key.
object
Composed current decision for one applicable object operation.
object
Stable Object Operation Catalog key.
Whether all independent authorities allow the operation.
Deterministically ordered safe denial details.
One safe denial contributing to a composed object-operation decision.
object
Identifies the independent authority that denied an object operation.
Stable source identity, such as an invariant key or domain policy key.
Stable machine-readable reason code.
Non-empty localized safe message.
object
object
object
object
Example
{ "Data": { "Objects": [ { "Operations": { "additionalProperty": { "Denials": [ { "Source": 0 } ] } } } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
Safe bounded diagnostic evaluation result.
object
Exact invariant target metadata identifier.
Stable invariant key.
Stable target key.
Total live evaluation time.
Exactly one result per requested resource.
Safe diagnostic state and operation decisions for one requested resource.
object
Stable identity of one Moltaro resource instance.
object
Current live invariant state.
Localized safe active-state message, or null when inactive.
Requested diagnostic operation decisions keyed by stable operation key.
object
Composed current decision for one applicable object operation.
object
Stable Object Operation Catalog key.
Whether all independent authorities allow the operation.
Deterministically ordered safe denial details.
One safe denial contributing to a composed object-operation decision.
object
Identifies the independent authority that denied an object operation.
Stable source identity, such as an invariant key or domain policy key.
Stable machine-readable reason code.
Non-empty localized safe message.
object
object
object
object
Example
{ "Data": { "Objects": [ { "Operations": { "additionalProperty": { "Denials": [ { "Source": 0 } ] } } } ] }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}