---
title: "POST /bundles/{bundle_id}/rules"
method: POST
path: "/bundles/{bundle_id}/rules"
tags: ["bundleRules"]
---

# POST /bundles/{bundle_id}/rules

`POST /bundles/{bundle_id}/rules`

## Request

- Base URL: `https://api.outdoorsy.com/v0`
- URL: `https://api.outdoorsy.com/v0/bundles/{bundle_id}/rules`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `API-Key`
- TypeScript: <https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/docs/bundles/:bundle_id/rules/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a bundle rule

## Response `201`

- BundleRule
  - `bundle_id` string
  - `created` string
  - `id` string
  - `owner_id` integer
  - `rental_id` integer
  - `rule` MSI
  - `type` string
  - `updated` string

## Other responses

- `400`: Invalid input or state means you're bad
- `401`: Unauthorized error
- `404`: Not found error

---

[API](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation.md) - [All operations](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/outdoorsy/apis/outdoorsy-api-documentation/revisions/f0cf8f605ea0?raw)
