assets.folders.getByName
Puck Assets is in early access. Request access.
Get a folder by an exact name.
await puck.assets.folders.getByName("Brand");Returns the AssetFolder, or null if no folder has the name.
Args
| Param | Example | Type | Status |
|---|---|---|---|
name | "Brand" | String | Required |
options | { auth: {} } | Object | - |
name
The folder’s exact name, including case.
options
Set the request options for this call.