Search
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
Promise<Redirect | null>– The updated redirect, ornullif the redirect was not found.