Sites
Replace the IP blocklist
Owner or admin only; replaces the whole list. Unlike the dashboard equivalent this answers 400/500 on a bad body or a failed write instead of 200 with success:false — a status-checking client must not read a failure as done.
put/sites/{id}/settings/blocked-ips
Request
- Base URLhttps://statable.com/api/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
string[] required
Each entry is an address (203.0.113.7, 2001:db8::1) or a network in CIDR notation (2001:db8:abcd:12::/64). Networks are stored with their host bits cleared and may be no wider than /16 for IPv4 or /32 for IPv6. Blank entries are ignored; any other entry fails the whole request with 400 invalid_request and nothing is changed.
Response
Applied.
Changes
No recorded changes to this operation across all 1 revision of this API.