setAttributes

Beta
Beta

setAttributes

setAttributes

Set the attributes of a Redirect.

await redirect.setAttributes({ from: "/new-url" }

Parameters

  • attributes: Partial<CreateRedirect> – The updated attributes and their new values.

Returns

Errors

  • When the current user does not have permission to edit Site Settings, a FramerPluginError is thrown. See the Permissions guide to for more details.

  • When the current Project is not on a Plan that includes Redirects, a FramerPluginError is thrown. Also Framer will show a modal that asks the user to upgrade it's Plan.