assets.folders.update
Puck Assets is in early access. Request access.
Update a folder by id.
await puck.assets.folders.update("folder_123", {
name: "Campaigns",
});Returns the updated AssetFolder.
Args
| Param | Example | Type | Status |
|---|---|---|---|
id | "folder_123" | String | Required |
params | { name: "Campaigns" } | Object | Required |
options | { auth: {} } | Object | - |
id
The folder’s id.
params
What to change on the folder.
| Param | Example | Type | Status |
|---|---|---|---|
name | name: "Campaigns" | String | Required |
Required params
name
The folder’s new name, up to 100 characters. Must be unique.
options
Set the request options for this call.