rules
Methods
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.
login_success
Delete a rule.
Retrieve a filtered list of rules. Accepts a list of fields to include or exclude.
Retrieve rule details. Accepts a list of fields to include or exclude in the result.
Update an existing rule.
Example: Authorization: Bearer My Bearer Token
curl https://login0.local.dev.auth0.com/api/v2/rules/$ID \ -X PATCH \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $BEARER_TOKEN"
{ "id": "id", "enabled": true, "name": "name", "order": 0, "script": "script", "stage": "stage" }
Domain types