bucketId. You can create a top-level folder by setting parentId to null, or create a subfolder by providing an existing folder ID in parentId.POST /folder/create/{bucketId}| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
bucketId | Path | string | Yes | The ID of the bucket or parent container where the folder will be created. Example: a1b2c3d4-e5f6-7890-1234-567890abcdef. |
name | Body | string | Yes | The name of the new folder to create. |
parentId | Body | string or null | No | The folder ID to use when creating a subfolder. Use null to create the folder at the root level of the specified bucket. |
{
"name": "Project Documents",
"parentId": null
}{
"name": "Invoices",
"parentId": "beycwbmmvu2symytbmzh8r1f"
}201 Created — Folder was created successfully, and the response may include the new folder ID.400 Bad Request — The request body is invalid, for example if name is missing or too long.404 Not Found — The specified parent folder or bucket was not found.409 Conflict — A folder with the same name already exists in the target parent folder.500 Internal Server Error — The server failed while processing the request.