---
title: "Add Bash Allowlist Handler"
method: POST
path: "/api/settings/bash-allowlist"
tags: ["runtime_mutations", "settings"]
---

# Add Bash Allowlist Handler

`POST /api/settings/bash-allowlist`

Add a command to the user bash allowlist.

If the command has known dangerous flags (e.g. ``rm``), denied-flag
defaults are auto-applied so that dangerous variants still require
confirmation.

## Request body

- BashAllowlistAddRequest
  - `command` string, required
  - `approved_tokens` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.net/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quadrillion/quadrillion-cloud-api/revisions/399077308c86/schema)
