Edge rules

Password, IP allow-list, host scope, preview protection, automation bypass secrets (write-only) and OPTIONS paths; omitted sections are left unchanged

patch/projects/{projectId}/protection

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/projects/{projectId}/protection
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

projectIdstring uuid required

Request body

hostScope'all' | 'all_except_custom_domains' | 'default_and_previews'

all: every domain; all_except_custom_domains / default_and_previews: only the project's default hostnames (custom domains stay open)

Response

Updated

projectIdstring uuid required
hostScope'all' | 'all_except_custom_domains' | 'default_and_previews'

all: every domain; all_except_custom_domains / default_and_previews: only the project's default hostnames (custom domains stay open)

updatedAtstring nullable required

ISO-8601 timestamp

Changes

No recorded changes to this operation across all 1 revision of this API.