In a discussion titled “API Functionality for invites” under the Feature category, alxnik sought a way to generate general forum invitations via API without tying them to specific topics — particularly from a user profile page. They clarified they weren’t interested in bulk invites or topic-specific invites, and mentioned they were implementing this in Python. codinghorror initially misunderstood, suggesting unrelated UI features, which Frank later retracted after clarification. techAPJ then submitted a PR to the discourse_api repository adding Invite User functionality that doesn’t require a specific topic, referencing alxnik’s request. alxnik confirmed the solution worked and thanked the contributor. The thread reflects a focused effort to extend Discourse’s API for flexible, topic-agnostic user invitations, culminating in a successful implementation via community contribution.
I have deployed a discourse installation which is invite only and I am looking for a way to trigger invitations from another website. However, I don’t want to invite users to a specific topic, but to the forum in general. The ideal solution for this is to have invites generated from the user profile page functionality.
Is there a way to generate invites from the API that will not tie the invite to a specific topic? Bonus points if it is possible to add the user to specific groups.
FYI, I’m going to implement this in python so I’m not looking for a solution via the ruby reference api implementation (And I checked that it doesn’t support it), however in the routes.txt file I can see some invitation specific endpoints. Do these work? If yes, how can I call them?
Frank, thanks for the info, but it is not what I’m looking for. To be more specific, I don’t want to use the bulk invites functionality, I want to be able to do it on per user basis, just not tied to a specific topic.
At this point I’m thinking of diving in the server code to look into it myself, but I have no ruby experience whatsoever!