---
title: "Upload File To Catalog"
method: POST
path: "/catalog/file_upload"
---

# Upload File To Catalog

`POST /catalog/file_upload`

## Request

- The document declares no server URL.
- Auth: none declared

Upload an image file to Google Cloud Storage.

Args:
    file: The file to upload

Returns:
    FileUploadResponse with the file ID and URL

## Request body `multipart/form-data`

- BodyCatalogFileUpload
  - `file` string, binary, required

## Response `200`

Successful Response

- FileUploadResponse: Response model for file upload
  - `file_id` string, required
  - `file_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/octogen-ai/apis/octogen-product-catalog-api.md) - [All operations](https://skmtc.dev/octogen-ai/apis/octogen-product-catalog-api/llms.txt) - [OpenAPI document](https://skmtc.dev/octogen-ai/apis/octogen-product-catalog-api/revisions/49c6d47acc84?raw)
