Is there a way to update hyperlinks without editing each one separately?

My articles include links to my product docs and I’m changing the organization of my docs so the links from my articles to my docs will be broken.

Instead of updating each link in each article, is there another way to update them? API maybe?

You could definitely accomplish this programmatically using either Content Management API to directly edit entries, or Contentful’s Migration DSL via the Contentful CLI. The latter may be a bit quicker to implement – take a peek at transformEntries, as it probably gives you what you need to update these items.

Additionally, you could instead handle this at the application layer, adding 301 redirects for the old URL pattern to your new URL pattern, which would save you the hassle of updating the individual entries. Of course this implementation would vary depending on where/how your site is hosted.

1 Like