Autional Autional
API Reference GitHub autional.com →

POST /admin/point-rules/test

Admin operation. Dry-run to calculate the rule parameters and expected points for a given event type. Does not actually issue points or modify any data.

Points Service `bearerAuth` application/json

Request Body

Schema: dto.TestRuleRequest

FieldTypeRequiredExampleConstraintsDescription
event_type string Yes

Responses

StatusDescriptionSchema
200Dry-run result (points/effective_rate/daily_remaining)dto.RuleTestResponse
400Bad requestgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthorizedgitee_com_linmes_authms_base_dto.SimpleResponse
403Forbiddengitee_com_linmes_authms_base_dto.SimpleResponse
404No matching points rulegitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.RuleTestResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 0
data dto.RuleTestResult No
message string No success

dto.RuleTestResult

FieldTypeRequiredExampleConstraintsDescription
daily_remaining integer No 3
effective_rate number No 2
points integer No 100

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No