---
updatedAt: 2026-06-02T12:31:57.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/application-security/llms.txt
---

# Update a rapid rule's action

__All products__ Set the rapid rule's action. Run this operation if you want to set different actions for each rule, or override the default action for a single rule.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Application Security API",
    "url": "https://techdocs.akamai.com/application-security/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Security policies",
    "version": "v1"
  },
  "openapi": "3.0.0",
  "paths": {
    "/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/rapid-rules/{ruleId}/versions/{ruleVersion}/action": {
      "put": {
        "description": "__All products__ Set the rapid rule's action. Run this operation if you want to set different actions for each rule, or override the default action for a single rule.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Application Security API",
          "url": "https://techdocs.akamai.com/application-security/reference/put-policy-rapid-rule-action"
        },
        "operationId": "put-policy-rapid-rule-action",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "action": "alert"
              },
              "schema": {
                "additionalProperties": false,
                "description": "Describes the rapid rule's action.",
                "properties": {
                  "action": {
                    "description": "The list of rapid rule actions, either `alert`, `deny`, or `none`. Use `deny_custom_{custom_deny_id}` to apply a custom action instead of Akamai's default. Run [Modify a custom deny action](ref:put-custom-deny) to manage your custom deny actions. If the action is `none`, the rule is inactive in the policy.",
                    "oneOf": [
                      {
                        "enum": [
                          "alert",
                          "deny",
                          "none",
                          "akamai_managed"
                        ],
                        "title": "Predefined action",
                        "type": "string"
                      },
                      {
                        "pattern": "^(challenge|deny_custom|serve_alt|cond_action_)_[0-9]+$",
                        "title": "Configurable action",
                        "type": "string"
                      }
                    ],
                    "type": "object",
                    "x-akamai": {
                      "file-path": "schemas/rapid-rule-action.yaml"
                    }
                  }
                },
                "required": [
                  "action"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/rapid-rules-action.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "action": "alert",
                  "lock": true
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Describes action for the rapid rule.",
                  "properties": {
                    "action": {
                      "description": "The list of rapid rule actions, either `alert`, `deny`, or `none`. Use `deny_custom_{custom_deny_id}` to apply a custom action instead of Akamai's default. Run [Modify a custom deny action](ref:put-custom-deny) to manage your custom deny actions. If the action is `none`, the rule is inactive in the policy.",
                      "oneOf": [
                        {
                          "enum": [
                            "alert",
                            "deny",
                            "none",
                            "akamai_managed"
                          ],
                          "title": "Predefined action",
                          "type": "string"
                        },
                        {
                          "pattern": "^(challenge|deny_custom|serve_alt|cond_action_)_[0-9]+$",
                          "title": "Configurable action",
                          "type": "string"
                        }
                      ],
                      "type": "object",
                      "x-akamai": {
                        "file-path": "schemas/rapid-rule-action.yaml"
                      }
                    },
                    "lock": {
                      "description": "Whether you've locked the rapid rule's action. When locked, future versions of this rule continue to use the action you originally selected.",
                      "type": "boolean",
                      "x-akamai": {
                        "file-path": "schemas/rapid-rule-lock.yaml"
                      }
                    }
                  },
                  "required": [
                    "action",
                    "lock"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/rapid-rule-action-get-200.yaml"
                  }
                }
              }
            },
            "description": "Successfully updated the rapid rule's action."
          },
          "400": {
            "content": {
              "application/json": {
                "example": {
                  "detail": "The request could not be understood by the server due to malformed syntax.",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 400,
                  "title": "Bad Request",
                  "type": "https://problems.luna.akamaiapis.net/appsec/error-types/BAD-REQUEST"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Invalid](ref:400). Client error, such as invalid or malformed input.",
            "x-akamai": {
              "file-path": "errors/400-client-read-errors.yaml"
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "You do not have the necessary access to perform this operation or the requested resource cannot be modified",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "https://problems.luna.akamaiapis.net/appsec-resource/error-types/ACCESS-DENIED"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Forbidden](ref:403). You don't have permission to write to this resource.",
            "x-akamai": {
              "file-path": "errors/403-client-write-errors.yaml"
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "The requested resource is not found",
                  "instance": "https://problems.luna.akamaiapis.net/appsec/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                  "status": 404,
                  "title": "Not Found",
                  "type": "https://problems.luna.akamaiapis.net/appsec/error-types/NOT-FOUND"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Not found](ref:404). The security policy doesn't exist, doesn't carry application layer controls, or no rule with this ID is available for use in this policy.",
            "x-akamai": {
              "file-path": "errors/404-client-read-errors.yaml"
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Internal Server Error",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 500,
                  "title": "Internal Server Error",
                  "type": "internal_server_error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Details the errors you can receive.",
                  "properties": {
                    "detail": {
                      "description": "The detailed error message.",
                      "type": "string"
                    },
                    "fieldErrors": {
                      "description": "Pointers to fields for which invalid input was provided, whose values are messages detailing the reason this input was invalid for this field.",
                      "type": "object"
                    },
                    "instance": {
                      "description": "The non-referenceable URI that indicates the error instance.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-instances/d54686b5-21cb-4ab7-a8d6-a92282cf1749",
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code.",
                      "example": 404,
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "example": "Not Found",
                      "type": "string"
                    },
                    "type": {
                      "description": "The URL for the error type.",
                      "example": "https://problems.luna.akamaiapis.net/api-definitions/error-types/NOT-FOUND",
                      "type": "string"
                    }
                  },
                  "required": [
                    "title",
                    "type",
                    "detail",
                    "instance",
                    "status"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/problem-details.yaml"
                  }
                }
              }
            },
            "description": "[Internal server error](ref:500). Something went wrong on our side. Try again in a few minutes or contact support if the error persists.",
            "x-akamai": {
              "file-path": "errors/500-server-errors.yaml"
            }
          }
        },
        "summary": "Update a rapid rule's action",
        "tags": [
          "WAF rules: Rapid rules"
        ],
        "x-akamai": {
          "labels": [
            "All products"
          ]
        }
      },
      "parameters": [
        {
          "description": "A unique identifier for each configuration.",
          "in": "path",
          "name": "configId",
          "required": true,
          "schema": {
            "example": 77653,
            "format": "int64",
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/config-id-path.yaml"
          }
        },
        {
          "description": "A unique identifier for each version of a configuration.",
          "in": "path",
          "name": "versionNumber",
          "required": true,
          "schema": {
            "example": 25,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/version-number-path.yaml"
          }
        },
        {
          "description": "A unique identifier for a security policy.",
          "in": "path",
          "name": "policyId",
          "required": true,
          "schema": {
            "example": "boBF_19288",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/policy-id-path.yaml"
          }
        },
        {
          "description": "A unique identifier for rule.",
          "in": "path",
          "name": "ruleId",
          "required": true,
          "schema": {
            "example": 699989,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/rule-id-path.yaml"
          }
        },
        {
          "description": "A unique identifier for each version of a rapid rule.",
          "in": "path",
          "name": "ruleVersion",
          "required": true,
          "schema": {
            "example": 2,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/rapid-rule-version-number-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/rapid-rule-action.yaml",
        "path-info": "/configs/{configId}/versions/{versionNumber}/security-policies/{policyId}/rapid-rules/{ruleId}/versions/{ruleVersion}/action"
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/appsec/v1"
    }
  ],
  "tags": [
    {
      "description": "Quickly manage and mitigate risks resulting from the most recent high-profile, critical vulnerabilities.\n__Note__. Rapid rules are rules you can apply while we are still testing and perfecting them. Once we finish that process, a rapid rule becomes a WAF rule.",
      "name": "WAF rules: Rapid rules"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "02-security-policies.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [List rapid rules](https://techdocs.akamai.com/application-security/reference/get-policy-rapid-rules.md)
* [Get rapid rules' default action](https://techdocs.akamai.com/application-security/reference/get-policy-rapid-rules-action.md)
* [Update rapid rules' default action](https://techdocs.akamai.com/application-security/reference/put-policy-rapid-rules-action.md)
* [Get rapid rules' status](https://techdocs.akamai.com/application-security/reference/get-policy-rapid-rules-status.md)
* [Update rapid rules' status](https://techdocs.akamai.com/application-security/reference/put-policy-rapid-rules-status.md)
* [List a rapid rule's conditions and exceptions](https://techdocs.akamai.com/application-security/reference/get-policy-rapid-rule-condition-exception.md)
* [Update a rapid rule's conditions and exceptions](https://techdocs.akamai.com/application-security/reference/put-policy-rapid-rule-condition-exception.md)
* [Get a rapid rule's lock status](https://techdocs.akamai.com/application-security/reference/get-policy-rapid-rule-lock.md)
* [Update a rapid rule's lock status](https://techdocs.akamai.com/application-security/reference/put-policy-rapid-rule-lock.md)
* [Get a rapid rule's action](https://techdocs.akamai.com/application-security/reference/get-policy-rapid-rule-action.md)