create_policy_rule
Create a new rule for an existing Okta policy by specifying its ID and rule configuration, including name, priority, status, conditions, and actions.
Instructions
Create a new rule for a policy.
Parameters: policy_id (str, required): The ID of the policy. rule_data (dict, required): The rule configuration containing: - name (str, required): Rule name - priority (int, optional): Priority of the rule - status (str, optional): ACTIVE or INACTIVE - conditions (dict, optional): Rule conditions - actions (dict, optional): Rule actions
Returns: Dict containing the created rule details.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_policy_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_id | No | ||
| rule_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |