tools.ozone.safelink.addRule

Add a new URL safety rule

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

Showing version bafyreihnl3w5wicdpg3andxxg67hvd5k56fazaie4lkogrql6ri4tcqmfq. Show the latest

Procedure

procedure · POST

Input

application/json

comment

string

Optional comment about the decision

createdBy

string · did

Author DID. Only respected when using admin auth

source

string

Source of the rule

  • maxLength: 128
  • default: "ozone/default"

url

requiredstring

The URL or domain to apply the rule to

Output

application/json

Errors

InvalidUrl

The provided URL is invalid

RuleAlreadyExists

A rule for this URL/domain already exists

RuleSourceConflict

A rule for this URL/domain is owned by another source

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.