atproto blogging
at main 52 lines 1.4 kB view raw
1{ 2 "lexicon": 1, 3 "id": "tools.ozone.safelink.removeRule", 4 "defs": { 5 "main": { 6 "type": "procedure", 7 "description": "Remove an existing URL safety rule", 8 "input": { 9 "encoding": "application/json", 10 "schema": { 11 "type": "object", 12 "required": [ 13 "url", 14 "pattern" 15 ], 16 "properties": { 17 "comment": { 18 "type": "string", 19 "description": "Optional comment about why the rule is being removed" 20 }, 21 "createdBy": { 22 "type": "string", 23 "description": "Optional DID of the user. Only respected when using admin auth.", 24 "format": "did" 25 }, 26 "pattern": { 27 "type": "ref", 28 "ref": "tools.ozone.safelink.defs#patternType" 29 }, 30 "url": { 31 "type": "string", 32 "description": "The URL or domain to remove the rule for" 33 } 34 } 35 } 36 }, 37 "output": { 38 "encoding": "application/json", 39 "schema": { 40 "type": "ref", 41 "ref": "tools.ozone.safelink.defs#event" 42 } 43 }, 44 "errors": [ 45 { 46 "description": "No active rule found for this URL/domain", 47 "name": "RuleNotFound" 48 } 49 ] 50 } 51 } 52}