Admin Scoring Formats
Compile unsaved rules
Returns the snapshot a device would be given, without writing anything. This is how a format is checked before it is saved.
post/v1/admin/scoring_formats/preview
Request
- Base URLhttps://api.hify.club
- AuthAPI key in header X-User-Token
Request body
Example request
{
"id": 12,
"slug": "ipt_race_to_8",
"name": "IPT Race to 8",
"subtitle": "IPT Race to 8",
"rules": {
"match": {
"win": {
"target": 6,
"margin": 2
},
"deciding": {
"win": {
"target": 6,
"margin": 2
},
"label": "Super tiebreak"
}
},
"levels": [
{
"type": "set",
"win": {
"target": 6,
"margin": 2
},
"tiebreak": {
"trigger_at": 6,
"win": {
"target": 6,
"margin": 2
}
},
"deciding_overrides": {
"tiebreak": {
"trigger_at": 6,
"win": {
"target": 6,
"margin": 2
}
}
}
}
],
"serve": {
"starting_score": "0-0-2"
}
},
"rules_version": 1
}Response
Compiled snapshot
Changes
No recorded changes to this operation across all 1 revision of this API.