1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ConditionalRulesPayload — openapi

Public JSON shape for conditional rules (rules + rulesOrder), aligned with CMS ConditionalRules.

Properties

NameTypeRequiredDescription
rulesobjectfalseRPN rules keyed by condition id. On draft:overwrite, omitting a rule id that exists on published removes that rule; JSON null tombstones; { "tokens": [] } is an explicit empty rule.
rulesOrderarrayfalseEvaluation order (condition ids).

Complete Schema

{
  "type": "object",
  "properties": {
    "rules": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/ConditionalRuleDefinition"
      },
      "description": "RPN rules keyed by condition id. On `draft:overwrite`, omitting a rule id that exists on published removes that rule; JSON `null` tombstones;\r\n`{ \"tokens\": [] }` is an explicit empty rule.",
      "nullable": true
    },
    "rulesOrder": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Evaluation order (condition ids).",
      "nullable": true
    }
  },
  "additionalProperties": false,
  "description": "Public JSON shape for conditional rules (`rules` + `rulesOrder`), aligned with CMS `ConditionalRules`."
}