> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorpool.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit a storage volume

> Edit a storage volume's name, size, or deletion protection settings.



## OpenAPI

````yaml https://engine.tensorpool.dev/openapi.json patch /storage/edit/{storage_id}
openapi: 3.1.0
info:
  title: TensorPool API
  description: >
    TensorPool API


    All API endpoints (except `/healthz`) require authentication using your
    TensorPool API key.


    ### For REST Endpoints


    Include your API key in the `Authorization` header as a Bearer token:


    ```bash

    Authorization: Bearer YOUR_TENSORPOOL_KEY

    ```

    ### For WebSocket Endpoints


    Send your API key as the first message in JSON format:


    ```json

    {"TENSORPOOL_KEY": "YOUR_TENSORPOOL_KEY"}

    ```
  version: 0.1.0
servers: []
security: []
tags:
  - name: job
    description: >-
      GPU job execution and management. Run workloads on ephemeral clusters with
      automatic cleanup.
  - name: cluster
    description: >-
      GPU cluster provisioning and lifecycle management. Create persistent
      compute resources.
  - name: storage
    description: >-
      Shared storage volume management. Persistent storage that can be attached
      to eligible clusters.
  - name: object-storage
    description: S3-compatible object storage management.
  - name: ssh
    description: SSH key management for secure cluster access.
  - name: user
    description: >-
      User account management including balance, billing, and organization
      operations.
  - name: requests
    description: Cloud resource provisioning request tracking and status monitoring.
paths:
  /storage/edit/{storage_id}:
    patch:
      tags:
        - storage
        - storage
      summary: Edit a storage volume
      description: Edit a storage volume's name, size, or deletion protection settings.
      operationId: storage_edit
      parameters:
        - name: storage_id
          in: path
          required: true
          schema:
            type: string
            title: Storage Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StorageEditRequest'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EditResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    StorageEditRequest:
      properties:
        tp_storage_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Tp Storage Name
          description: New name for the storage. Must be unique within user/org scope.
          examples:
            - renamed-storage
            - updated-dataset-vol
        deletion_protection:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Deletion Protection
          description: >-
            Update deletion protection setting. Set to true to protect storage
            from accidental deletion, or false to allow deletion. Must be
            disabled before storage can be destroyed.
          examples:
            - true
            - false
        size_gb:
          anyOf:
            - type: integer
              exclusiveMinimum: 0
            - type: 'null'
          title: Size Gb
          description: >-
            New size in GB. Note: Storage can only be expanded, not shrunk. New
            size must be greater than current size.
          examples:
            - 200
            - 1000
            - 5000
      type: object
      title: StorageEditRequest
      description: Request model for editing storage.
    EditResponse:
      properties:
        message:
          type: string
          title: Message
      type: object
      required:
        - message
      title: EditResponse
      description: Response model for edit endpoints (cluster and storage).
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````