How do I update the Readme.md on NuGet.org via API?

351 Views Asked by At

I have a situation where I need to update more than 30 packages that each have 15 versions with current info and continually keep them updated. While it is now recommended to add a Readme (markdown) file to the NuGet package before uploading, that doesn't help because my packages are already on NuGet.org.

The NuGet dashboard has a feature that lets me preview and update the Markdown and then publish it, which is exactly what I need, except I need to make some tweaks for each version of each package and it would be a ton of work using this feature if I just needed to make a small update on every Readme.md page. Unfortunately, updating is disabled when pushing a package that contains a Readme.md page, so the only way I have found to edit the Readme.md after the NuGet package is pushed is to exclude it from the package entirely.

I went through the API docs and I see there are APIs for downloading metadata and uploading packages, but I haven't found any that allow updating metadata that is already an "overridden" version of the original info that the NuGet package contained.

Does an API for updating the Readme markdown of a NuGet package exist and if so, how do I call it?

0

There are 0 best solutions below