assets.tags.rename
Puck Assets is in early access. Request access.
Rename a tag by name.
await puck.assets.tags.rename("Brand kit", "Brand");
// "Brand"Returns the tag’s new name.
Args
| Param | Example | Type | Status |
|---|---|---|---|
name | "Brand kit" | String | Required |
newName | "Brand" | String | Required |
options | { auth: {} } | Object | - |
name
The tag’s name.
newName
The tag’s new name, without commas. Must be unique.
options
Set the request options for this call.