tools.ozone.safelink.addRule
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Add a new URL safety rule",
"errors": [
{
"description": "The provided URL is invalid",
"name": "InvalidUrl"
},
{
"description": "A rule for this URL/domain already exists",
"name": "RuleAlreadyExists"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"action": {
"ref": "tools.ozone.safelink.defs#actionType",
"type": "ref"
},
"comment": {
"description": "Optional comment about the decision",
"type": "string"
},
"createdBy": {
"description": "Author DID. Only respected when using admin auth",
"format": "did",
"type": "string"
},
"pattern": {
"ref": "tools.ozone.safelink.defs#patternType",
"type": "ref"
},
"reason": {
"ref": "tools.ozone.safelink.defs#reasonType",
"type": "ref"
},
"url": {
"description": "The URL or domain to apply the rule to",
"type": "string"
}
},
"required": [
"url",
"pattern",
"action",
"reason"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "tools.ozone.safelink.defs#event",
"type": "ref"
}
},
"type": "procedure"
}
},
"id": "tools.ozone.safelink.addRule",
"lexicon": 1
}
Metadata
- DID
-
did:plc:33dt5kftu3jq2h5h4jjlqezt - CID
-
bafyreifbnjv4hhxzgpdmbjl6ipwgzq233rjw3eu2cayp2benof7ajqovlq - Indexed At
- 2026-07-26 20:04 UTC
- AT-URI
-
at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.safelink.addRule
Referenced Schemas (4)
Similar Lexicons
Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
tools.ozone.safelink.updateRule procedure
Update an existing URL safety rule
-
An event for URL safety decisions
-
tools.ozone.safelink.removeRule procedure
Remove an existing URL safety rule
-
tools.ozone.safelink.queryRules procedure
Query URL safety rules