Create Folder
Create an empty folder path (prefix) using client.storage.createFolder().
Function Signature
client.storage.createFolder(params: CreateFolderParams): Promise<CreateFolderData | BolticErrorResponse>
Parameters
CreateFolderParams
| Field | Type | Required | Description |
|---|---|---|---|
folder_path | string | ✅ | Target folder path / prefix |
Return Value
interface CreateFolderData {
message: string;
}
Example
import { createClient, isErrorResponse } from "@boltic/sdk";
const client = createClient("your-api-key");
const result = await client.storage.createFolder({
folder_path: "my-app/invoices/2026",
});
if (isErrorResponse(result)) {
console.error(result.error.message);
} else {
console.log(result.message);
}