blockListJson field. You must decode this string to read the individual rules, and re-encode your full desired list when updating.
Block rule fields
URL path prefix the rule applies to. Must start with
/. All requests whose path starts with this value are matched.HTTP methods to match. Use
["*"] to match all methods. Example: ["POST", "PUT", "DELETE"].HTTP status code returned to the researcher when the rule matches. Accepts any valid HTTP status code (100–599). Commonly
403 or 404.Whether the rule is currently active. Set to
false to disable a rule without removing it from the list.Retrieve block rules
Returns the current block rule list for a site.Request
Headers
Bearer token. Example:
Bearer <token>Path parameters
The UUID of the site.
Response
A JSON-encoded string containing the array of block rule objects. Decode this string to read the individual rules. Returns
"[]" if no rules are configured.Example
Update block rules
Replaces the entire block rule list for a site. Construct your complete desired list and submit it as a JSON-encoded string inblockListJson.
Request
Headers
Bearer token. Example:
Bearer <token>Must be
application/json.Body
The UUID of the site to update.
A JSON-encoded string containing the full array of block rule objects. Pass
"[]" to clear all rules.Response
Returns200 on success. Rules are applied at the proxy immediately.
Examples
Decoded rule list
TheblockListJson value above, decoded for readability: