---
title: Fleet Operations
description: 'Fleet Operations endpoints: 1 operation.'
canonical: 'https://lightning.ai/docs/platform/cluster/api-reference/fleet-operations'
---
# Fleet Operations {#fleet-operations}

## Resize fleet storage {#resize-fleet-storage}

`POST /v1/fleets/{fleetId}/storage/modify`

Increase or decrease the storage capacity for your fleet. Only the size can be changed - mount points and number of storage volumes stay the same.

**When to use:**
- Increase storage when running out of space
- Decrease storage to reduce costs
- Adjust capacity for different workload requirements

**Important constraints:**
- Only change size - can't add/remove storage volumes
- Must match existing mount points exactly
- Fleet remains available during resize

**Parameters**

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `fleetId` | path | string (uuid) | Yes | Fleet identifier |
| `Idempotency-Key` | header | string | No | Unique key that makes retrying this request safe: a retry with the same key returns the first response instead of running the request again. Optional, but strongly recommended. Use a new UUID v4 for each operation, up to 255 characters. Most responses are kept for 24 hours. See API conventions for conflicts, mismatched retries and errors. Maximum length: 255. |

**Request body** (`application/json`, required)

[ModifyStorageRequest](/docs/platform/cluster/api-reference/schemas.md#modifystoragerequest)

**Responses**

| Status | Description | Body |
|--------|-------------|------|
| `200` | Storage modification initiated successfully | [ModifyStorageResponse](/docs/platform/cluster/api-reference/schemas.md#modifystorageresponse) |
| `400` | Invalid storage modification request, or the storage service refused the change, for example because storage is not active. Retry later; contact support if it persists. | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `404` | Fleet not found | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `409` | The fleet does not have storage provisioned yet. | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |
| `500` | Internal server error | [ErrorResponse](/docs/platform/cluster/api-reference/schemas.md#errorresponse) |

**Example request**

```bash
curl -X POST "$API_URL/v1/fleets/$FLEET_ID/storage/modify" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"storageViews":[{"mountPoint":"/data","size":536870912000}]}'
```

**Example response** (`200`)

```json
{
  "fleetId": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
  "status": "success",
  "message": "Storage modification request submitted successfully"
}
```

---

**Navigation**

- Parent: [API reference](/docs/platform/cluster/api-reference.md)
