Skip to main content

Replace the complete Central IP allowlist

Replace the complete Central IP allowlist. PUT /api/openapi/v1/network-ranges, scope admin.v1.trusted-network.manage.

  • Scope: admin.v1.trusted-network.manage
  • Permission: Manage trusted networks (trusted-network)
  • Permission type: Manage
  • Endpoint: PUT/api/openapi/v1/network-ranges

Authentication and request headers

Call with an application API key. This endpoint checks only the scope above; read, manage and execute permissions do not imply one another.
NameLocationTypeRequiredDescriptionExample
AuthorizationheaderstringYesApplication API key, passed as a Bearer token.Bearer qwk_***
X-Request-IdheaderstringNoOptional request tracing identifier; generated by the server if omitted.req-20260831-001

Request parameters

NameLocationTypeRequiredDescriptionExample
ip_whitelistbodyarray<string>RequiredIP addresses or CIDR ranges. CIDRs with host bits are normalized to their network address, preserving the prefix length (42.120.72.78/16 becomes 42.120.0.0/16). Duplicate normalized entries are rejected.["<string>"]

Request example

cURL

Responses

200 OK
NameTypeRequiredDescriptionExample
successbooleanYes-false
Response example
default Flat business error
NameTypeRequiredDescriptionExample
codestringNoStable business error code"<string>"
detailstringYesHuman-readable error description"<string>"
detailsOpenapiErrorDetailsNoError details{"field":"<string>","reason":"<string>","suggestion":"<string>"}
details.fieldstringNoRequest field that failed validation"<string>"
details.reasonstringNoStable validation failure reason"<string>"
details.suggestionstringNoSuggested normalized value"<string>"
errorstringYesStable HTTP error type"<string>"
Response example