tools.ozone.safelink.addRule
#main
Add a new URL safety rule
Input
- Encoding: application/json
| Property | Type | Known Values | Required | Description |
|---|---|---|---|---|
| url | string | - | ✅ | The URL or domain to apply the rule to |
| pattern | tools.ozone.safelink.defs#patternType | - | ✅ | - |
| action | tools.ozone.safelink.defs#actionType | - | ✅ | - |
| reason | tools.ozone.safelink.defs#reasonType | - | ✅ | - |
| comment | string | - | ❌ | Optional comment about the decision |
| createdBy | string (did) | - | ❌ | Author DID. Only respected when using admin auth |
Output
- Encoding: application/json
| Property | Type | Known Values | Required | Description |
|---|---|---|---|---|
| ref | tools.ozone.safelink.defs#event | - | ✅ | - |