Update an existing rule by ID without an organization path prefix. The rule's organization is resolved from the rule record itself. Platform-scope rules (those with no organization) require the MANAGE_PLATFORM_RULES capability on your current organization. Only the fields you send are changed.
rule_id string required
Rule ID (prefixed with rule_).
name string optional
New rule name.
content string optional
New rule content/body.
description string optional
New description.
category string optional
Category. Values: safety, professional, creative, technical, custom, viz_hints.
rule_type string optional
Rule type. Values: behavior, guardrails, formatting, context, content_policy, constraint.
scope string optional
Rule scope. Values: platform, organization, model, assistant, user, vector_store.
apply_mode string optional
When the rule is applied. Values: always, auto, manual.
is_public boolean optional
Whether the rule is public.
is_active boolean optional
Whether the rule is active.
Returns the updated rule object with an incremented version.
- Bash
- Python
- Python
- JavaScript
curl -X PUT "https://api.aitronos.com/v1/rules/rule_abc123" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "description": "Updated safety policy", "is_active": true }'