Appearance
Moderation Rule
osm.moderation_rule · numbered MOD-{total_marks}
Fields
Every record also has id, created_at and updated_at.
| Field | Label | Type | Rules |
|---|---|---|---|
rule_name | rule name | text | |
total_marks | total marks | number | required; min 1 |
ranges | ranges | table of moderation_range | |
is_active | is active | check | default true |
Unique together: total_marks
Permissions
| Role | Can |
|---|---|
osm:super_admin | read, create, update, delete |
osm:admin | read, create, update, delete |
osm:moderator | read |
API
http
GET /api/osm/moderation_rule?<field>=<value>&limit=100&offset=0
POST /api/osm/moderation_rule
GET /api/osm/moderation_rule/:id
PATCH /api/osm/moderation_rule/:id
DELETE /api/osm/moderation_rule/:id