Modify an access control rule

This updates an existing access control rule. This is a partial update, so you only need to provide the fields you want to change. Specifying settings replaces all of the rule's existing settings. Provide an empty array to remove all settings. If the new settings differ from the existing ones, the server resets the rule's action to 1, or 512 if the settings include device_risk_tier or device_risk_tag. The API responds with a 400 error if the service is linked to an access rule set.

Path Params
string
required

A unique identifier for the service.

string
required

A unique identifier for an access control rule.

Query Params
string
required

The Akamai contract identifier for your Enterprise Application Access product.

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

Fields to update an access control rule. You only need to send the fields you want to change.

integer

The action the rule takes. Refer to Rule types & actions for more information. Use 1 for access rules. When the new settings differ from the existing ones, the server overwrites this value with 1, or 512 if the rule has device_risk_tier or device_risk_tag settings.

boolean

Whether to merge with global rules.

string
length ≥ 1

The rule's name. Needs to be unique within the service.

integer
enum

The rule type. Refer to Rule types & actions for more information. For access rules, the rule type is 1.

Allowed:
settings
array of objects

The conditions the rule matches, such as type, operator, and value. Sending settings replaces all of the rule's existing settings. To remove all settings, send an empty array.

settings
integer
enum

The rule status. Either 0 for disabled or 1 for enabled.

Allowed:
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