The discussion revolves around setting a category logo image via the Discourse API. ariznaf asks if there’s an API call to update a category’s logo, noting the lack of a direct method in the official docs. pfaffman suggests reverse engineering the API using browser developer tools. fzngagan clarifies it’s a two-step process: first upload the image via uploads.json to get an ID, then use the PUT method on the category endpoint with the uploaded_logo_id parameter. ariznaf confirms the image is already in the system, so the ID can be extracted from a post. mattdm provides a reference for using the image upload API, suggesting the same approach applies.
Thank you, I will have a more in depth look.
It seems you can analize it using the developers tool of the browser.
But with the logo image of a category there is no edit mode, just a button to open a dialog box to select it, and I don’t see in the browser what field discourse is updating.
The problem I am having is that there is no PUT method to set the logo.
There is a POST method where you can stablish all the cateory properties.
But that POST method is for creating a category, not for updating it and change the category properties.
May be it can be used in some way to update the category.