Path parameters
-
contextId
string Required The parent context ID, for example, "contextID1/rules"
Query parameters
-
compileCode
boolean Whether to return compiled ruleset code
-
pageSize
integer(int32) The maximum number of items to return.
-
pageToken
string The next_page_token value returned from a previous List request, if any.
GET
/v1/{contextId}/rules
curl \
--request GET https://api.brease.run/v1/{contextId}/rules
Response examples (200)
{
"rules": [
{
"id": "string",
"version": 42,
"description": "string",
"actions": [
{
"kind": "string",
"target": {
"kind": "string",
"id": "string",
"value": "string"
}
}
],
"expression": {
"and": {
"expression": [
{}
]
},
"or": {
"expression": [
{}
]
},
"condition": {
"key": "string",
"ref": {
"src": "string",
"dst": "string",
"value": "string"
},
"kind": "e",
"value": "string"
}
}
}
],
"code": "string",
"nextPageToken": "string"
}
Response examples (default)
{
"code": 42,
"message": "string",
"details": [
{
"@type": "string"
}
]
}