Auto generate password for account created through API?

I hardly find any documentation about it, I did some try and retry on some guessed usage but I always ends up with “502 Bad Gateway”.

I tried:

  • POST /invites
  • POST /admin/invites
  • POST /invite

I don’t get what’s the expected path and params for invitation.

I looked into https://github.com/discourse/discourse_api/blob/master/routes.txt but I don’t understand how to read it…