ackDB
Replace a score definition's config
Full replace of the mutable fields (name, description, groups, criteria, normalization, labels, isPrimary, enabled). scoreKey and grain are immutable. Disabling a previously-enabled definition removes its columns and transactionally scrubs referencing saved segments (the response's scrubbedSegments reports how many). Any successful edit clears degraded.
put/api/v1/ackdb/scores/{scoreKey}
Request
- Base URLhttp://localhost:3009
- AuthHTTP bearer
Path parameters
scoreKeystring required
The score definition's slug (immutable after create).
Query parameters
grain'company' | 'person'
Disambiguates a scoreKey that exists on both grains (400 without it in that case).
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 updated definition (+ scrubbedSegments).
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.