Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You are missing a comma after the value for the username key. The payload should be

 '{"auth":{"passwordCredentials": {"username": "admin", "password": "admin"}}}'

On an unrelated note, I don't think that that you need to execute curl with sudo.