policies_all_test_create
POST/policies/all/:policy_uuid/test/
Test policy
Request
Path Parameters
policy_uuid uuidrequired
A UUID string identifying this Policy.
- application/json
Body
required
user integerrequired
context
object
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
passing booleanrequired
messages string[]required
log_messages
object[]
required
timestamp date-timerequired
log_level LogLevelEnum (string)required
Possible values: [critical
, exception
, error
, warn
, warning
, info
, debug
, notset
]
logger stringrequired
event stringrequired
attributes
object
required
{
"passing": true,
"messages": [
"string"
],
"log_messages": [
{
"timestamp": "2024-09-27T14:26:18.366Z",
"log_level": "critical",
"logger": "string",
"event": "string",
"attributes": {}
}
]
}
Invalid parameters
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...