APIs.io Engineering Platform Account Rulesets API

The Account Rulesets API from APIs.io Engineering Platform — 10 operation(s) for account rulesets.

Operations 16

GET /accounts/{account_id}/rulesets APIs.io Engineering Platform List account rulesets #
POST /accounts/{account_id}/rulesets APIs.io Engineering Platform Create an account ruleset #
DELETE /accounts/{account_id}/rulesets/{ruleset_id} APIs.io Engineering Platform Delete an account ruleset #
GET /accounts/{account_id}/rulesets/{ruleset_id} APIs.io Engineering Platform Get an account ruleset #
PUT /accounts/{account_id}/rulesets/{ruleset_id} APIs.io Engineering Platform Update an account ruleset #
POST /accounts/{account_id}/rulesets/{ruleset_id}/rules APIs.io Engineering Platform Create an account ruleset rule #
DELETE /accounts/{account_id}/rulesets/{ruleset_id}/rules/{rule_id} APIs.io Engineering Platform Delete an account ruleset rule #
PATCH /accounts/{account_id}/rulesets/{ruleset_id}/rules/{rule_id} APIs.io Engineering Platform Update an account ruleset rule #
GET /accounts/{account_id}/rulesets/{ruleset_id}/versions APIs.io Engineering Platform List an account ruleset's versions #
DELETE /accounts/{account_id}/rulesets/{ruleset_id}/versions/{ruleset_version} APIs.io Engineering Platform Delete an account ruleset version #
GET /accounts/{account_id}/rulesets/{ruleset_id}/versions/{ruleset_version} APIs.io Engineering Platform Get an account ruleset version #
GET /accounts/{account_id}/rulesets/{ruleset_id}/versions/{ruleset_version}/by_tag/{rule_tag} APIs.io Engineering Platform List an account ruleset version's rules by tag #
GET /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint APIs.io Engineering Platform Get an account entry point ruleset #
PUT /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint APIs.io Engineering Platform Update an account entry point ruleset #
GET /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint/versions APIs.io Engineering Platform List an account entry point ruleset's versions #
GET /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint/versions/{ruleset_version} APIs.io Engineering Platform Get an account entry point ruleset version #

Documentation

Specifications

Other Resources

🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-1ab188a6-cc1f-490d-9413-9c6da20918d0?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-0e94f581-cbc1-48e0-b594-1f6b3d07a328?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-4517d93a-e7f7-4dc2-b572-06762bbe14de?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-88f9ddbb-3115-47dc-b6e5-7fc6f1d2a190?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-3a12caae-4945-4df4-8ab9-bb6219ba7a9f?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-863b18f0-c2f2-4e32-a5fa-0d1e6ccf77a9?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-189876d1-f207-49a2-a4bc-5c67ae78cd19?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-c1e74fd9-3f84-4d95-943d-d645d6cb82f7?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-b002164d-6e8a-4b6d-b409-4929476e7818?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-508660fd-30b8-4c9c-aede-8edbac8a514d?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-da35e0ba-f1a9-42fe-a77a-56ff0a47e341?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-1d4df7d0-9c92-4fa8-946f-2110c2b3b48d?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-2af6f54f-d259-46c0-8f86-78856f5885cd?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-cc203f31-e7f6-42ec-ad34-c5c4cde58904?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-f19285da-48dd-4691-bbdf-f7d6bec157a3?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-aa69cacc-4bbf-4724-a1d4-78cdad57fee8?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-a5858f86-04d3-4e15-ae11-b42c7516688b?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-c2052341-766c-43c7-b1dc-ed4985e4606b?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-aa777c90-8271-4809-8eac-3ec39a9a899c?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-4d5957dc-df05-4216-a5fc-d46b3ba811d8?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-28d97617-fdba-46a5-ac3e-40f3d2e0fa57?action=share&creator=35240
🔗
PostmanCollection
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-7429b451-d812-4abc-b497-b763372cf5c5?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-b0eafdd0-adaa-48a2-a855-6a31beb86d83?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-209f34ef-13c1-400c-bca8-fcddb304aff5?action=share&creator=35240
🔗
PostmanCapability
https://api-evangelist.postman.co/workspace/APIs.io-Engineering-Platform/fe320942-e505-4ee8-8b7c-d72eae00d93f/collection/35240-fb2bbbb8-d4cc-48b1-a660-c8e158bfbbea?action=share&creator=35240

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/engineering-platform-account-rulesets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

