API call returns null

Hi all,

I’ve installed a new seafile CE server 7.1.2. I am trying to use the API to create a new user, however the call returns null.

curl -H “Accept: application/json;charset=utf-8; ident=4” -H “Authorization: Token XXXX” -k -X PUT …/api/v2.1/admin/users -d “email=something@example.com&password=123”

Any ideas how to debug this?

Some updates: I’m using curl -L now, since there is a permanent redirection response. Now I get
{“error_msg”:“email invalid.”}

Tried different emails, nothing works. Any idea what this is?