assets.folders.list
Puck Assets is in early access. Request access.
Find and list folders, sorted by name.
await puck.assets.folders.list();Returns an AssetFolderList containing the folders, and pagination metadata.
Args
| Param | Example | Type | Status |
|---|---|---|---|
params | { query: "brand" } | Object | - |
options | { auth: {} } | Object | - |
params
Pagination and filtering options for listing folders. Defaults to the first 50.
| Param | Example | Type | Status |
|---|---|---|---|
query | query: "brand" | String | - |
offset | offset: 50 | Number | - |
limit | limit: 20 | Number | - |
Optional filter params
query
Find folders that contain the specified text in their names.
Optional paging params
offset
Skip a number of folders in the resulting list after filtering and sorting, from the start. Defaults to 0.
limit
Limit the number of folders returned in the resulting list after filtering, sorting, and skipping the offset, up to 100. Defaults to 50.
options
Set the request options for this call.