---
title: "Add a storage option to a plan"
method: POST
path: "/subscription/plans/{plan_id}/storage-options"
tags: ["Subscription Plans"]
---

# Add a storage option to a plan

`POST /subscription/plans/{plan_id}/storage-options`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/subscription/plans/{plan_id}/storage-options`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-KEY` and API key in header `X-API-SECRET` and API key in header `X-WORKSPACE-ID`

## Path parameters

- `plan_id` integer, required

## Request body

- StorageOptionRequestSchema
  - `storage_gb` integer, required: Total storage the option grants, in GB
  - `monthly_price` number, required: Monthly add in USD on top of the plan price
  - `annual_price` number, required: Annual add in USD on top of the plan price

## Response `201`

Document created, URL follows

- PlanStorageOptionResponseSchema
  - `storage_option` PlanStorageOptionAdminSchema, required
    - `id` integer, required
    - `plan_id` integer, required
    - `storage_gb` integer, required
    - `monthly_price` number, required
    - `annual_price` number, required
    - `status` string, required
  - `message` string, nullable

## Other responses

- `400`: Bad request syntax or unsupported method

---

[API](https://skmtc.dev/mammoth/apis/mammoth-analytics.md) · [All operations](https://skmtc.dev/mammoth/apis/mammoth-analytics/llms.txt) · [OpenAPI document](https://skmtc.dev/mammoth/apis/mammoth-analytics/revisions/5dfd1c296ded?raw)
