Example Code in PHP how to Create a new User

Okay, got it.
As the docs.discourse.org states, you have to make a POST request to the address yourforum/users with this fields:

{
  "name": "string",
  "email": "string",
  "password": "string",
  "username": "string",
  "active": true,
  "approved": true,
  "user_fields[1]": "string"
}

In this request, fields that you have to send are: name, email, password and username.
As this is a POST request, even simple HTML form should be enough, if I understand well :slight_smile:

1 like