Using REST Server 6.x-2.0-beta3, I'm trying to figure out how to send user.save messages.
curl -d 'XX' -v http: // localhost / services / rest / service_user / save
I tried replacing XX:
- account {'Name': 'MyName', 'transfer': 'my password', 'mail': ' my@email.org '}
- account = {'name': 'myname', 'pass': 'mypassword', 'mail': ' my@email.org '}
- account = "name = MyName, pass = my password, mail = myemail.org"
- account = name = MyName, pass = MyPassword, mail = myemail.org
- account = MyName, my password, myemail.org
But none of them seems correct, and finding any documentation regarding this is almost impossible.
I also tried the following:
curl -H "Content-Type: application / json" -d 'account = {"name": "myname", "pass": "mypassword", "email": "123"}' -v http: // localhost / services / rest / service_user / save
The error in this case is:
HTTP / 1.0 406 Not Allowed: Missing Account with Argument
source
share