How to create a user in rancher api?

It’s two separate requests, one to create the account and another to assign the password. In the response to the first one (what you have is fine) you’ll get the account id, then

curl -X POST ... \
  -d '{"publicValue":"yourusername","secretValue":"yourpassword","accountId":"1a114"}'  \
  http://192.168.54.207/v1/password
2 Likes