tools.ozone.safelink.updateRule
Update an existing URL safety rule
Details · procedure
| Kind | procedure |
|---|---|
| Authority | safelink.ozone.tools |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.commentNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.urlNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Update an existing URL safety rule",
"errors": [
{
"description": "No active rule found for this URL/domain",
"name": "RuleNotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"action": {
"ref": "tools.ozone.safelink.defs#actionType",
"type": "ref"
},
"comment": {
"description": "Optional comment about the update",
"type": "string"
},
"createdBy": {
"description": "Optional DID to credit as the creator. Only respected for admin_token authentication.",
"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 update the rule for",
"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.updateRule",
"lexicon": 1
}