Create a rule
Create a new rule.
Note: Changing a rule’s stage of execution from the default login_success can change the rule’s function signature to have user omitted.
Documentation Index
Fetch the complete documentation index at: https://docs-dev.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Name of this rule.
^[a-zA-Z0-9]([ \-a-zA-Z0-9]*[a-zA-Z0-9])?$Code to be executed when this rule runs.
1Order that this rule should execute in relative to other rules. Lower-valued rules execute first.
x >= 0Whether the rule is enabled (true), or disabled (false).
Response
Rule successfully created.
Name of this rule.
ID of this rule.
Whether the rule is enabled (true), or disabled (false).
Code to be executed when this rule runs.
Order that this rule should execute in relative to other rules. Lower-valued rules execute first.
Execution stage of this rule. Can be login_success, login_failure, or pre_authorize.