REST, create a user?

Hi everyone,

I read the tutorial here and managed to login via POSTMAN.

When I tried creating an user via here


got an internal server error

Note: get has not issue, just can’t post

any idea? thanks.

Hi @ericmachine88,

In the body, you need to choose data format as “form-data”, not raw,

The key would be data

and value would be dict of all your info, i.e., {“email":"”, “first_name”:“Chris Lin”}

1 Like

Thanks for replying back.

I tried, but got this error

<pre>Traceback (innermost last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 60, in application
    response = frappe.api.handle()
  File "/home/frappe/frappe-bench/apps/frappe/frappe/", line 111, in handle
    data = json.loads(
  File "/usr/lib/python2.7/json/", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
 TypeError: expected string or buffer

Seems JSON is not correct. Validate JSON via

What params are you passing in header section ? Try by removing those params.