API

Anonymous

Hudu API requests
KB Article Images Management | Orphaned Images
Currently, "POST /public_photos" creates images embedded in KB articles, but there's no way to remove a '/public_photos' image. The API exposes only GET and PUT, and public photos look to be excluded from the Photos module ("Upcoming Feature" per the API docs), so they have no UI surface either. Once created, a public photo cannot be removed by any supported means. As far as I am aware, Hudu never reconciles attached photos against article content. Remove an image from an article body within the editor or via the API and the photo stays attached to the article forever. I tested deleting article versions, and Hudu doesn't reap them. Digging into this issue further, I found that one of our articles carries 25 attached photos to render 4. Any instance where either a user edit articles or an article is edited via API, accumulates photos silently. This becomes acute for API-driven documentation sync. I'm working on an automation that pushes article updates into Hudu; each run re-uploads the article's images, and every previous set is orphaned permanently with no cleanup path. I am working around it by tracking image identity externally and skipping re-uploads, but that doesn't fully mitigate the underlying issue. Can we get a "DELETE /api/v1/public_photos/:id" API call, gated behind the existing destructive-actions key permission? Alternatively, having Hudu self purge images not assigned to a KB article or a version of an article would be useful; or both for those of us who want to automate this ourselves, and keeping good data hygiene for those that do not.
0
Load More