filtering

Set user-defined filter rules

Changed on
post/filtering/set_rules

Request

  • Base URL
    /control (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP basic

Request body

rulesstring[]

Example request

{
  "rules": [
    "||example.com^",
    "# comment",
    "@@||www.example.com^"
  ]
}

Response

OK.

Changes

    • breaking

      removed the media type text/plain from the request body

    • info

      added the media type application/json to the request body

    • breaking

      removed the media type application/json from the request body

    • info

      added the media type text/plain to the request body