tools.ozone.safelink.updateRule

Update an existing URL safety rule

Details · procedure
Kindprocedure
Authoritysafelink.ozone.tools
Commit rev3n2oxl3wqpw2z
Indexed

Showing version bafyreih5674gm3bazy6gzydram7je4tm7ayhf7u463osutka2jk337o3gq. Show the latest

cid bafyreih5674gm3bazy6gzydram7je4tm7ayhf7u463osutka2jk337o3gq

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.commentNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.input.schema.properties.urlNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$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"
        },
        {
          "description": "A rule for this URL/domain is owned by another source",
          "name": "RuleSourceConflict"
        }
      ],
      "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"
            },
            "source": {
              "default": "ozone/default",
              "description": "Source of the rule to update",
              "maxLength": 128,
              "type": "string"
            },
            "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
}