---
title: "Update classification rule"
method: PUT
path: "/classify/rules/{id}"
tags: ["Classification"]
---

# Update classification rule

`PUT /classify/rules/{id}`

## Request

- Base URL: `https://frontrun.vc/v1`
- URL: `https://frontrun.vc/v1/classify/rules/{id}`
- Auth: API key in header `X-API-Key`

Update a classification rule: name, conditions, actions, or the active flag (set active=false to disable without deleting). Free, costs 0 credits.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `conditions` object
  - `actions` object
  - `active` boolean

## Response `200`

Updated rule.

- ClassificationRule
  - `id` string: Rule ID.
  - `name` string
  - `conditions` object
    - `bio_keywords` string[]: Match if the bio contains any of these keywords.
    - `username_pattern` string: Regex tested against the username (max 100 chars, no nested quantifiers).
    - `sector_contains` string: Match if the classified sector contains this substring.
    - `must_be_company` boolean: Require (true) or exclude (false) company-classified entities.
  - `actions` object
    - `custom_sector` string
    - `custom_entity_type` string
    - `tags` string[]
    - `priority` string
  - `active` boolean
  - `match_count` integer
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Missing, invalid, inactive, or expired API key.
- `404`: Rule not found.
- `429`: Rate limit or daily credit cap reached. Retry after the indicated reset time.

---

[API](https://skmtc.dev/frontrun/apis/frontrun-api.md) · [All operations](https://skmtc.dev/frontrun/apis/frontrun-api/llms.txt) · [OpenAPI document](https://skmtc.dev/frontrun/apis/frontrun-api/revisions/6880b29e94c9?raw)
