Auth0 · Schema

UpdateRuleResponseContent

AI AgentsAuthenticationAuthorizationFGAIdentity ManagementMCPOAuthOktaOpenID ConnectSAMLSecuritySCIM

Properties

Name Type Description
name string Name of this rule.
id string ID of this rule.
enabled boolean Whether the rule is enabled (true), or disabled (false).
script string Code to be executed when this rule runs.
order number Order that this rule should execute in relative to other rules. Lower-valued rules execute first.
stage string Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`.
View JSON Schema on GitHub

JSON Schema

auth0-updateruleresponsecontent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/UpdateRuleResponseContent",
  "title": "UpdateRuleResponseContent",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "description": "Name of this rule.",
      "default": "rule_1"
    },
    "id": {
      "type": "string",
      "description": "ID of this rule.",
      "default": "con_0000000000000001"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the rule is enabled (true), or disabled (false).",
      "default": true
    },
    "script": {
      "type": "string",
      "description": "Code to be executed when this rule runs.",
      "default": "function (user, context, callback) {\n  callback(null, user, context);\n}"
    },
    "order": {
      "type": "number",
      "description": "Order that this rule should execute in relative to other rules. Lower-valued rules execute first.",
      "default": 1
    },
    "stage": {
      "type": "string",
      "description": "Execution stage of this rule. Can be `login_success`, `login_failure`, or `pre_authorize`.",
      "default": "login_success"
    }
  }
}