API Documentation Issue

Found an issue in the API docs, specifically the “Update a group” endpoint (Discourse API Docs)

The docs say to construct the endpoint with the group’s name, like:
PUT https://discourse.example.com/groups/{name}.json

This endpoint works for GET requests, but I get a 404 on PUT requests.

When I reverse-engineer the UI, I see the endpoint being used includes the group_id, not the group_name.
PUT https://discourse.example.com/groups/{id}

When I hit this endpoint, the request succeeds. So, I propose updating the endpoint in the documentation.

5 Likes

Thank you for bringing this up. I’ve updated that endpoint in the api docs.

2 Likes