engineering-platform-account-rulesets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'To get started using Cloudflare''s products and services via the API, refer to [how to interact with Cloudflare](https://developers.cloudflare.com/fundamentals/basic-tasks/interact-with-cloudflare/), which covers using tools like [Terraform](https://developers.cloudflare.com/terraform/#cloudflare-terraform) and the [official SDKs](https://developers.cloudflare.com/fundamentals/api/reference/sdks/) to maintain your Cloudflare resources.


    Using the Cloudflare API requires authentication so that Cloudflare knows who is making requests and what permissions you have. Create an API token to grant access to the API to perform actions.


    To create an API token, from the Cloudflare dashboard, go to My Profile > API Tokens and select Create Token. For more information on how to create and troubleshoot API tokens, refer to

    our [API fundamentals](https://developers.cloudflare.com/fundamentals/api/).


    Totally new to Cloudflare? [Start here](https://developers.cloudflare.com/fundamentals/get-started/).'
  license:
    name: BSD-3-Clause
    url: https://opensource.org/licenses/BSD-3-Clause
  title: APIs.io Engineering Platform Cloudflare Account Rulesets API
  version: 4.0.0
tags:
- name: Account Rulesets
paths:
  /accounts/{account_id}/rulesets:
    get:
      description: Fetches all rulesets at the account level.
      operationId: listAccountRulesets
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Rulesets'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform List account rulesets
      tags:
      - Account Rulesets
      x-api-token-group:
      - Account WAF Read
      - Account Rulesets Read
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
    post:
      description: Creates a ruleset at the account level.
      operationId: createAccountRuleset
      parameters:
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      requestBody:
        $ref: '#/components/requestBodies/rulesets_CreateRuleset'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Create an account ruleset
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/{ruleset_id}:
    delete:
      description: Deletes all versions of an existing account ruleset.
      operationId: deleteAccountRuleset
      parameters:
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '204':
          $ref: '#/components/responses/rulesets_Empty'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Delete an account ruleset
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
    get:
      description: Fetches the latest version of an account ruleset.
      operationId: getAccountRuleset
      parameters:
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Get an account ruleset
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Mass URL Redirects Read
      - Magic Firewall Write
      - Magic Firewall Read
      - L4 DDoS Managed Ruleset Write
      - L4 DDoS Managed Ruleset Read
      - Transform Rules Write
      - Transform Rules Read
      - Select Configuration Write
      - Select Configuration Read
      - Account WAF Read
      - Account Rulesets Read
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
    put:
      description: Updates an account ruleset, creating a new version.
      operationId: updateAccountRuleset
      parameters:
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      requestBody:
        $ref: '#/components/requestBodies/rulesets_UpdateRuleset'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Update an account ruleset
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/{ruleset_id}/rules:
    post:
      description: Adds a new rule to an account ruleset. The rule will be added to the end of the existing list of rules in the ruleset by default.
      operationId: createAccountRulesetRule
      parameters:
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      requestBody:
        $ref: '#/components/requestBodies/rulesets_Rule'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Create an account ruleset rule
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/{ruleset_id}/rules/{rule_id}:
    delete:
      description: Deletes an existing rule from an account ruleset.
      operationId: deleteAccountRulesetRule
      parameters:
      - in: path
        name: rule_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RuleId'
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Delete an account ruleset rule
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
    patch:
      description: Updates an existing rule in an account ruleset.
      operationId: updateAccountRulesetRule
      parameters:
      - in: path
        name: rule_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RuleId'
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      requestBody:
        $ref: '#/components/requestBodies/rulesets_Rule'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Update an account ruleset rule
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/{ruleset_id}/versions:
    get:
      description: Fetches the versions of an account ruleset.
      operationId: listAccountRulesetVersions
      parameters:
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Rulesets'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform List an account ruleset's versions
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Mass URL Redirects Read
      - Magic Firewall Write
      - Magic Firewall Read
      - L4 DDoS Managed Ruleset Write
      - L4 DDoS Managed Ruleset Read
      - Transform Rules Write
      - Transform Rules Read
      - Select Configuration Write
      - Select Configuration Read
      - Account WAF Read
      - Account Rulesets Read
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/{ruleset_id}/versions/{ruleset_version}:
    delete:
      description: Deletes an existing version of an account ruleset.
      operationId: deleteAccountRulesetVersion
      parameters:
      - in: path
        name: ruleset_version
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetVersion'
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '204':
          $ref: '#/components/responses/rulesets_Empty'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Delete an account ruleset version
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Magic Firewall Write
      - L4 DDoS Managed Ruleset Write
      - Transform Rules Write
      - Select Configuration Write
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
    get:
      description: Fetches a specific version of an account ruleset.
      operationId: getAccountRulesetVersion
      parameters:
      - in: path
        name: ruleset_version
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetVersion'
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Get an account ruleset version
      tags:
      - Account Rulesets
      x-api-token-group:
      - Mass URL Redirects Write
      - Mass URL Redirects Read
      - Magic Firewall Write
      - Magic Firewall Read
      - L4 DDoS Managed Ruleset Write
      - L4 DDoS Managed Ruleset Read
      - Transform Rules Write
      - Transform Rules Read
      - Select Configuration Write
      - Select Configuration Read
      - Account WAF Read
      - Account Rulesets Read
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/{ruleset_id}/versions/{ruleset_version}/by_tag/{rule_tag}:
    get:
      description: Fetches the rules of a managed account ruleset version for a given tag.
      operationId: listAccountRulesetVersionRulesByTag
      parameters:
      - in: path
        name: rule_tag
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RuleCategory'
      - in: path
        name: ruleset_version
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetVersion'
      - in: path
        name: ruleset_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetId'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform List an account ruleset version's rules by tag
      tags:
      - Account Rulesets
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint:
    get:
      description: Fetches the latest version of the account entry point ruleset for a given phase.
      operationId: getAccountEntrypointRuleset
      parameters:
      - in: path
        name: ruleset_phase
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetPhase'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Get an account entry point ruleset
      tags:
      - Account Rulesets
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
    put:
      description: Updates an account entry point ruleset, creating a new version.
      operationId: updateAccountEntrypointRuleset
      parameters:
      - in: path
        name: ruleset_phase
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetPhase'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      requestBody:
        $ref: '#/components/requestBodies/rulesets_UpdateEntrypointRuleset'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Update an account entry point ruleset
      tags:
      - Account Rulesets
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint/versions:
    get:
      description: Fetches the versions of an account entry point ruleset.
      operationId: listAccountEntrypointRulesetVersions
      parameters:
      - in: path
        name: ruleset_phase
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetPhase'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Rulesets'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform List an account entry point ruleset's versions
      tags:
      - Account Rulesets
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
  /accounts/{account_id}/rulesets/phases/{ruleset_phase}/entrypoint/versions/{ruleset_version}:
    get:
      description: Fetches a specific version of an account entry point ruleset.
      operationId: getAccountEntrypointRulesetVersion
      parameters:
      - in: path
        name: ruleset_version
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetVersion'
      - in: path
        name: ruleset_phase
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_RulesetPhase'
      - in: path
        name: account_id
        required: true
        schema:
          $ref: '#/components/schemas/rulesets_AccountId'
      responses:
        4XX:
          $ref: '#/components/responses/rulesets_Failure'
        '200':
          $ref: '#/components/responses/rulesets_Ruleset'
      security:
      - api_token: []
      - api_email: []
        api_key: []
      - api_email: []
        api_key: []
      summary: APIs.io Engineering Platform Get an account entry point ruleset version
      tags:
      - Account Rulesets
      x-cfPlanAvailability:
        business: true
        enterprise: true
        free: true
        pro: true
components:
  schemas:
    rulesets_LogCustomFieldRule:
      allOf:
      - $ref: '#/components/schemas/rulesets_Rule'
      - properties:
          action:
            enum:
            - log_custom_field
          action_parameters:
            minProperties: 1
            properties:
              cookie_fields:
                description: The cookie fields to log.
                example:
                - name: cookie_name_1
                items:
                  description: The cookie field to log.
                  properties:
                    name:
                      description: The name of the field.
                      example: cookie_name_1
                      minLength: 1
                      title: Name
                      type: string
                  required:
                  - name
                  title: Cookie field
                  type: object
                minItems: 1
                title: Cookie fields
                type: array
              request_fields:
                description: The request fields to log.
                example:
                - name: http_request_header_name_1_in_lower_case
                items:
                  description: The request field to log.
                  properties:
                    name:
                      description: The name of the field.
                      example: http_request_header_name_1_in_lower_case
                      minLength: 1
                      title: Name
                      type: string
                  required:
                  - name
                  title: Request field
                  type: object
                minItems: 1
                title: Request fields
                type: array
              response_fields:
                description: The response fields to log.
                example:
                - name: http_response_header_name_1_in_lower_case
                items:
                  description: The response field to log.
                  properties:
                    name:
                      description: The name of the field.
                      example: http_response_header_name_1_in_lower_case
                      minLength: 1
                      title: Name
                      type: string
                  required:
                  - name
                  title: Response field
                  type: object
                minItems: 1
                title: Response fields
                type: array
          description:
            example: Log custom field when the IP address is not 1.1.1.1
        title: Log Custom Field rule
    rulesets_RuleCategory:
      description: A category of the rule.
      example: directory-traversal
      minLength: 1
      title: Category
      type: string
    rulesets_CompressResponseRule:
      allOf:
      - $ref: '#/components/schemas/rulesets_Rule'
      - properties:
          action:
            enum:
            - compress_response
          action_parameters:
            properties:
              algorithms:
                description: Custom order for compression algorithms.
                example:
                - name: none
                items:
                  description: Compression algorithm to enable.
                  properties:
                    name:
                      description: Name of compression algorithm to enable.
                      enum:
                      - none
                      - auto
                      - default
                      - gzip
                      - brotli
                      title: Name
                      type: string
                  title: Compression Algorithm
                  type: object
                title: Algorithm
                type: array
          description:
            example: Disable compression when address is not 1.1.1.1
        title: Compression rule
    rulesets_ResponseRules:
      description: The list of rules in the ruleset.
      items:
        $ref: '#/components/schemas/rulesets_ResponseRule'
      title: Rules
      type: array
    rulesets_RewriteRule:
      allOf:
      - $ref: '#/components/schemas/rulesets_Rule'
      - properties:
          action:
            enum:
            - rewrite
          action_parameters:
            properties:
              headers:
                additionalProperties:
                  oneOf:
                  - description: Remove the header from the request.
                    properties:
                      operation:
                        enum:
                        - remove
                        title: Operation
                        type: string
                    required:
                    - operation
                    title: Remove header
                    type: object
                  - description: Set a request header with a static value.
                    properties:
                      operation:
                        enum:
                        - set
                        title: Operation
                        type: string
                      value:
                        description: Static value for the header.
                        example: static-header-value
                        minLength: 1
                        title: Value
                        type: string
                    required:
                    - operation
                    - value
                    title: Static header
                    type: object
                  - description: Set a request header with a dynamic value.
                    properties:
                      expression:
                        description: Expression for the header value.
                        example: ip.src
                        minLength: 1
                        title: Expression
                        type: string
                      operation:
                        enum:
                        - set
                        title: Operation
                        type: string
                    required:
                    - operation
                    - expression
                    title: Dynamic header
                    type: object
                description: Map of request headers to modify.
                example:
                  client-http-version:
                    expression: http.request.version
                    operation: set
                title: Headers
                type: object
              uri:
                description: URI to rewrite the request to.
                properties:
                  path:
                    allOf:
                    - description: Path portion rewrite.
                      example:
                        expression: regex_replace(http.request.uri.path, "/bar$", "/baz")
                      title: Path
                    - $ref: '#/components/schemas/rulesets_RewriteUriPart'
                  query:
                    allOf:
                    - description: Query portion rewrite.
                      example:
                        expression: regex_replace(http.request.uri.query, "foo=bar", "")
                      title: Query
                    - $ref: '#/components/schemas/rulesets_RewriteUriPart'
                title: URI
                type: object
          description:
            example: Add a header when the IP address is not 1.1.1.1
        title: Rewrite rule
    rulesets_ExecuteRule:
      allOf:
      - $ref: '#/components/schemas/rulesets_Rule'
      - properties:
          action:
            enum:
            - execute
          action_parameters:
            properties:
              id:
                allOf:
                - $ref: '#/components/schemas/rulesets_RulesetId'
                - description: The ID of the ruleset to execute.
                  example: 4814384a9e5d4991b9815dcfc25d2f1f
              matched_data:
                description: The configuration to use for matched data logging.
                properties:
                  public_key:
                    description: The public key to encrypt matched data logs with.
                    example: iGqBmyIUxuWt1rvxoAharN9FUXneUBxA/Y19PyyrEG0=
                    minLength: 1
                    title: Public key
                    type: string
                required:
                - public_key
                title: Matched data
                type: object
              overrides:
                description: A set of overrides to apply to the target ruleset.
                minProperties: 1
                properties:
                  action:
                    allOf:
                    - $ref: '#/components/schemas/rulesets_RuleAction'
                    - description: An action to override all rules with. This option has lower precedence than rule and category overrides.
                      example: log
                  categories:
                    description: A list of category-level overrides. This option has the second-highest precedence after rule-level overrides.
                    items:
                      description: A category-level override
                      minProperties: 2
                      properties:
                        action:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_RuleAction'
                          - description: The action to override rules in the category with.
                            example: log
                        category:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_RuleCategory'
                          - description: The name of the category to override.
                        enabled:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_RuleEnabled'
                          - description: Whether to enable execution of rules in the category.
                        sensitivity_level:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_ExecuteSensitivityLevel'
                          - description: The sensitivity level to use for rules in the category.
                      required:
                      - category
                      title: Category override
                      type: object
                    minItems: 1
                    title: Category overrides
                    type: array
                    uniqueItems: true
                  enabled:
                    allOf:
                    - $ref: '#/components/schemas/rulesets_RuleEnabled'
                    - description: Whether to enable execution of all rules. This option has lower precedence than rule and category overrides.
                  rules:
                    description: A list of rule-level overrides. This option has the highest precedence.
                    items:
                      description: A rule-level override
                      minProperties: 2
                      properties:
                        action:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_RuleAction'
                          - description: The action to override the rule with.
                            example: log
                        enabled:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_RuleEnabled'
                          - description: Whether to enable execution of the rule.
                        id:
                          allOf:
                          - $ref: '#/components/schemas/rulesets_RuleId'
                          - description: The ID of the rule to override.
                            example: 8ac8bc2a661e475d940980f9317f28e1
                        score_threshold:
                          description: The score thr

# --- truncated at 32 KB (83 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/engineering-platform/refs/heads/main/openapi/engineering-platform-account-rulesets-api-openapi.yml