assets.folders.create
Puck Assets is in early access. Request access.
Create a folder.
await puck.assets.folders.create({ name: "Brand" });Returns the created AssetFolder.
Args
| Param | Example | Type | Status |
|---|---|---|---|
params | { name: "Brand" } | Object | Required |
options | { auth: {} } | Object | - |
params
What to create the folder with.
| Param | Example | Type | Status |
|---|---|---|---|
name | name: "Brand" | String | Required |
Required params
name
The folder’s name, up to 100 characters. Must be unique.
options
Set the request options for this call.