add_rules
Add masking rules to a policy in batches of up to 99. Each rule requires a role, tag value, and masking level.
Instructions
Add one or more masking rules to a policy in a single batch request.
Each rule specifies: which role, which tag value,
and what masking level
they should see. A policy must already exist for the tag (see
create_policy). Accepts up to 99 rules per batch; if more than 99 are
provided they are automatically split into multiple batches.
Each rule in the list must be a dict with these keys:
masking_policy: int — masking level (10000-10009)
role: str — target user group / role name from
get_rolestag_value: str — exact tag value this rule applies to (case-sensitive)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_id | Yes | Raw policy ID from `get_policies`. Do not URL-encode. | |
| rules | Yes | List of rule dicts, or a JSON string encoding such a list. Each dict must have 'masking_policy', 'role', and 'tag_value'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||