---
title: "Ensure Folder Endpoint"
method: POST
path: "/utils/folders/ensure"
tags: ["utils"]
---

# Ensure Folder Endpoint

`POST /utils/folders/ensure`

## Request

- Base URL: `https://api.rmfg.com`
- URL: `https://api.rmfg.com/utils/folders/ensure`
- Auth: none declared

Ensures that a folder exists in Supabase storage.
Creates an empty .keep file if the folder doesn't exist.

Args:
    request: Contains bucket name and folder path
    
Returns:
    EnsureFolderResponse with success status and message

## Request body

- EnsureFolderRequest
  - `bucket` string, required
  - `folder_path` string, required

## Response `200`

Successful Response

- EnsureFolderResponse
  - `success` boolean, required
  - `message` string, required

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api.md) - [All operations](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rmfg/apis/rmfg-manufacturing-api/revisions/078f984358b9?raw)
