---
title: "Add storage addon to workspace"
method: POST
path: "/workspaces/{workspace_id}/addons/storage"
tags: ["Workspaces"]
---

# Add storage addon to workspace

`POST /workspaces/{workspace_id}/addons/storage`

## Request

- Base URL: `https://app.mammoth.io/api/v2`
- URL: `https://app.mammoth.io/api/v2/workspaces/{workspace_id}/addons/storage`
- 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`

Add storage addon to the specified workspace

## Path parameters

- `workspace_id` integer, required: Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

## Request body

- AddStorageAddonRequest
  - `additional_storage_gb` integer, required: Amount of additional storage to add in gigabytes

## Response `201`

Storage addon added successfully

- WorkspaceAddonResponse
  - `status` string, nullable: Request status
  - `workspace` object, required: Updated workspace information
  - `message` string, required: Success message

## Other responses

- `400`: Bad Request
- `401`: Authorization error

---

[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)
