Update Hugo Build Version Outside the UI

I know that the Hugo build version can be set via build.hugo_version in initial-site-settings.json, but I would like to be able to set it programmatically for existing sites – removing the need to do it from Site Settings → Builds → Configuration → Library Versions

I don’t see where this is doable via the Configuration File. How do others manage this? Updating for one or two sites is easy, but I see this becoming cumbersome as I manage more sites.

1 Like

Hey @Josh_Asbury we do have a REST API that can be used to update the build configuration of a site. You should be able to write a script to iterate through your sites, check which ones need to be updated, and POST an update.

The API currently in private beta, but I’ll DM you about getting access to it :eyes: I should say, it’s still in the very early stages of public availability, so the documentation (which I’ll also link you) is a bit patchy at the moment, but I can give you some pointers :slight_smile:

1 Like