> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mithunai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace the Sales qualification rules

> Write the rules the Sales employee checks a lead against, in order.

Replaces the whole set. Send `[]` to remove it; the Sales employee then uses your CRM's rules, if
any. A lead is qualified when it meets every rule. A rule is checked against your CRM record's
structured fields only -- never the lead's message, its website or the record's notes -- and a fact
the record does not hold makes the lead **needs review**, never a pass. Requires owner or admin,
signed in: an API key is refused with `403`. Every change is audited.

> [!WARNING]
>
> AI employees are in **beta**. Every route answers `404` unless your deployment has switched the
> beta on. See [Qualification rules](https://docs.mithunai.com/team/qualification-rules.md).

**rules** `object[]` *required*

At most 20 rules, in the order they are checked and shown. Each rule has a `field` (`industry`,
`employees` or `country`); an `operator` (`is_one_of` or `is_not_one_of` for industry and country,
`at_least` or `at_most` for employees); `values` (for industry and country, 1 to 50 names of at
most 80 characters, matched without regard to case; for employees, exactly one whole number); and
an `outcome`, what a lead that does not meet the rule is -- `not_qualified` (the default) or
`needs_review`.

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "rules": [
    { "field": "industry", "operator": "is_one_of", "values": ["Logistics", "Software"] },
    { "field": "employees", "operator": "at_least", "values": ["50"], "outcome": "needs_review" },
    { "field": "country", "operator": "is_not_one_of", "values": ["Atlantis"] }
  ]
}
```

A malformed rule is a `400` naming the rule by its position; the message never repeats a value.

## Response

The rules now in force, in the shape [Get the Sales qualification rules](https://docs.mithunai.com/api-reference/employees/get-qualification-rules.md) returns.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.