You can set or update a featured link on a topic by using the rails console.
From your server, enter the rails console from your Discourse folder:
./launcher enter app rails c
When in the rails console, execute your command:
Topic.where(id: your_topic_id).update(featured_link: "https://your-link.com")
You can also use @nathankershaw’s form below to generate your rails command.