Run Layer
POST/api/v1/layers/run
Execute a set of policies on input data and return the processed result. Policies can be referenced by ID or passed as transient objects with parameters.
Query Parameters
use_cache: optional boolean
Body Parameters
input_data: string
kwargs: optional map[unknown]
policies: optional array of unknown
Returns
overall_policy_outcome: string
policy_results: map[map[unknown]]
span_context: map[string]
processed_data: optional string
Run Layer
curl http://api-staging.overmind.ai/api/v1/layers/run \
-H 'Content-Type: application/json' \
-d '{
"input_data": "input_data",
"layer_position": "input"
}'{
"overall_policy_outcome": "overall_policy_outcome",
"policy_results": {
"foo": {
"foo": "bar"
}
},
"span_context": {
"foo": "string"
},
"processed_data": "processed_data"
}Returns Examples
{
"overall_policy_outcome": "overall_policy_outcome",
"policy_results": {
"foo": {
"foo": "bar"
}
},
"span_context": {
"foo": "string"
},
"processed_data": "processed_data"
}