# Create a preset bundle (/docs/reference/management/createPreset)

> For AI agents, the [documentation index](https://bitrouter-docs-staging.up.railway.app/llms.txt) lists all pages. Append .md to a documentation URL to read its Markdown.

`POST /v1/namespaces/{nsid}/presets`

Creates a named bundle of sub-policies. Validation is stricter than the generic create: a rate-limit clause must declare at least one of `max_requests` / `max_tokens`, and `budget.limit_micro_usd` must be strictly positive.

*Requires the `policy:write` scope.*

## Authentication

header parameter `x-api-key` or `Authorization: Bearer <token>`.

Base URL: `https://api.bitrouter.ai`

## Parameters

* `nsid` (path, required): Id of the target namespace. Must be owned by the caller (or equal a namespace-baked credential's own namespace), else 404.

## Request body

Preset request body.

Media types: `application/json`.

* `budget`
* `guardrail`
* `name` (required): string
* `rate_limit`

## Responses

* `200` Created preset. (application/json)
* `401` Credential missing or did not verify. (application/json)
* `403` Credential is valid but lacks the required scope. (application/json)
* `404` Resource not found (or owned by a different account). (application/json)

[Full OpenAPI schema](https://bitrouter-docs-staging.up.railway.app/openapi.json)