ackDB
Create a score definition
Validates every field reference against the live schema (unknown refs → 400 with per-criterion errors in error.details.errors, each carrying criterionIndex for inline builder display). isPrimary: true transactionally takes over the grain's primary slot. Event refs are wire-BARE (event:slack.message) — the server resolves stored names. String match values on allowed-values traits are canonicalized case-insensitively.
post/api/v1/ackdb/scores
Request
- Base URLhttp://localhost:3009
- AuthHTTP bearer
Request body
Example request
{
"scoreKey": "pql",
"name": "PQL score",
"groups": [
{
"key": "fit",
"weight": 0.4
}
],
"criteria": [
{
"field": "event:slack.message",
"valueField": "employee_count"
}
],
"labels": [
{
"label": "Excellent"
}
]
}Response
The created definition.
Example response
{
"scoreKey": "pql",
"name": "PQL score",
"groups": [
{
"key": "fit",
"weight": 0.4
}
],
"criteria": [
{
"field": "event:slack.message",
"valueField": "employee_count"
}
],
"labels": [
{
"label": "Excellent"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.