---
title: "Update a storage option of a plan"
method: PUT
path: "/subscription/plans/{plan_id}/storage-options/{option_id}"
tags: ["Subscription Plans"]
---

# Update a storage option of a plan

`PUT /subscription/plans/{plan_id}/storage-options/{option_id}`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/subscription/plans/{plan_id}/storage-options/{option_id}`
- 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
- `option_id` integer, required

## Request body

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

## Response `200`

Request fulfilled, document 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/fe078afe239b?raw)
