Skip to main content
PATCH
Error

Autorizações

Authorization
string
header
obrigatório

A staff session token, uk_st_…. Minted by sign-up, sign-in or the two-factor exchange. Only a 401 means it is spent; not_a_member (403) is about the organization named in X-Organization-Id and leaves the token good for the others.

Cabeçalhos

X-Organization-Id
string

The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.

Parâmetros de caminho

id
string<uuid>
obrigatório

The rule's id.

Corpo

application/json
name
string
Maximum string length: 120
points
integer

Not zero.

Intervalo obrigatório: -10000 <= x <= 10000
award_limit
enum<string>

Required. There is no default on purpose.

Opções disponíveis:
once,
per_day,
cooldown,
unlimited
limit_value
integer

Required for per_day and cooldown, refused for the other two.

Intervalo obrigatório: 1 <= x <= 525600
segment_id
string<uuid> | null

Who earns from it, or null for everybody.

active
boolean
padrão:false

Resposta

The rule.

rule
object

A fact, some points, and a ceiling. A rule pays when the fact it names lands — nothing you or your users can call moves a balance, the same way nothing ticks an onboarding step.