Update a Client-Side Protection configuration

All products Creates or updates the Client-Side Protection configuration for a security policy. If no configuration exists for the policy, it is created. If one exists, it is updated. The enabled state is managed separately via the protections toggle.

Path Params
int64
required

A unique identifier for each configuration.

integer
required

A unique identifier for each version of a configuration.

string
required

A unique identifier for a security policy.

Query Params
string

For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys.

Body Params

Configuration settings for Client-Side Protection.

edgeInjection
object
required

Specifies the Client-Side Protection JavaScript injection settings.

edgeTestParameters
object
required

Use these query string parameters to unit test edge server behavior. Entries here override the sampling percentage, ensuring or disabling JavaScript injection.

injectionCriteria
object
required

Specifies the criteria for script injection.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json
application/problem+json