Replace a recipe
Beta. The request and response shapes may still change.
Overwrite a recipe in place. The body is the whole recipe, not a patch: rules, attributes and parameters you omit are cleared.
The submitted recipe is validated exactly as a creation is, and the stored catalog_version is re-stamped to the latest - an edit re-pins the recipe to today’s signal vocabulary. Moving a recipe between DRAFT, SHADOW, LIVE and INACTIVE is this endpoint too.
status to promote a SHADOW recipe to LIVE, or to take a LIVE one back to INACTIVE.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The recipe identifier.
"rcp_01jc0t6fwwfgfsq1md24mhyztj"
Body
128"signup_proxy_abuse"
Whether the recipe takes part in an evaluation, and whether its verdict counts.
DRAFT- Not yet in service. It does not evaluate.SHADOW- Evaluates and is reported, so you can watch a threshold against live traffic before trusting it.LIVE- Evaluates, and its verdict counts toward the evaluation-level answer.INACTIVE- Taken back out of service. It does not evaluate.
DRAFT, SHADOW, LIVE, INACTIVE "SHADOW"
The score at which the recipe flags. The weights of the rules that triggered are summed, and the recipe flags when the total reaches this value. A threshold of 0 flags every evaluation.
70
The rules this recipe scores over, with their weights. At least one is required.
1The request-level facts this recipe's rules may read, declared by key and referenced in an expression as attr.<key>. Values arrive with each evaluation.
A key is lower snake_case, at most 64 characters, and at most 32 may be declared. An attribute a rule reads and a recipe does not declare is a compile error, reported against that rule.
This recipe's configuration: keys and their values, referenced in an expression as param.<key>, fixed until the recipe is replaced. Use them for the country list or the limit a shared rule should apply here, so the same rule can serve two recipes tuned differently.
Keys follow the same format as attributes, and at most 32 may be declared. Values are strings - the only type either supports today.
Response
OK
The recipe identifier. Reference it in a flow's recipes to run it.
"rcp_01jc0t6fwwfgfsq1md24mhyztj"
"signup_proxy_abuse"
The version of the Prelude signal catalog this recipe's rules are compiled against, stamped by the server when the recipe is created or replaced. It is what stops a catalog that later grows or deprecates entries from silently changing what this recipe means.
1
DRAFT, SHADOW, LIVE, INACTIVE 70