I’ve been struggling to find a solution to this and I’m hoping someone here has some insight. Recently I joined a new project and took over for an old developer. I’ve recently upgraded the Discourse build to the latest version, it was a few months behind, and every other feature and api call is working as expected.
What I’m trying to do is use the API to create a topic in discourse from our website outside of discourse. I take the user’s ID and find them in discourse using the DiscourseAPI by_external_id method. Once I have that I call generate_user_api_key(discourse_user[‘id’]) which passes the ID for the user on discourse.
This responds with a DiscourseApi::NotFoundError / 404 error which only started after upgrading.
Any help or guidance on this is appreciated!