How to assign topic to a moderator using curl or python script(not from web UI)

AI-generated summary

In a support discussion titled ‘How to assign topic to a moderator using curl or python script (not from web UI)’, srk123 asks how to assign a topic via API, confirming the Assign plugin is likely enabled since the button appears in the UI. They seek the correct endpoint for assigning topics using curl or Python. Moin welcomes them and suggests reverse-engineering the API via a linked guide or contacting support via email or @team message if they’re a customer. Later, tobiaseigen checks in to see if srk123 found a solution and encourages sharing the script to help others. The thread remains unresolved in the provided posts, but offers practical next steps for API exploration and support outreach.

Hi,

I am moderator of the platform hosted by Discourse. I can see Assign button for each topic in the UI. Does that mean assign plugin is enabled? I have my API key and able to performs operations like pull latest topics using curl. I want to assign a topic to a moderator. I would like to know the endpoint for assign plugin. Could you please guide me on how to assign topic using Curl command or python script.

Hey @srk123
Welcome to Meta :waving_hand:

From what you describe, I would assume that the assign plugin is enabled.

You can Reverse engineer the Discourse API to find out how a request to assign a topic looks like.

As a customer, you can also send an email to the support inbox team@discourse.org from the email connected to the account on the forum you moderate (or you can message the @team group here at Meta. If you signed up here using the same email address, they can also identify that you are a customer).

Hi @srk123! Were you able to figure this out? If you have and can share your script here, that would help future travelers including perhaps yourself! :laughing: