create_policy
Creates a new Okta policy from supplied configuration, including type, name, status, conditions, and settings.
Instructions
Create a new policy.
Parameters: policy_data (dict, required): The policy configuration containing: - type (str, required): Policy type (OKTA_SIGN_ON, PASSWORD, MFA_ENROLL, ACCESS_POLICY, PROFILE_ENROLLMENT, POST_AUTH_SESSION, ENTITY_RISK, DEVICE_SIGNAL_COLLECTION) - name (str, required): Policy name - description (str, optional): Policy description - status (str, optional): ACTIVE or INACTIVE (default ACTIVE) - priority (int, optional): Priority of the policy - conditions (dict, optional): Policy conditions - settings (dict, optional): Policy-specific settings
Returns: Dict containing the created policy 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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| policy_data | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |