Setting user title with API?


(Jono Bacon) #1

Hi Everyone,

I am currently working with a company and we would like to explore programmatically setting the user title.

It would work a little like this:

  • The user would authenticate with their same account for the service.
  • We would have a custom plugin that would look up the respective data in the service we want to set for their title and then automatically set that title in their account on Discourse.

Is this possible with the current Discourse API?


(Jeff Atwood) #2

Do you mean user title?


(Jono Bacon) #3

Yes, the user title. Thanks!


(Jeff Atwood) #4

Every action that happens in Discourse is a de facto API call as the client is a ball of JavaScript that runs in the browser.

To get the exact API call needed perform the action in the browser while watching the network tab in your browser, per How to reverse engineer the Discourse API