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

  • Promise<Redirect | null> – The updated redirect, or null if the redirect was not found.