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

# Restore Storage Object Generation

> Restore one managed-storage object generation over the live object.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json post /v1/apps/{app_id}/managed-services/{service_id}/storage/restore
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/managed-services/{service_id}/storage/restore:
    post:
      tags:
        - managed-services
      summary: Restore Storage Object Generation
      description: Restore one managed-storage object generation over the live object.
      operationId: managed_services_restore_storage_object_generation
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: service_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Service Id
        - name: env
          in: query
          required: false
          schema:
            type: string
            pattern: ^(dev|prod)$
            default: dev
            title: Env
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StorageObjectRestoreRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StorageObjectRestoreResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  schemas:
    StorageObjectRestoreRequest:
      properties:
        object_path:
          type: string
          maxLength: 1024
          minLength: 1
          title: Object Path
          description: Object path within bucket (no leading slash, no '..' traversal).
        generation:
          type: string
          maxLength: 64
          minLength: 1
          pattern: ^[0-9]+$
          title: Generation
          description: GCS generation id to restore.
      type: object
      required:
        - object_path
        - generation
      title: StorageObjectRestoreRequest
      description: Request body for restoring one storage object generation.
    StorageObjectRestoreResponse:
      properties:
        bucket_name:
          type: string
          minLength: 1
          title: Bucket Name
        object_path:
          type: string
          minLength: 1
          title: Object Path
        restored_generation:
          type: string
          minLength: 1
          title: Restored Generation
        live_generation:
          type: string
          minLength: 1
          title: Live Generation
        size_bytes:
          type: integer
          minimum: 0
          title: Size Bytes
        size_human:
          type: string
          minLength: 1
          title: Size Human
        content_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Content Type
      type: object
      required:
        - bucket_name
        - object_path
        - restored_generation
        - live_generation
        - size_bytes
        - size_human
      title: StorageObjectRestoreResponse
      description: Response after restoring a storage object generation.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.