> ## 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.

# Set an approval rule

> Let one kind of action run without asking, or make it need two people.

`always_allow` lets this employee do this kind of action without a person. `two_people` makes a
second, different person approve it after the first. One rule per kind of action: setting one
replaces the other, and both are kept as changes. Always allow returns `400` for a kind of action that
always needs a person, or that moves money, deletes, publishes or changes access. Work that arrived
by itself still waits for a person, whatever the rule. Requires owner or admin, signed in. Audited.

> [!WARNING]
>
> AI employees are in **beta**. These routes need a second switch, off by default. See [Approval
> rules](https://docs.mithunai.com/team/approval-rules.md).

## Path

**role** `string` *required*

The employee: `support`, `itsm`, `devops`, `marketer`, `sales` or `finance`.

**action\_type** `string` *required*

One of that employee's kinds of action, for example `support.reply.send`.

## Body

**mode** `string` *required*

`always_allow` or `two_people`.

## Response

The rule now in force: `role`, `tool`, `action_type`, `title`, `mode`, `created_by`, `created_at`.


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